Listen on different port

Peter Farrow peter at
Mon Jan 7 13:59:52 GMT 2008

Ronny T. Lampert wrote:
>> My ISP (Comcast) has decided to start blocking port 25.  I'm using 
>> easydns and it allows me to forward emails to ports other than port 
>> 25.  How do I configure Mailscanner to listen on ports other/in 
>> addition to 25?
> Rightfully so! Dialups should NEVER EVER do SMTP directly. This is 
> just asking for trouble.
> Why not use the SMTP of your provider (either ISP or eMail provider) 
> as upsteam-SMTP-relay?
> Cheers,
> Ronny
If you are using sendmail, in /etc/mail/ you will see a line 
like this:

O DaemonPortOptions=Port=smtp,Addr=, Name=MTA

Change the port (and ip if required) to suit your needs and restart MS 

The best way to do this is modify your file and remake the file with the make command (on RH and equivalent distros).

You will see a line like this in

DAEMON_OPTIONS(`Port=smtp,Addr=, Name=MTA')dnl

Modify as you need it...



More information about the MailScanner mailing list