[1237] in NetBSD-Development

home help back first fref pref prev next nref lref last post

Re: Masquerading dupe suppresion loses on FQ and non-FQ together

daemon@ATHENA.MIT.EDU (Christophe Wolfhugel)
Mon Feb 5 02:56:08 1996

From: Christophe Wolfhugel <wolf@pasteur.fr>
To: jhawk@MIT.EDU (John Hawkinson)
Date: Mon, 5 Feb 1996 08:50:33 +0100 (MET)
Cc: sendmail-bugs@sendmail.org, netbsd-dev@MIT.EDU
In-Reply-To: <199602040253.VAA05005@lola-granola.MIT.EDU> from "John Hawkinson" at Feb 3, 96 09:53:20 pm

John Hawkinson:
> MASQUERADE_AS(mit.edu)
> FEATURE(allmasquerade)
> LOCAL_USER(root)
> define(`LOCAL_RELAY', `mit.edu')dnl
> define(`MAIL_HUB', `mit.edu')dnl
> MAILER(local)dnl
> MAILER(smtp)dnl
>=20
> If mail on such a client is sent to both a full-quallified address and
> a non-fully qualified address, one is resolved to the relay mailer and
> the other to the smtp mailer, and so the message is twice-delivered.
=20
Yes this is correct, you may wish to have LOCAL_RELAY, MAIL_HUB use the
same mailer, for exemple esmtp. For this just add the desired mailer to
the definition :

define(`LOCAL_RELAY', `esmtp:mit.edu')dnl

Another solution would be to define esmtp as the default relay mailer
(which is what I usually recommend) :

define(`confRELAY_MAILER', `esmtp')dnl

> sendmail -odi -v -d0.1,20,25,26,29.5 jhawk@mit.edu jhawk=20
>=20
> yields two deliveries to the MXes of mit.edu; debugging on the
> recipient addresses is:
>=20
> ---cut
>   sendto: jhawk@mit.edu
>      ctladdr=3D[NULL]
>   =20
>   --parseaddr(jhawk@mit.edu)
>   parseaddr-->4b180=3Djhawk@mit.edu:
>   	  mailer 4 (smtp), host `mit.edu.', user `jhawk@mit.edu', ruser `<null=
>'
>   	  next=3D0, flags=3D0, alias 0, uid 0, gid 0
>   	  owner=3D(none), home=3D"(none)", fullname=3D"(none)"
>   =20
>   recipient: 4b180=3Djhawk@mit.edu:
>   	  mailer 4 (smtp), host `mit.edu.', user `jhawk@mit.edu', ruser `<null=
>'
>   	  next=3D0, flags=3D10, alias 0, uid 0, gid 0
>   	  owner=3D(none), home=3D"(none)", fullname=3D"(none)"
>   sendto: jhawk
>      ctladdr=3D[NULL]
>   =20
>   --parseaddr(jhawk)
>   parseaddr-->4b1c0=3Djhawk:
>   	  mailer 3 (local), host `', user `jhawk', ruser `<null>'
>   	  next=3D0, flags=3D0, alias 0, uid 0, gid 0
>   	  owner=3D(none), home=3D"(none)", fullname=3D"(none)"
>   =20
>   recipient: 4b1c0=3Djhawk:
>   	  mailer 3 (local), host `', user `jhawk', ruser `<null>'
>   	  next=3D0, flags=3D10, alias 0, uid 0, gid 0
>   	  owner=3D(none), home=3D"(none)", fullname=3D"(none)"
>   recipient: testing local?  cl=3D5, rr5=3D3d930
>   	  4b1c0=3Djhawk:
>   	  mailer 3 (local), host `', user `jhawk', ruser `<null>'
>   	  next=3D0, flags=3D10, alias 0, uid 0, gid 0
>   	  owner=3D(none), home=3D"(none)", fullname=3D"(none)"
>   maplocaluser: 4b1c0=3Djhawk:
>   	  mailer 3 (local), host `', user `jhawk', ruser `<null>'
>   	  next=3D0, flags=3D10, alias 0, uid 0, gid 0
>   	  owner=3D(none), home=3D"(none)", fullname=3D"(none)"
>   maplocaluser: QDONTSEND 4b1c0=3Djhawk:
>   	  mailer 3 (local), host `', user `jhawk', ruser `<null>'
>   	  next=3D0, flags=3D11, alias 0, uid 0, gid 0
>   	  owner=3D(none), home=3D"(none)", fullname=3D"(none)"
>   =20
>   recipient: 4b200=3Djhawk@mit.edu:
>   	  mailer 6 (relay), host `mit.edu', user `jhawk@mit.edu', ruser `<null=
>'
>   	  next=3D0, flags=3D0, alias 4b1c0, uid 0, gid 0
>   	  owner=3D(none), home=3D"(none)", fullname=3D"(none)"
> ---cut
>=20
> I'm afraid I'm not knowledgable enough on how the choice of mailers is
> made in order to determine where in the code the problem lies (how/why
> does maplocaluser() pick a mailer), or what the solution is...
>=20
> Thanks.
>=20
> --jhawk
>=20

--
Christophe Wolfhugel  -+-  wolf@pasteur.fr  -+-  Institut Pasteur, Paris

home help back first fref pref prev next nref lref last post