RHEL 5 Sendmail using to send mail to Relay MTA.
So I have been working on sendmail so that we are not running the sendmail daemon in the background on RHEL 5 and just have the server submit mail to our main SMTP server. To do this edit the following files.
/etc/sysconfig/sendmail
change the line
DAEMON=yes
to
DAEMON=no
Then edit the following file.
/etc/mail/submit.cf
change the line
D{MTAHost}[127.0.0.1]
to
D{MTAHost}[smtp.relayserver.com]
Restart the sendmail service
service sendmail restart
That's it.
/etc/sysconfig/sendmail
change the line
DAEMON=yes
to
DAEMON=no
Then edit the following file.
/etc/mail/submit.cf
change the line
D{MTAHost}[127.0.0.1]
to
D{MTAHost}[smtp.relayserver.com]
Restart the sendmail service
service sendmail restart
That's it.

Comments
Post a Comment