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
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment