Operating System - HP-UX
1833016 Members
2214 Online
110048 Solutions
New Discussion

Re: Repoint the sendmail relay-host to <new-host>

 
terrytapp
Advisor

Repoint the sendmail relay-host to <new-host>

My task is to repoint the sendmail relay host to the new server name. I have to do this on 11 servers. What exactly should i do (or change in the sendmail.cf file) also should i stop and restart the daemon? Please advice.

Thanks

Terry
5 REPLIES 5
F Verschuren
Esteemed Contributor

Re: Repoint the sendmail relay-host to <new-host>

change the conf file and than restart.
the relay is configured ad:
grep ^DS /etc/mail/sendmail.cf

Anshumali
Esteemed Contributor

Re: Repoint the sendmail relay-host to <new-host>

you should edit sendmail.cf and enter the value here..
# "Smart" relay host (may be null)
DS

you can send a HUP signal as well to ask sendmail to reread its config file...

Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
terrytapp
Advisor

Re: Repoint the sendmail relay-host to <new-host>

I have changed the relay host from

DSoldserver.com to DSnewserver.com and restarted the sendmail. How do i verify this change? Please help.

Thanks

Terry
James R. Ferguson
Acclaimed Contributor

Re: Repoint the sendmail relay-host to <new-host>

Hi Terry:

> I have changed the relay host...How do i verify this change?

Send a mail:

# mailx -s "Test_Message" somebody@xyz.net < /dev/null

...where "somebody@xyz.net" should be addressable by your configuration.

You can examine '/var/adm/syslog/mail.log'.

Regards!

...JRF...
terrytapp
Advisor

Re: Repoint the sendmail relay-host to <new-host>

Thanks!!

this is what i did..

sendmail -v and i get the message

# sendmail -v terry@abs.com
this is a test
terry@abs.com... Connecting to abs.com (tcp)...
terry@abs.com... Host unknown
Saving message in //dead.letter
//dead.letter... Can't create output

Thanks

Terry