Scotech Scotech
Knowledge Base
[ Home | KB | Tools | Requests? ]


Sendmail to Use Additional Ports


Configure sendmail.mc to allow an additional SMTP port.

vi /etc/mail/sendmail.mc
#---
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
DAEMON_OPTIONS(`Port=26, Name=MTA')dnl
#---

Compile the sendmail.cf file and restart Sendmail services.

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

If you run the iptables firewall, open the necessary hole.

vi /etc/sysconfig/iptables
#---
-A [name] -m state --state NEW -m tcp -p tcp --dport 26 -j ACCEPT
#---
service iptables restart

You are now able to use an additional port for SMTP services.

- Scotech



[ Home | KB | Tools | Email: info@scotech.com ]

© 1996-2010 Scotech. All rights reserved.