Sendmail not listening to IP ...

Matthew Seaman m.seaman at infracaninophile.co.uk
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 200.46.204.2 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

    dnl
    DAEMON_OPTIONS(`Name=IPv4, Addr=81.2.69.218, Family=inet')dnl
    DAEMON_OPTIONS(`Name=IPv4, Addr=127.0.0.1, Family=inet')dnl
    DAEMON_OPTIONS(`Name=MSA, Addr=81.2.69.218, Port=587, M=E')dnl
    DAEMON_OPTIONS(`Name=MSA, Addr=127.0.0.1, 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
    dnl

This is taken directly from my own sendmail config, where I have a
jailed environment on 81.2.69.219 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.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         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 : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040313/f975fb93/attachment.bin


More information about the freebsd-questions mailing list