"PPA access cancelled" emails are sent with envelope From and To set to root@localhost

Bug #1950173 reported by Junien F
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
High
Colin Watson

Bug Description

Hi,

The title says it all.
https://pastebin.canonical.com/p/NtnPrGRtgf/ for a Canonical-only copy of email headers.

Thanks

Tags: email
Junien F (axino)
summary: - "PPA access cancelled" emails are sent with envelopper From and To set
- to root@localhost
+ "PPA access cancelled" emails are sent with envelope From and To set to
+ root@localhost
Revision history for this message
Colin Watson (cjwatson) wrote :

From a first pass at investigating this, I think this may be a bug with non-immediate mail delivery that's been hanging around for a long time but hasn't really been exposed in many situations so we haven't noticed. From a first pass, it looks as though perhaps adding `<mail:smtpMailer name="localhost" hostname="localhost" port="25" />` to `{lpnet,production}/mail-configure-normal.zcml` might do the job, in order to override the default stub mailer.

(Immediate mail delivery goes through a different code path that invokes `smtplib` directly, so doesn't suffer from this problem.)

tags: added: email
Changed in launchpad:
status: New → Triaged
importance: Undecided → High
Colin Watson (cjwatson)
Changed in launchpad:
status: Triaged → In Progress
assignee: nobody → Colin Watson (cjwatson)
Colin Watson (cjwatson)
Changed in launchpad:
status: In Progress → Fix Committed
Colin Watson (cjwatson)
Changed in launchpad:
status: Fix Committed → Fix Released
Revision history for this message
Junien F (axino) wrote :

This is still happening (I got an email with root@localhost today)

Changed in launchpad:
status: Fix Released → Triaged
Revision history for this message
Haw Loeung (hloeung) wrote :

We're still seeing this, the most recent - https://pastebin.canonical.com/p/SkvNhzb7jK/

It looks like it's just the envelope To now.

Revision history for this message
Haw Loeung (hloeung) wrote :

Oh, I lied, it's the envelope From too:

| [hloeung@ackee log]$ grep ABCCFE1F0C /var/log/mail.log
| Mar 21 22:13:46 ackee postfix/cleanup[3814]: ABCCFE1F0C: message-id=<email address hidden>
| Mar 21 22:13:46 ackee postfix/local[3812]: A2C86E0279: to=<root@localhost>, relay=local, delay=0.06, delays=0.03/0.01/0/0.03, dsn=2.0.0, status=sent (forwarded as ABCCFE1F0C)
| Mar 21 22:13:46 ackee postfix/qmgr[21933]: ABCCFE1F0C: from=<root@localhost>, size=1715, nrcpt=1 (queue active)
| Mar 21 22:13:46 ackee postfix/smtp[3691]: ABCCFE1F0C: to=<email address hidden>, orig_to=<root@localhost>, relay=mx.canonical.com[91.189.95.10]:25, delay=0.2, delays=0.02/0/0.06/0.12, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as C205F1A287B)
| Mar 21 22:13:46 ackee postfix/qmgr[21933]: ABCCFE1F0C: removed

Revision history for this message
Haw Loeung (hloeung) wrote (last edit ):

Also - https://pastebin.canonical.com/p/p4szVMf7Vw/

With the latest example, it looks to be both from root@localhost and sent to root@localhost.

Revision history for this message
Junien F (axino) wrote :

More recent headers : https://pastebin.canonical.com/p/VPD3wTwbXP/ - the problem hasn't changed

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.