Sunday, 23 October 2016

Unable to send mails from Linux servers

Here are the steps to configure sendmail ..  In case if you notice the setup is missing on any of the servers..
keep these commands handy..

1.       Backup sendmail.mc
cp -p /etc/mail/sendmail.mc /etc/mail/sendmail.mc_orig
2.    Modify the external smtp server (uncommenting the line and updating the value )
dnl define(`SMART_HOST', `smtp.your.provider')dnl
to
define(`SMART_HOST', `mail.global.frontbridge.com')dnl

3.    Compile
make all

4.    Restart sendmail service
(OEL - 7)
systemctl start sendmail
systemctl enable sendmail

Lower versions
/etc/init.d/sendmail restart
(or)
/etc/init.d/sendmail start

No comments:

Post a Comment