cancel
Showing results for 
Search instead for 
Did you mean: 

Send mail

 
Highlighted
Frequent Advisor

Send mail

DeRA aLL,

Advance thanx to all.
I am facing a problem in my linux servers.
I had two linux servers with oracle .One is for applicaton and the other is for database.

Now my Oracle DBA wants to configure the DB alerts which has to send the exchange Server which is runnuing in the site itself.
I will explain my problems here.

I had created one user user in the exchange server.

My linux db server host name is prodb.bcc1.amaz.com and app server host name is prdapps.bcc1.amaz.com.

Exhange host name is BCCEXCH.bcc1.amaz.com and we are registered with isp in the name of bluecityoman.com.

Here the domain name is bcc1.amaz.com

If i try to send a mail from any linux machine by using the [sendmail -v "anyname"@bluecityoman.com] command its getting rejected.

Am able to send the messsage from the linux server to any other gmail or yahoo id.

I understnd that its becuase of the the domain bcc1.amaz.com " is not registered with isp.That may be the reason the mail is getting rejected.

Can any one tell me what solution i can provide here for making the mails are going out from my linux box.


Thanx and rgds,

Prasanth.


4 REPLIES 4
Highlighted
Honored Contributor

Re: Send mail

Hi

follow the steps

1. configure /etc/resolv.conf with domain name, nameserver IP
2. service sendmail stop
3. -configure macro DS to DSexchange_relay_name
- configure macro Dj$w. to Dj$w.
- put to /etc/hosts (don't forget the dot at the end)
4. configure exchage to accept relay this host.
5. Save and quit sendmail.cf
6. service sendmail start
7. echo test | sendmail -v
a warrior never quits
Highlighted
Exalted Contributor

Re: Send mail

Shalom,

The easy solution is to do the Dj change in sendmail.cf as noted above.

You have correctly diagnosed the problem as being the fact the domain is not registered.

If the system has access to an internal relay server you can even more simply use the DSrelayservername directive in sendmail to redirect all may to a relay server. That rely server must normally explicitly configured to relay mail from the source host.

http://www.sendmail.org
Great resource.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Highlighted
Frequent Advisor

Re: Send mail

Hi,

Thanx for the reply.
How i will configure the macros?
Am new in sendmail...

Please advice..

Rgds,

Prasanth.
Highlighted
Honored Contributor

Re: Send mail

edit file /etc/mail/sendmail.cf

here you can find the macro's
a warrior never quits