April 02, 2003

sendmail refusing to answer?

Let's say you've got a server that's running sendmail. You upgraded it to run the latest RPM and it suddenly stops answer on port 25. So what's gone wrong?

Basically, as a security measure, recent versions of sendmail come configured to not accept network connections. You have to manually edit the config files to make it work. Either edit your /etc/mail/sendmail.mc file or the sendmail.cf.

sendmail.mc change from this: (note these are all ONE line each, not wrapped)
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
to this:
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
sendmail.cf change from this:
# O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA
to this:
# O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA
Restart sendmail and you're on your way.
FYI
#  | Comments (0) | TrackBack (0) | 05:06 PM
Comments
Post a comment