Does Mailman generally send email with a null sender?
This is what I see in the log:
Jun 28 02:37:45 2020 (14588) ('127.0.0.1', 52726) handling connection Jun 28 02:37:45 2020 (14588) ('127.0.0.1', 52726) Data: b'LHLO mail.example.coop' Jun 28 02:37:45 2020 (14588) ('127.0.0.1', 52726) Data: b'MAIL FROM:<>' Jun 28 02:37:45 2020 (14588) ('127.0.0.1', 52726) sender: <> Jun 28 02:37:45 2020 (14588) ('127.0.0.1', 52726) Data: b'RCPT TO:<techque-bounces@example.org>' Jun 28 02:37:45 2020 (14588) ('127.0.0.1', 52726) recip: techque-bounces@example.org Jun 28 02:37:45 2020 (14588) ('127.0.0.1', 52726) Data: b'DATA' Jun 28 02:37:45 2020 (14588) ('127.0.0.1', 52726) Data: b'QUIT'
Notice the empty MAIL FROM.
Sendgrid seems to be choking on that because it needs to check if sending domain has been validated. If there is no sending domain it seems to reject.
Why does Mailman do this? Can it be changed? I've been trying to find the relevant section of the code to no avail.
On 6/28/20 6:58 AM, tom@gather.coop wrote:
Does Mailman generally send email with a null sender?
This is what I see in the log:
Jun 28 02:37:45 2020 (14588) ('127.0.0.1', 52726) handling connection Jun 28 02:37:45 2020 (14588) ('127.0.0.1', 52726) Data: b'LHLO mail.example.coop' Jun 28 02:37:45 2020 (14588) ('127.0.0.1', 52726) Data: b'MAIL FROM:<>' Jun 28 02:37:45 2020 (14588) ('127.0.0.1', 52726) sender: <> Jun 28 02:37:45 2020 (14588) ('127.0.0.1', 52726) Data: b'RCPT TO:<techque-bounces@example.org>' Jun 28 02:37:45 2020 (14588) ('127.0.0.1', 52726) recip: techque-bounces@example.org Jun 28 02:37:45 2020 (14588) ('127.0.0.1', 52726) Data: b'DATA' Jun 28 02:37:45 2020 (14588) ('127.0.0.1', 52726) Data: b'QUIT'
Notice the empty MAIL FROM.
Sendgrid seems to be choking on that because it needs to check if sending domain has been validated. If there is no sending domain it seems to reject.
Why does Mailman do this? Can it be changed? I've been trying to find the relevant section of the code to no avail.
It isn't Mailman doing this. It is the MTA at mail.example.coop that is reporting the bounce of some message from the techque@example.org list. The log messages you see are Mailman's receipt of the bounce DSN.
Bounce DSNs are always sent with a null envelope sender so if they are undeliverable, it doesn't result in another bounce. See <https://www.rfc-editor.org/rfc/rfc3461.html#section-6.1>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Oh I get it! Hmm, I wonder why SendGrid is bouncing my mail then. I have the domain validated... Time to contact support...
On 6/28/20 10:18 AM, tom@gather.coop wrote:
Oh I get it! Hmm, I wonder why SendGrid is bouncing my mail then. I have the domain validated... Time to contact support...
If SendGrid is your outgoing MTA, you probably don't have log info. You need to see the DSN for the reason. Unfortunately, MM 3 doesn't provide a way for you to see that directly (I just filed https://gitlab.com/mailman/mailman/-/issues/737 for this). This patch --- a/src/mailman/runners/bounce.py +++ b/src/mailman/runners/bounce.py @@ -90,7 +90,7 @@ class BounceRunner(Runner): else: log.info('Bounce message w/no discernable addresses: %s', msg.get('message-id', 'n/a')) - maybe_forward(mlist, msg) + maybe_forward(mlist, msg) # Dequeue this message. return False will forward non-verped received bounces to the list admins, not just unrecognized ones. The notice will say it was unrecognized, which it wasn't, but you'll be able to see it. -- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Mark Sapiro
-
tom@gather.coop