[Mailman-Users] Default ban_list for new lists

Mark Sapiro mark at msapiro.net
Tue Sep 16 21:46:34 CEST 2008

Edward Ned Harvey wrote:

>> Put
>> DEFAULT_BAN_LIST = ['^(?!(^.*@mydomain.com))']
>> (or whatever you want) in mm_cfg.py. Then, in order to make it work,
>> find the lines
>>         # Ban lists
>>         self.ban_list = []
>> in the definition of the InitVars() method in Mailman/MailList.py and
>> change the second line to
>>         self.ban_list = mm_cfg.DEFAULT_BAN_LIST
>> I'm generally opposed to "configuration creep", but if people think
>> this is a worthwhile feature, speak up and I'll consider it for
>> Mailman 2.2.
>Wow, that's like the awesomest answer I ever had to a random question in a
>user group.  Thanks!


>I think my situation is unusual enough, that I'm not suggesting it as a
>feature for general usage.  Although, I'm excited enough about this, I'm
>likely to repeat it several different times, at different companies.  ;-)

Note that it would also be a good idea to put


in Defaults.py when you make the above change to MailList.py. That way,
if someone else decides to remove the DEFAULT_BAN_LIST setting from
mm_cfg.py, things will still work.

Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the Mailman-Users mailing list