sending messages in response to posts from non-members
I'd like to turn off the "bounce messages" sent by mailman to non-members. My reasoning is that most such posts are spammers, and often use forged return-paths / From's, so I end of sending steady stream of backscatter to amazon.com etc...
Is this configurable (without postorius) somehow?
d
On 2/26/22 04:26, David Bremner wrote:
I'd like to turn off the "bounce messages" sent by mailman to non-members. My reasoning is that most such posts are spammers, and often use forged return-paths / From's, so I end of sending steady stream of backscatter to amazon.com etc...
Is this configurable (without postorius) somehow?
What exactly do you want? Do you want to discard without notice any nonmember posts or do you want to hold them but not send a notice of the hold to the poster?
For the former, you want to set the list's default_nonmember_action to discard. For the latter you want to set the list's respond_to_post_requests to False.
To make either of these settings the default for new lists, you'd need to patch mailman/styles/base.py.
To set them for all lists you could do the following in mailman shell
$ bin/mailman shell
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.
>>> for mlist in getUtility(IListManager).mailing_lists:
... # Pick the appropriate one of the following.
... mlist.default_nonmember_action = Action.discard
... mlist.respond_to_post_requests = False
...
>>> commit()
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mark Sapiro <mark@msapiro.net> writes:
On 2/26/22 04:26, David Bremner wrote:
I'd like to turn off the "bounce messages" sent by mailman to non-members. My reasoning is that most such posts are spammers, and often use forged return-paths / From's, so I end of sending steady stream of backscatter to amazon.com etc...
Is this configurable (without postorius) somehow?
What exactly do you want? Do you want to discard without notice any nonmember posts or do you want to hold them but not send a notice of the hold to the poster?
It was the latter, and your suggestion for existing lists seems to have worked.
Thanks,
David
participants (2)
-
David Bremner
-
Mark Sapiro