Closed Bug 383630 Opened 17 years ago Closed 13 years ago

bugmail fails for invalid email addresses

Categories

(Bugzilla :: Email Notifications, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 599890

People

(Reporter: stevew, Unassigned)

Details

I upgraded Bugzilla from 2.22.2 to 3.0 and now bugmail fails for invalid email addresses.  The internal error listed is "error when closing pipe to /usr/lib/sendmail:"

The emails are actually sent, but Bugzilla stops in the middle of what it was doing.  Workaround is to disable bugmail for the failing Bugzilla IDs.

# sendmail -d0.1
Version 8.12.11.20060308
 Compiled with: DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGEX
                MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6
                NETUNIX NEWDB NIS PIPELINING SASLv2 SCANF STARTTLS TCPWRAPPERS
                USERDB USE_LDAP_INIT 

Mail log looks like this:

Jun  3 16:27:18 mail sendmail[28910]: l53NRIBL028910: Authentication-Warning: mail.xxxxxxxx.com: apache set sender to bugzilla-daemon using -f
Jun  3 16:27:18 mail sendmail[28910]: l53NRIBL028910: from=bugzilla-daemon, size=1127, class=0, nrcpts=1, msgid=<200706032327.l53NRIBL028910@mail.xxxxxxxx.com>, relay=apache@localhost
Jun  3 16:27:18 mail sendmail[28911]: l53NRILh028911: <user@xxxxxxxx.com>... User unknown
Jun  3 16:27:18 mail sendmail[28910]: l53NRIBL028910: to=user@xxxxxxxx.com, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31127, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown
Jun  3 16:27:18 mail sendmail[28911]: l53NRILh028911: from=<bugzilla-daemon@mail.xxxxxxxx.com>, size=1127, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jun  3 16:27:18 mail sendmail[28910]: l53NRIBL028910: l53NRIBM028910: DSN: User unknown
Jun  3 16:27:18 mail sendmail[28911]: l53NRILj028911: from=<>, size=3220, class=0, nrcpts=1, msgid=<200706032327.l53NRIBM028910@mail.xxxxxxxx.com>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jun  3 16:27:18 mail sendmail[28910]: l53NRIBM028910: to=bugzilla-daemon, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32151, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l53NRILj028911 Message accepted for delivery) 

Sending from command line produces similar results:

# mail user
Subject: test
foo
.
Cc:

Jun  5 09:18:19 mail sendmail[3575]: l55GIJUB003575: from=root, size=29, class=0, nrcpts=1, msgid=<200706051618.l55GIJUB003575@mail.xxxxxxxx.com>, relay=root@localhost
Jun  5 09:18:19 mail sendmail[3576]: l55GIJ32003576: <user@mail.xxxxxxxx.com>... User unknown
Jun  5 09:18:19 mail sendmail[3575]: l55GIJUB003575: to=user, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30029, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown
Jun  5 09:18:19 mail sendmail[3576]: l55GIJ32003576: from=<root@mail.xxxxxxxx.com>, size=29, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jun  5 09:18:19 mail sendmail[3575]: l55GIJUB003575: l55GIJUC003575: DSN: User unknown
Jun  5 09:18:19 mail sendmail[3576]: l55GIJ34003576: from=<>, size=2001, class=0, nrcpts=1, msgid=<200706051618.l55GIJUC003575@mail.xxxxxxxx.com>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jun  5 09:18:19 mail sendmail[3575]: l55GIJUC003575: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31053, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l55GIJ34003576 Message accepted for delivery)
I use bugzilla 3.2.4 and I got the same issue. We have 3 users in the CC list of the bug. The first one is a valid email address, but the mail account has been disabled. Let's say it is: user@xxxxxxx.com

Here is the mail from Mailer-Daemond:

----------------------------------------------------------

The original message was received at Wed, 15 Jul 2009 13:53:04 -0600
from apache@localhost

   ----- The following addresses had permanent fatal errors -----
user@xxxxxxx.com
    (reason: 550 5.1.1 <user@xxxxxxx.com>... User unknown)
    (expanded from: user@xxxxxxx.com)

   ----- Transcript of session follows -----
... while talking to [127.0.0.1]:
>>> >>> DATA
<<< 550 5.1.1 <user@xxxxxxx.com>... User unknown
550 5.1.1 user@xxxxxxx.com... User unknown
<<< 503 5.0.0 Need RCPT (recipient)

----------------------------------------------------------

The problem is that nobody else from the CC list get the bugzilla notification mail.

Looking into the maillogs, it is pretty similar as explained in the description of this issue:

----------------------------------------------------------

Jul 15 13:53:04 ags01 sendmail[15090]: n6FJr48x015090: from=apache, size=1288, class=0, nrcpts=1, msgid=<200907151953.n6FJr48x015090@xxxxxxx.com>, relay=apache@localhost
Jul 15 13:53:04 ags01 sendmail[15091]: n6FJr4K7015091: <user@xxxxxxx.com>... User unknown
Jul 15 13:53:04 ags01 sendmail[15090]: n6FJr48x015090: to=user@xxxxxxx.com, ctladdr=apache (48/48), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31288, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=Use
r unknown
Jul 15 13:53:04 ags01 sendmail[15091]: n6FJr4K7015091: from=<apache@xxxxxxx.com>, size=1288, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Jul 15 13:53:04 ags01 sendmail[15090]: n6FJr48x015090: n6FJr490015090: DSN: User unknown
Invalid email addresses have been inserted in very old versions of Bugzilla, or by a 3rd-party product. In that case, sanitycheck.cgi will tell you which accounts have an illegal email address, and I suggest you disable these accounts, or at least disable bugmails for these accounts.

About valid accounts being no longer used, that's another story, see bug 599890.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
Changing to duplicate; this is the same issue.
Resolution: WONTFIX → DUPLICATE
You need to log in before you can comment on or make changes to this bug.