FAQ
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

Search Discussions

  • Brad Knowles at Apr 15, 2008 at 3:07 pm

    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.

    --
    Brad Knowles <brad at shub-internet.org>
    LinkedIn Profile: <http://tinyurl.com/y8kpxu>
  • Mark Sapiro at Apr 15, 2008 at 4:32 pm

    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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-users @
categoriespython
postedApr 15, '08 at 6:25a
activeApr 15, '08 at 4:32p
posts3
users3
websitelist.org

People

Translate

site design / logo © 2022 Grokbase