place spam in a junk folder in plesk
First, make sure procmail is installed on your server, and change to this directory:
/var/qmail/mailnames/yourdomain.com/yourusername/
Inside that directory, drop in a .procmailrc file which contains the following:
MAILDIR=/var/qmail/mailnames/yourdomain.com/yourusername/Maildir
DEFAULT=${MAILDIR}/
SPAMDIR=${MAILDIR}/.Junk/
:0
* ^X-Spam-Status: Yes.*
${SPAMDIR}
Once that file is in place, move the .qmail file out of the way, and replace it with this:
| /usr/local/psa/bin/psa-spamc accept
|preline /usr/bin/procmail -m -o .procmailrc
Any changes you or your users make in plesk will over write this!
To get around this change the file attributes to immutable:
# chattr +i .qmail .procmailrc
Credit for this trick goes to Russ Wittmann.
Related Posts
No related posts.
| Print article | This entry was posted by Andy Bird on March 21, 2009 at 9:21 pm, and is filed under plesk, procmail, qmail. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |