comment on journal entry: Server-side mail filtering using qmail/procmail/safecat under Plesk
:-
worked for me
Hi,
I've used saper's way and it worked.
Here's my .procmailrc file:
MAILDIR=/var/qmail/mailnames/domain.ro/cristi/Maildir
DEFAULT=${MAILDIR}/
SPAMDIR=${MAILDIR}/.Spam/
TRASHDIR=${MAILDIR}/.Trash/
LOGFILE=${MAILDIR}/procmail.log
LOG="--- Logging ${LOGFILE} for ${LOGNAME} "
# All mail tagged as spam (eg. with a score higher than the set
#threshold)
# is moved to the designated spam folder
:0
* ^X-Spam-Status: Yes.*
${SPAMDIR}
I've created the logfile, chown to vpopuser:vpopuser, and the lof should look like this:
--- Logging /var/qmail/mailnames/domain.ro/cristi/Maildir/procmail.log for popuser From publicitate@domain.ro Thu Dec 31 16:42:10 2009
Subject: ****SPAM**** HIGH * Visitor publicitate's personal 80% OFF
Folder: /var/qmail/mailnames/domain.ro/cristi/Maildir/.Spam/new/126 4300
.
--
Thank you! [Cristi] [reply]

