You are here Home > Know-how > Linux > Messaging, E-Mail > SPAM / Spamassasin

Linux Reference

4.5.3 SPAM / Spamassasin


20.02.2008
4.5.2.1 Procmail [  up  ] - [ top ] - [ linux a-z ] 4.6 Virtualization with Xen

Spamassasin


Customize settings
cd /etc/mail/spamassassin
vi local.cf

→ /home/user/.spamassassin/user_prefs

Customize user's .procmailrc

$ cat ~/.procmailrc
Download → files/dot procmailrc.txt
# 26.06.2004 19:58
# The order of the recipes is significant

SHELL=/bin/sh                     # Use Bourne shell
MAILDIR=${HOME}/Maildir           # Customize as appropriate
LOGFILE=${MAILDIR}/procmail.log   # Your procmail log
VERBOSE=yes                       # Produce full information
LOGABSTRACT=all                   #

:0 H
* ^To: [a-z 0-9_]* ?<?mailnull@.*
${IMAP_SPAM}

:0 H
* ^Subject: test
${IMAP_SPAM}

:0fw: spamassassin.lock
| /usr/bin/spamassassin
# | /usr/bin/spamc

:0 H
* ^Subject: \[SPAM\] *
${IMAP_SPAM}


/know how/procmail/recipes


See also:

SPAM Links



copyright by retoh - created with mytexi