Leaderboard (728 x 90)

Friday, September 28, 2012

How to force Sendmail to use smarthost without DNS

1. make sure your smarthost is in /etc/hosts.
2. Create /etc/mail/service.switch file and put following two lines inside:

hosts files
aliases files.

3.Replace this line in /etc/mail/submit.mc file.

define(`SMART_HOST',`my smarthost from /etc/hosts')dnl

4. Go to /etc/mail and type "m4 sendmail.mc > /etc/sendmail.cf" to build new sendmail.cf.
5. type /etc/init.d/sendmail restart

No comments:

Post a Comment