[CentOS] sendmail refusing incoming connections from outside

Alexander Dalloz ad+lists at uni-x.org
Fri Aug 5 14:12:58 UTC 2005


Am Fr, den 05.08.2005 schrieb Sudev Barar um 13:23:

> You will need to edit /etc/mail/sendmail.mc and regenerate a new sendmail.cf
> Edit and add a line similar to below for your network:
> DAEMON_OPTIONS(`Port=smtp,Addr=90.0.0.2, Name=MTA')dnl

This is wrong, just because it will prevent the MTA listening on
localhost, which is important.

> Generate new cf file by running macro:
> #m4 /etc/mail/sendmail.mc > /etc/sendmail.cf

That is too wrong, as the sendmail.cf is located in /etc/mail. Easier to
simply run "make -C /etc/mail" while being anywhere in the system, or
"make" while "/etc/mail" is cwd.

> Restart sendmail and you should be good.

The "service sendmail restart" will btw. make the "make" step
unnecessary. So just restarting the daemon through the init script will
regenerate the .cf files if there were changes to the .mc files, and
generate hashed map files too.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp 
Serendipity 16:10:03 up 14:13, 18 users, 0.62, 0.67, 0.54 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.centos.org/pipermail/centos/attachments/20050805/63f5d8aa/attachment.sig>


More information about the CentOS mailing list