The Official BLOG and Wiki for CustomMode.com
[ start | index | login ]
start > 2007-09-17 > 1

2007-09-17 #1

Created by dmitry. Last edited by dmitry, one year and 64 days ago. Viewed 146 times. #1
[edit] [rdf]
labels
attachments

procmail setup

Set up procmail

Create the .procmail directory

$ cd ~
$ mkdir .procmail

Create ~/.procmailrc

PROCMAILDIR=$HOME/.procmail
LOG=$PROCMAILDIR/pmlog
# VERBOSE=yes # turn this on for debugging
MAILDIR=$HOME/mail # this is for pine - yours may differ
INCLUDERC=$PROCMAILDIR/rc.spam
# INCLUDERC=$PROCMAILDIR/rc.morefilters
# If none of the filters match, it will go to your inbox.

Create ~/.procmail/rc.spam

:0:
* ^X-Spam-Level: XXXXXXXX
zSpam

Test Mailing (from a different machine):

$ cat spam.txt | /usr/sbin/sendmail your-user@your-host.com
$ cat notspam.txt | /usr/sbin/sendmail your-user@your-host.com

This time, the non-spam should show up in your inbox, and the spam should go to the folder zSpam.

>>http://traxel.com/doc/spamassassin-setup.html

Please login to post a comment.
custommode.com | ©2000-2005
webmaster at custommode dot com