On 7/20/21 2:09 AM, Lars Schimmer wrote:
We created a new mailinglist, added 3 owner and several members. Now we want some email addresses to post to that list but not receive mails from the list. So I added those to the "non-member" area of the mailinglist and checked every non-member to "acceppt at once".
But on a test, a email address, which is owner AND non-member, cannot send to mailinglist, always get a "HOLD: ...... The message is not from a list member"
See https://gitlab.com/mailman/mailman/-/issues/659
If you read through the comment thread, you'll see that the issue is when setting moderation action for an address which is both an owner and a nonmember, it is the owner's action that actually gets set, so that the nonmember's action remains set to list default.
You need to set the moderation action for the nonmember via mailman shell. If all the non-members are the ones you added, you can do
$ mailman shell -l your.list.id
Welcome to the GNU Mailman shell
Use commit() to commit changes.
Use abort() to discard changes since the last commit.
Exit with ctrl+D does an implicit commit() but exit() does not.
The variable 'm' is the ... mailing list
>>> for nonmember in m.nonmembers.members:
... nonmember.moderation_action = Action.accept
...
>>> commit()
If there are other nonmembers whose action you don't want to set to accept, you need to do something like
>>> emails = ['first@example.com',
'second@example.com',
<more emails>,
]
>>> for nonmember in m.nonmembers.members:
... if nonmember.address.email in emails:
... nonmember.moderation_action = Action.accept
...
>>> commit()
to only do the ones you want.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan