procmail
[Top] [All Lists]

Re: Procmail/SpamAssassin Configuration

2002-10-14 01:23:49
At 2002-10-14 09:59 +0700, PUTH CHAN CHOTH wrote:

I would like to configure SpamAssassin and procmail. I have
copied Mail-SpamAssassin-2.42.tar.gz to my home directory


Mlocal,         P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9,
S=EnvFromL/HdrFromL, R=EnvToL/HdrToL,
                T=DNS/RFC822/X-Unix,
                A=procmail -Y -a $h -d $u
...
Mprocmail,      P=/usr/bin/procmail, F=DFMSPhnu9,
S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP/HdrFromSMTP,
                T=DNS/RFC822/X-Unix,
                A=procmail -Y -m $h $f $u

It is not clear whether you are trying to set it up for yourself only
or for all users.  Either way, I don't think you should be using the
Mprocmail mailer (and probably aren't, but you didn't show the
#procmail calls in sendmail.cf).  It is sufficient that procmail is
the Mlocal mailer.

If you are doing it for everyone on your host, use /etc/procmail.  If
you are (as I hope) a user setting it up for yourself, use .procmail
in your home directory.  Either way, the file could be approximately
as follows.

I am using SpamOracle, and the example comes from the SpamOracle
documentation, but you should be able to modify this for SpamAssassin:

PATH=$HOME/local/bin:/bin:/usr/bin:/usr/local/bin:.
MAILDIR=$HOME/mail
DEFAULT=/var/spool/mail/$LOGNAME
LOGFILE=$MAILDIR/fromlog
LOCKFILE=$HOME/.procmaillock

:0fw
| /usr/local/bin/spamoracle mark

:0
* ^X-Spam: yes;
$HOME/mail/spambox



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail