• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

Deleting High Scoring Spam - Keep Low Scoring Spam

0

00Kell

Guest
I am trying to find a way to automatically delete all spam above a certain score and yet still allow spam above a lower threshold to be marked as spam.

e.g. Spam above 15 gets deleted
Spam abvoe 6 gets flagged with **SPAM**

I have found the .qmail file which controls whether SPAM messages are kept or deleted but have no idea if this can be manipulated to my ends.

Does anyone have any ideas? This was really easy with procmail...

if you have an account set up for Spam Filtering, it should have a .qmail file in /var/qmail/mailnames/domain/username/.qmail with one of the following contents:

If spam is to be deleted:
| /usr/local/psa/bin/psa-spamc -f -u [email protected] -U /tmp/spamd_light.sock -c || exit 99
./Maildir/

If spam is to be left in inbox:
| if [ -z "$SA" ]; then export SA=1; /usr/local/psa/bin/psa-spamc -f -u [email protected] -U /tmp/spamd_light.sock > spamcheck$$; /var/qmail/bin/qmail-local "$USER" "$HOME" "$LOCAL" "" "" "$HOST" "$SENDER" "$DEFAULT" < spamcheck$$; retval=$?; rm -f spamcheck$$; [ $retval = 0 ] && exit 9
9; exit $?; fi
./Maildir/
 
Back
Top