Singapore Flyer

Friday, January 18, 2013

Relaying mails in Sendmail

Today i noticed mails are not sending from our bugzilla application. Its a debian box,
first i checked the log files from /var/log/mail.info i can see DEFFERED unable to reach the server

Solution :
add a field called “SMART_HOST” in our Sendmail configuration file:
vi /etc/mail/sendmail.mc
and add the following line near the beginnnig of the file:
define(`SMART_HOST',`mail.server.com')
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
/etc/init.d/sendmail restart
tail /var/log/mail.info

No comments:

Post a Comment