[1233] in NetBSD-Development
Masquerading dupe suppresion loses on FQ and non-FQ together
daemon@ATHENA.MIT.EDU (John Hawkinson)
Sat Feb 3 21:54:05 1996
Date: Sat, 3 Feb 1996 21:53:20 -0500
To: sendmail-bugs@sendmail.org
Cc: netbsd-dev@MIT.EDU
From: John Hawkinson <jhawk@MIT.EDU>
I would think problem would be a known one, but perhaps not? In this
environment, we use a .mc file of roughly (this debugging output is
from 8.6.12, but the problem still exists under 8.7.3).
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
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.
For instance:
sendmail -odi -v -d0.1,20,25,26,29.5 jhawk@mit.edu jhawk
yields two deliveries to the MXes of mit.edu; debugging on the
recipient addresses is:
---cut
sendto: jhawk@mit.edu
ctladdr=[NULL]
--parseaddr(jhawk@mit.edu)
parseaddr-->4b180=jhawk@mit.edu:
mailer 4 (smtp), host `mit.edu.', user `jhawk@mit.edu', ruser `<null>'
next=0, flags=0, alias 0, uid 0, gid 0
owner=(none), home="(none)", fullname="(none)"
recipient: 4b180=jhawk@mit.edu:
mailer 4 (smtp), host `mit.edu.', user `jhawk@mit.edu', ruser `<null>'
next=0, flags=10, alias 0, uid 0, gid 0
owner=(none), home="(none)", fullname="(none)"
sendto: jhawk
ctladdr=[NULL]
--parseaddr(jhawk)
parseaddr-->4b1c0=jhawk:
mailer 3 (local), host `', user `jhawk', ruser `<null>'
next=0, flags=0, alias 0, uid 0, gid 0
owner=(none), home="(none)", fullname="(none)"
recipient: 4b1c0=jhawk:
mailer 3 (local), host `', user `jhawk', ruser `<null>'
next=0, flags=10, alias 0, uid 0, gid 0
owner=(none), home="(none)", fullname="(none)"
recipient: testing local? cl=5, rr5=3d930
4b1c0=jhawk:
mailer 3 (local), host `', user `jhawk', ruser `<null>'
next=0, flags=10, alias 0, uid 0, gid 0
owner=(none), home="(none)", fullname="(none)"
maplocaluser: 4b1c0=jhawk:
mailer 3 (local), host `', user `jhawk', ruser `<null>'
next=0, flags=10, alias 0, uid 0, gid 0
owner=(none), home="(none)", fullname="(none)"
maplocaluser: QDONTSEND 4b1c0=jhawk:
mailer 3 (local), host `', user `jhawk', ruser `<null>'
next=0, flags=11, alias 0, uid 0, gid 0
owner=(none), home="(none)", fullname="(none)"
recipient: 4b200=jhawk@mit.edu:
mailer 6 (relay), host `mit.edu', user `jhawk@mit.edu', ruser `<null>'
next=0, flags=0, alias 4b1c0, uid 0, gid 0
owner=(none), home="(none)", fullname="(none)"
---cut
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...
Thanks.
--jhawk