Filing spam to folder

torp

Verified User
Joined
Jul 6, 2004
Messages
129
Location
Oslo
I found the following code snippet that could be added to exim.conf that should be added over the sorting rules:

if
$h_X-Spam-Status: contains "Yes"
or
"${if def:h_X-Spam-Flag {def}{undef}}" is "def"
then
logwrite " => junk : SPAM"
save $home/Mail/junk/spam/
finish
endif

Would this work on my RH9/Exim/DA with Spamblocker?

I'd like to automatically put all spam-flagged emails in the email user's 'Spam' folder.

Thanks for help!
 
Where did you find this?

For what version of exim is it written?

My understanding is that the "exim way" would be to use an exim filter before the routers.

Jeff
 
I did a Google on spamassassin and exim.conf

How do I set up a filter for this?

Either it has to be easy so that each mailbox-owner can do it himself through DA or squirrel, or it has to be automatic for the whole domain.
 
Hello,

The filter is in /etc/virtual/domain.com/filter

Don't make any changes to the filter through DA after you add it or else it will be wiped out (make a backup too ;)). We'll be adding somethign like that once we get the spamassin controls setup through DA.

John
 
I can set filters for all email users through this, right?

Does this mean I should disable filters (through modifying the skin) on the user panel, so it won't be messed up?

Is there any timeline on adding spamassassin control features to DA?

Thanks!
 
Hello,

Yes, you can filter anything you need to from there.

Disabling the featue through the skin might be a good idea, just to make sure.

Spamassissin controls will probably be introduced in 2 releases from now.

John
 
1) I'm looking for a feature that allows me to set this systemwide, so that all emails marked as spam by spamassassin is automatically filed to the email account holder's spamassassin folder, that should also be accessible through Squirrelmail.

The reason for this is that when downloading email to a handheld or when travelling, you don't want to download all the spam. But when you're home, it might be advantageous to log in to webmail once a week, to see if something has been marked as spam that shouldn't, and delete all folder contents.

2) How does the filter plugin in Squirrelmail work? Can I set this here, so that emails will be automatically filtered to a folder set in Squirrelmail, and is not downloaded in my client unless I specify so through IMAP?
 
Back
Top