Sendmail not listening to IP ...

Matthew Seaman m.seaman at
Sat Mar 13 14:02:36 PST 2004

On Sat, Mar 13, 2004 at 05:28:02PM -0400, Marc G. Fournier wrote:
> 'k, have to be missing something obvious here ... I have
> DontProbeInterfaces set to True, since I don't want it to pick up the
> other IPs on the box, but do want to bind it to one of the IPs ...
> I can telnet to localhost 25, but not to 25 ... so I'm
> figurinmg I disabled everything, and need to add the above IP for binding
> ... somewhere?

To make sendmail bind to selected interfaces use the following syntax
in /etc/mail/`hostname`.mc:

    FEATURE(no_default_msa)dnl ## overridden with DAEMON_OPTIONS below

    DAEMON_OPTIONS(`Name=IPv4, Addr=, Family=inet')dnl
    DAEMON_OPTIONS(`Name=IPv4, Addr=, Family=inet')dnl
    DAEMON_OPTIONS(`Name=MSA, Addr=, Port=587, M=E')dnl
    DAEMON_OPTIONS(`Name=MSA, Addr=, Port=587, M=E')dnl
    DAEMON_OPTIONS(`Name=IPv6, Addr=::1, Family=inet6')dnl
    DAEMON_OPTIONS(`Name=IPv6, Addr=2001:8b0:cf:1::1, Family=inet6')dnl

This is taken directly from my own sendmail config, where I have a
jailed environment on and I don't want the sendmail in the
host environment to listen on that IP number.

See the /usr/share/sendmail/cf/README file for more details

The 'DontProbeInterfaces' stuff is more commonly used when you have
either interfaces that only appear trasniently on the machine (such as
ppp connections) or you have interfaces with hostnames/IP numbers not
registered in the public DNS.



Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP:         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list