mm3: Some system is reinjecting mails -- and those mails "pass" moderation but why?
![](https://secure.gravatar.com/avatar/267565c6ab7816fe29beedf9a9cbcd44.jpg?s=120&d=mm&r=g)
Hi!
We're running postfix-users@postfix.org and we're encountering an odd problem: A system is sending mailing list messages that were posted on postfix-users@postfix.org BACK to postfix-users@postfix.org
And these mails simply pass moderation (which is set to the following): Default action to take when a member posts to the list: Default processing Default action to take when a non-member posts to the list: discard (no notification)
The headers of the mail (which I put on hold, based on the IP of the sending system):
Date: Thu, 24 Oct 2024 11:13:01 +0200 To: postfix-users@postfix.org Message-ID: <ZxoPneroJAID0LOm@castor.ghen.be> In-Reply-To: <ZxoMla6S1LugyQ9j@chardros.imrryr.org> X-MailFrom: geert@hendrickx.be X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-postfix-users.postfix.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Content-Type: text/plain; charset="us-ascii" Message-ID-Hash: Z6I2WZCEBC6PUKLVOEVAW3ZU2CDR47AW X-Message-ID-Hash: Z6I2WZCEBC6PUKLVOEVAW3ZU2CDR47AW X-MailFrom: tech@turbopush.cn X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-postfix-users.postfix.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header Subject: =?utf-8?B?W+WklumDqOmCruS7tl1bcGZ4XSBb5aSW6YOo6YKu5Lu2XVvlpJbpg6jpgq7ku7ZdUmU6IE9wZW5TU0wgY29tcGlsZSB2cy4gcnVudGltZSB2ZXJzaW9uIHdhcm5pbmc=?= From: Geert Hendrickx via Postfix-users via Postfix-users <postfix-users@postfix.org> Reply-To: Geert Hendrickx <geert@hendrickx.be>, Geert Hendrickx via Postfix-users <postfix-users@postfix.org>
So, it's the mail from "Geert Hendrickx" being resent from tech@turbopush.cn -- the headers have both
"X-MailFrom: tech@turbopush.cn" (not a member of the list) and "X-MailFrom: geert@hendrickx.be" (definitely a member of the list)
Why is the mail being accepted? From: doesn't look right (since it says "postfix-users@postfix.org")
We're currently stopping these mails, but I think mm3 is not acting correctly here (unless we're missing something)
-- Ralf Hildebrandt Charité - Universitätsmedizin Berlin Geschäftsbereich IT | Abteilung Netz | Netzwerk-Administration Invalidenstraße 120/121 | D-10115 Berlin
Tel. +49 30 450 570 155 ralf.hildebrandt@charite.de https://www.charite.de
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
Note: the appropriate list for MM 3 is mailman-users@mailman3.org
On 10/24/24 04:13, Ralf Hildebrandt via Mailman-Users wrote:
I think this is the envelope sender of this message
"X-MailFrom: geert@hendrickx.be" (definitely a member of the list)
and I think this is the envelope sender of the original message that was bounced back.
Why is the mail being accepted?
Because geert@hendrickx.be is in the list returned by mailman.email.message.Message.senders and is a list member presumably with moderation_action Default Processing. In this case it is because geert@hendrickx.be is in Reply-To:.
If I am correct about 5the envelope sender, the full list returned by the senders method is
['postfix-users@postfix.org', 'tech@turbopush.cn', 'geert@hendrickx.be']
being respectively From:, envelope sender and Reply-To:
List membership is determined by much more than From:. See https://gitlab.com/mailman/mailman/-/blob/master/src/mailman/email/message.p...
If you want list membership to be determined solely by From:, you need to put
sender_headers: from
in the [mailman]
section of mailman.cfg. If you just want to drop
Reply-To, you can use
sender_headers: from from_ sender
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
Note: the appropriate list for MM 3 is mailman-users@mailman3.org
On 10/24/24 04:13, Ralf Hildebrandt via Mailman-Users wrote:
I think this is the envelope sender of this message
"X-MailFrom: geert@hendrickx.be" (definitely a member of the list)
and I think this is the envelope sender of the original message that was bounced back.
Why is the mail being accepted?
Because geert@hendrickx.be is in the list returned by mailman.email.message.Message.senders and is a list member presumably with moderation_action Default Processing. In this case it is because geert@hendrickx.be is in Reply-To:.
If I am correct about 5the envelope sender, the full list returned by the senders method is
['postfix-users@postfix.org', 'tech@turbopush.cn', 'geert@hendrickx.be']
being respectively From:, envelope sender and Reply-To:
List membership is determined by much more than From:. See https://gitlab.com/mailman/mailman/-/blob/master/src/mailman/email/message.p...
If you want list membership to be determined solely by From:, you need to put
sender_headers: from
in the [mailman]
section of mailman.cfg. If you just want to drop
Reply-To, you can use
sender_headers: from from_ sender
-- 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
-
Ralf Hildebrandt