Configuring Spamassassin & Squirrelmail

Synful Serenity

[H]ard|Gawd
Joined
Jun 4, 2004
Messages
1,256
How do you configure Spamassassin and cpanel X so that messages marked as spam are moved into an inbox trash folder? I originally had Spambox enabled, but then I would have to delete the spam messages twice, first from the spam folder, and then from the trash folder. The other option I've seen was to have the spam automatically deleted, but I want to be able to review them just in case. I'd rather just have all the spam redirected to the Trash folder. There doesn't appear to be a setting in Squirrelmail options to do this.
 
I do this using a procmail recipe.
Code:
:0
* ^X-Spam-Score:.*
$HOME/Maildir/.Spam

This assumes a few things;

1) If a message isn't spam, it doesn't get the X-Spam-Score header.
2) You are running procmail
3) You are running maildir format mailboxes ( two thumbs WAY up )
 
Back
Top