For whatever reason, I've had trouble configuring Mailman 2.1.x to either reject or discard attempted postings by non-members to mailing lists.

Sometimes it's a member using a different email address, but the majority of the time it's spam or wrongly directed email. So after a fair amount of poking around, I found a command-line way of doing the deed here.

To summarize, if your list is called "foo" you can do this to export the config to a file:

config_list -o foo foo
vi foo

Then find the string generic_nonmember_action = 1 and change the 1 to a 2 (reject) or 3 (discard).

Then re-import the configuration:

config_list -i foo foo

And you should be good to go.

Now if I forget this again in the future, at least I know I can come back to my own blog to search for it. :-)

Posted by jzawodn at December 21, 2007 10:07 AM

Reader Comments
# David said:

The GUI setting should be here:

/admin//?VARHELP=privacy/sender/generic_nonmember_action

More generally:

/admin//privacy/sender

on December 24, 2007 02:26 PM
Disclaimer: The opinions expressed here are mine and mine alone. My current, past, or previous employers are not responsible for what I write here, the comments left by others, or the photos I may share. If you have questions, please contact me. Also, I am not a journalist or reporter. Don't "pitch" me.

 

Privacy: I do not share or publish the email addresses or IP addresses of anyone posting a comment here without consent. However, I do reserve the right to remove comments that are spammy, off-topic, or otherwise unsuitable based on my comment policy. In a few cases, I may leave spammy comments but remove any URLs they contain.