Friday, June 04, 2010

Allow Sendmail on Centos to accept connections on port 25

Need to use sendmail as an MTA? It's running but your box is not accepting incoming connections on port 25?

Perhaps you need to do this:


The default sendmail.cf file does not allow Sendmail to accept network connections from any host other than the local computer. To configure Sendmail as a server for other clients, edit the /etc/mail/sendmail.mc file, and either change the address specified in the Addr= option of the DAEMON_OPTIONS directive from 127.0.0.1 to the IP address of an active network device or comment out the DAEMON_OPTIONS directive all together by placing dnl at the beginning of the line. When finished, regenerate /etc/mail/sendmail.cf by executing the following command:



m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf


Then restart the service.

4 comments:

D415_evonN_Risinger0 said...

keep update, please..bless you!!.........................

姵Roman潔 said...
This comment has been removed by a blog administrator.
rodriguezp said...
This comment has been removed by a blog administrator.
志維 said...
This comment has been removed by a blog administrator.