mailman2 issue - "Your message was rejected"
![](https://secure.gravatar.com/avatar/c0fcee2918eca0a7034a2fe9bf5c0768.jpg?s=120&d=mm&r=g)
Hi all,
There is a question about mailman.
When I send an email to a mailling list from a non-member, I got the error msg "Your message was rejected". However, the non-member has been defined in accept_these_nonmembers = ['test-info@xx'].
some options:
accept_these_nonmembers = ['test-info@xx']
hold_these_nonmembers = []
reject_these_nonmembers = []
discard_these_nonmembers = []
generic_nonmember_action = 2
nonmember_rejection_notice = ''
default_member_moderation = True
member_moderation_action = 1 //# Note that for member_moderation_action, 0==Hold, 1=Reject,
topics_enabled = 0
Maybe it's not due to the non-member setting, since the error will be "Your message has been rejected, probably because you are not subscribed to the mailing list and ..." if the msg is rejected by non-member restriction.
The error msg in vette log just shows as below. How to investigate the issue further? vette:
May xx 10:xx:xx 2022 (2055) Message rejected, msgid: <xxx>
list: list name
handler: Moderate,
reason: Your message was rejected
Thank you! Yuki
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
On 9/28/22 08:45, dmitri maziuk wrote:
On 2022-09-27 11:16 PM, Yuki Nie wrote:
default_member_moderation = True member_moderation_action = 1 //# Note that for member_moderation_action, 0==Hold, 1=Reject, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
What do these do?
default_member_moderation = True sets all new members moderated by default and member_moderation_action = 1 rejects posts from moderated members.
-- 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/c0fcee2918eca0a7034a2fe9bf5c0768.jpg?s=120&d=mm&r=g)
Hi Dima,
I also checked the option before, but the rejected mail address didn't appear in the output of the following command. /usr/lib/mailman/bin/list_members -m <list name> Is there any other ways to check whether the issue is due to "member_moderation_action"?
Yuki
At 2022-09-28 23:45:28, "dmitri maziuk" <dmitri.maziuk@gmail.com> wrote:
On 2022-09-27 11:16 PM, Yuki Nie wrote:
default_member_moderation = True member_moderation_action = 1 //# Note that for member_moderation_action, 0==Hold, 1=Reject, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
What do these do?
Dima
Mailman-Users mailing list -- mailman-users@python.org To unsubscribe send an email to mailman-users-leave@python.org https://mail.python.org/mailman3/lists/mailman-users.python.org/ Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/ https://mail.python.org/archives/list/mailman-users@python.org/
![](https://secure.gravatar.com/avatar/dbf97c196d6ec08d02e175372aecc411.jpg?s=120&d=mm&r=g)
On 2022-09-29 1:19 AM, Yuki Nie wrote:
Is there any other ways to check whether the issue is due to "member_moderation_action"?
I think if you add moderation messages and see if you get one in the bounce, that'll tell you if our suspicion is correct and it's bouncing due to a moderation action. Or not.
Dima
![](https://secure.gravatar.com/avatar/b273ab068bc220d17a3e4c710c401c4b.jpg?s=120&d=mm&r=g)
On 9/27/2022 9:16 PM, Yuki Nie wrote:
When I send an email to a mailling list from a non-member, I got the error msg "Your message was rejected". However, the non-member has been defined in accept_these_nonmembers = ['test-info@xx'].
some options: accept_these_nonmembers = ['test-info@xx']
Check the actual email headers, while the message might say it's coming from "asdf.com", the sending server could be "mail.asdf.com" and those two are different. May not be that exactly, look for things where the header doesn't exactly match the accept_these_nonmembers.
z!
![](https://secure.gravatar.com/avatar/c0fcee2918eca0a7034a2fe9bf5c0768.jpg?s=120&d=mm&r=g)
Hi,
Since the email can be sent as expected with the same configuration for another ML, I think there is no problem in the header. Anyway, I will check it again.
Besides, Are there any other suspected parts?
Yuki At 2022-09-28 23:57:18, "Carl Zwanzig" <cpz@tuunq.com> wrote:
On 9/27/2022 9:16 PM, Yuki Nie wrote:
When I send an email to a mailling list from a non-member, I got the error msg "Your message was rejected". However, the non-member has been defined in accept_these_nonmembers = ['test-info@xx'].
some options: accept_these_nonmembers = ['test-info@xx']
Check the actual email headers, while the message might say it's coming from "asdf.com", the sending server could be "mail.asdf.com" and those two are different. May not be that exactly, look for things where the header doesn't exactly match the accept_these_nonmembers.
z!
Mailman-Users mailing list -- mailman-users@python.org To unsubscribe send an email to mailman-users-leave@python.org https://mail.python.org/mailman3/lists/mailman-users.python.org/ Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/ https://mail.python.org/archives/list/mailman-users@python.org/
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
On 9/28/22 23:56, Yuki Nie wrote:
Hi,
Since the email can be sent as expected with the same configuration for another ML, I think there is no problem in the header. Anyway, I will check it again.
You need to check all the addresses in From:, Sender: and Reply-To: headers and the envelope sender also called unix from and sometimes stored by the MTA in a Return-Path: header.
If any of those is the address of a moderated member, the moderation action will apply.
-- 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/c0fcee2918eca0a7034a2fe9bf5c0768.jpg?s=120&d=mm&r=g)
Hi Mark,
As far as I checked, The Reply-To address is indeed modertated. However, is it necessary to add the addr to 'accept_these_nonmembers'?
I found some dicsussion here. It seems relpy-to addr has no relation with 'accept_these_nonmembers'. https://johnwang.com/p/python/mailman-users/055mq4hk1b/changing-reply-to-add...
If yes, would you like to provide more details to explain why we need to add the 'reply-to' address? Thank you!
At 2022-09-30 02:10:06, "Mark Sapiro" <mark@msapiro.net> wrote:
On 9/28/22 23:56, Yuki Nie wrote:
Hi,
Since the email can be sent as expected with the same configuration for another ML, I think there is no problem in the header. Anyway, I will check it again.
You need to check all the addresses in From:, Sender: and Reply-To: headers and the envelope sender also called unix from and sometimes stored by the MTA in a Return-Path: header.
If any of those is the address of a moderated member, the moderation action will apply.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-Users mailing list -- mailman-users@python.org To unsubscribe send an email to mailman-users-leave@python.org https://mail.python.org/mailman3/lists/mailman-users.python.org/ Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/ https://mail.python.org/archives/list/mailman-users@python.org/
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
On 10/17/22 23:41, Yuki Nie wrote:
Hi Mark,
As far as I checked, The Reply-To address is indeed modertated. However, is it necessary to add the addr to 'accept_these_nonmembers'?
That won't work. If the post is determined to be from a member because of Reply-To:, that member's moderation applies. *_these_nonmembers only applies to posts that are not from a member.
I found some dicsussion here. It seems relpy-to addr has no relation with 'accept_these_nonmembers'.
Correct.
If yes, would you like to provide more details to explain why we need to add the 'reply-to' address?
The addresses that are checked for list membership are by default all those in From:, Sender: and Reply-To: headers plus the envelope sender. This is controlled by the setting
SENDER_HEADERS = ('from', None, 'reply-to', 'sender')
where None refers to the envelope sender. If you don't want to accept a Reply-To: address as a member, set
SENDER_HEADERS = ('from', None, 'sender')
in mm_cfg.py.
-- 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)
On 9/27/22 21:16, Yuki Nie wrote:
When I send an email to a mailling list from a non-member, I got the error msg "Your message was rejected". However, the non-member has been defined in accept_these_nonmembers = ['test-info@xx'].
The message Your message was rejected
is almost certainly because the
sender is actually a moderated member and member_moderation_notice is empty.
-- 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/c0fcee2918eca0a7034a2fe9bf5c0768.jpg?s=120&d=mm&r=g)
Hi Mark,
I suspected the option before, but I couldn't check the rejected member from the following command, which shows the moderated members.
/usr/lib/mailman/bin/list_members -m <list name>
Any other ways to confirm whether the issue is due to "default_member_moderation"?
Yuki
At 2022-09-29 01:07:44, "Mark Sapiro" <mark@msapiro.net> wrote:
On 9/27/22 21:16, Yuki Nie wrote:
When I send an email to a mailling list from a non-member, I got the error msg "Your message was rejected". However, the non-member has been defined in accept_these_nonmembers = ['test-info@xx'].
The message
Your message was rejected
is almost certainly because the sender is actually a moderated member and member_moderation_notice is empty.-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-Users mailing list -- mailman-users@python.org To unsubscribe send an email to mailman-users-leave@python.org https://mail.python.org/mailman3/lists/mailman-users.python.org/ Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/ https://mail.python.org/archives/list/mailman-users@python.org/
participants (4)
-
Carl Zwanzig
-
dmitri maziuk
-
Mark Sapiro
-
Yuki Nie