On Sat, 23 Jun 2001, A.J. Werkman wrote:
> Does anyone know if and how it is possible to have sendmail not talk to > port 25 but to let's say 2525?? > > Koos
Make sure these lines are in your /etc/sendmail.mc file:
DAEMON_OPTIONS(`Port=25,Addr=127.0.0.1, Name=MTA') DAEMON_OPTIONS(`Port=2525, Name=MTA')
Then rebuild your /etc/sendmail.cf by running the commands:
# m4 /etc/mail/sendmail.mc > /etc/sendmail.cf # service sendmail restart
This will allow programs running locally on your mail server to use port 25 to send mail out, but will only allow inbound connections on port 2525. I tested this here, so I know it works.