How to make sendmail listen on specific network interfaces

By default Sendmail will listen on all available network interfaces. If you need the daemon to only listen on one or more of your interfaces or IP's then you can add the following lines to your sendmail.mc config file:

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

Don't forget to replace the IP's above with your own IP's.

Last updated: 16/02/2013