Date: Sat, 27 Apr 2013 09:39:46 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: freebsd-questions@freebsd.org Subject: Re: Sendmail 8.14.5/8.14.5 on fbsd-9.1R (EC2) Message-ID: <517B8ED2.3060103@infracaninophile.co.uk> In-Reply-To: <20130426153728.M27769@ezo.net> References: <20130426153728.M27769@ezo.net>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2GHDKERQQKKTSNDKPJIRW Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 26/04/2013 16:51, jflowers wrote: > All I want to do is have the MTA listen on 127.0.0.1 port 1025 and have= no > sendmail process listen on the server interface. That's being done by = assp > which proxies messages to 127.0.0.1:1025. Unfortunately, I haven't bee= n able > to figure out how to turn off the default. Sockstat shows: >=20 > root sendmail 1672 4 tcp4 *:25 *:* > root sendmail 1672 5 tcp6 *:25 *:* > root sendmail 1672 6 tcp4 127.0.0.1:1025 *:* > root sendmail 1672 7 tcp4 111.222.333.444:587 *:* >=20 > The relevant mc entries are: >=20 > DAEMON_OPTIONS(`Name=3DIPv4, Family=3Dinet') > DAEMON_OPTIONS(`Name=3DIPv6, Family=3Dinet6, Modifiers=3DO') > DAEMON_OPTIONS(`Port=3D1025, Addr=3D127.0.0.1, Name=3DMTA') > VIRTUSER_DOMAIN_FILE(`/etc/mail/virtual-domains') > FEATURE(`no_default_msa') > DAEMON_OPTIONS(`Port=3D587, Addr=3D 111.222.333.444, Name=3DMSA, M=3DE'= ) >=20 > The MSA isn't strictly necessary now but I thought might have a future = use. >=20 > So, what am I missing? How do I turn *:25 off so that when assp goes d= own (as > it frequently does) I'm not running an open relay (all user/domain vali= dation > is done in assp). >=20 > Any pointers in the right direction appreciated. You pretty much already have the answer already. Add 'Addr=3D127.0.0.1' or 'Addr=3D::1' clauses to your first two DAEMON_OPTIONS lines. That wil= l limit sendmail to listening on port 25 only on the loopback interface. Or indeed, remove those two lines entirely to leave sendmail only listening on port 587. This should not prevent sendmail from sending outgoing messages, but will prevent any incoming. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matthew@infracaninophile.co.uk ------enig2GHDKERQQKKTSNDKPJIRW Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlF7jtIACgkQ8Mjk52CukIwrMQCeOOs7vt2y6OvMv4DrsC0nA/XT WgYAoIQIltHNIEO5J40DTkTCHCeFqB8d =estq -----END PGP SIGNATURE----- ------enig2GHDKERQQKKTSNDKPJIRW--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?517B8ED2.3060103>