Operating System - HP-UX
1848731 Members
2295 Online
104036 Solutions
New Discussion

Modifications to Sendmail

 
SOLVED
Go to solution
RedBack
Frequent Advisor

Modifications to Sendmail

I need to change the mail gateway that sendmail is using. Currently we have a DNS entry for mailgw. I can not change the DNS entry. I do not want to modify the etc/host file. Can I change the entry in sendmail.cf "Smart" relay host from Dsmailgw to Dsnewgw ? Do I need to do anything else?
4 REPLIES 4
Jeff Schussele
Honored Contributor
Solution

Re: Modifications to Sendmail

Hi Mark,

After you make the change to sendmail.cf you'd have to bounce sendmail.
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Stefan Farrelly
Honored Contributor

Re: Modifications to Sendmail

No, all you need to change is DS and all mail will now be forwarded to this host. Restart sendmail and youre done.
Im from Palmerston North, New Zealand, but somehow ended up in London...
S.K. Chan
Honored Contributor

Re: Modifications to Sendmail

Yes you can modify the DS macro in "sendmail.cf". Make sure you give it a full domain name. And "sendmail" has to be restarted after the change.


Sean OB_1
Honored Contributor

Re: Modifications to Sendmail

This is pretty easy. Simply change the DS macro to your new gateway. Be sure to use a FQDN

DSyour.domain.here.com

Then stop sendmail and restart it.