Jared Markell wrote:
Hey all,
 
How does one modify spamassasin or qmail to automatically move anything marked as spam by spamassasin to the Trash folder (or just delete) on a per-email account basis? On our old mail server, the preference was in squirrelmail, but it's not in the toaster version.
 
This discludes the Message Filtering in Squirrelmail since that only appears to work if you only use squirrelmail for email versus pop3 or imap.
There is some work being done on this that should (hopefully) be rolled out in the next version. The previous version had this with a mailfilter script (which you can still use), but it caused some issues with quotas. There were 2 workarounds for this, one being adding a command in your tcp.smtp file, the other just running a script nightly that would learn from the spam in the Spam folder then delete it. Check to see if you have the mailfilter script (/etc/mail/mailfilter); depending on when you installed you may/may not have the script. Then it's just as easy as making the user's .qmail file look like this:
|/var/qmail/bin/preline /usr/bin/maildrop -A 'Content-Filter: maildrop-toaster' /etc/mail/mailfilter
and making sure they have a folder in Squirrelmail called Spam
Email me off-list if you need the script, and I can also give an example of the nightly script I use to learn/delete the spam messages.


Reply via email to