[Mailman-Users] drop spam solution
Michael Geiger
gege at mgeiger.de
Tue Apr 15 08:25:03 CEST 2008
Hello,
I just want to let you know how I solved the spam problem on my server
and reduced the mail load dramatically:
Mails arriving on my server get tagged by spamassassin before they reach
mailman:
postfix -> spamassassin -> postfix -> mailman
(see http://wiki.apache.org/spamassassin/IntegratedSpamdInPostfix)
I changed my mailman installation (in /opt/mailman) this way:
In directory /opt/mailman/mail:
1. move mailman to mailman-org
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 -----
Now every mail that gets tagged as spam by sa will be dropped by
procmail, even those annoying mails to -owner. And no more backscatter
from your list!!
Michael
More information about the Mailman-Users
mailing list