Date: Sat, 13 Mar 2004 22:02:30 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: "Marc G. Fournier" <scrappy@hub.org> Cc: freebsd-questions@freebsd.org Subject: Re: Sendmail not listening to IP ... Message-ID: <20040313220230.GB4118@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <20040313172432.B64550@ganymede.hub.org> References: <20040313172432.B64550@ganymede.hub.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--i0/AhcQY5QxfSsSZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Sat, Mar 13, 2004 at 05:28:02PM -0400, Marc G. Fournier wrote:
>=20
> '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 ...
>=20
> 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=3DIPv4, Addr=3D81.2.69.218, Family=3Dinet')dnl
DAEMON_OPTIONS(`Name=3DIPv4, Addr=3D127.0.0.1, Family=3Dinet')dnl
DAEMON_OPTIONS(`Name=3DMSA, Addr=3D81.2.69.218, Port=3D587, M=3DE')dnl
DAEMON_OPTIONS(`Name=3DMSA, Addr=3D127.0.0.1, Port=3D587, M=3DE')dnl
DAEMON_OPTIONS(`Name=3DIPv6, Addr=3D::1, Family=3Dinet6')dnl
DAEMON_OPTIONS(`Name=3DIPv6, Addr=3D2001:8b0:cf:1::1, Family=3Dinet6')d=
nl
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
--=20
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
--i0/AhcQY5QxfSsSZ
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFAU4T2dtESqEQa7a0RAjChAJ9Ls3lIh4UDnSaIidD+2ba15eH07QCfZcG+
NpZt0FNLAtJQJY8h2V9vmwM=
=Twcc
-----END PGP SIGNATURE-----
--i0/AhcQY5QxfSsSZ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040313220230.GB4118>
