[Mailman-Users] drop spam solution

Mark Sapiro mark at msapiro.net
Tue Apr 15 18:32:49 CEST 2008


Brad Knowles wrote:

>Quoting Michael Geiger <gege at mgeiger.de>:
>
>> 2. create a new wrapper-script "mailman" (chown mailman:mailman, chmod 755):
>> ----- BEGIN -----
>> #!/bin/sh
>> /usr/bin/procmail -m /opt/mailman/mail/mailman.procmailrc $*
>> -----  END  -----
>>
>> 3. create the file "mailman.procmailrc" (chown mailman:mailman, chmod 644):
>> ----- BEGIN -----
>> :0
>> * ^X-Spam-Flag:.+YES
>> /dev/null
>>
>> :0
>> |/opt/mailman/mail/mailman-org $1 $2
>> -----  END  -----
>
>You can do all of this from within Mailman itself.  You don't need  
>procmail.  If anything, you've made your mail server configuration  
>more complex and more error-prone than it needs to be, in order to  
>achieve your goal.


But Michael's solution applies to all mail to any Mailman list or
list-* address.

I assume Brad is thinking of header_filter_rules which have to be set
per list and apply only to mail to the list and list-owner addresses.

Michael's solution doesn't require procmail per se, but it depends on
Mailman mail passing through some filter ahead of the mail wrapper
which will drop the SA flagged mail.

-- 
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