Delete High Scoring SPAM

hci

Verified User
Joined
Jun 15, 2004
Messages
355
We have Spamassassin running on our server. Is there anyway to get it to delete all messages tagged as Spam on a certain email addresses and not others? Problem is this certain email user has an older MAC and cannot get the junk mail filter options to work on there PC. I do not want to do this on 1000+ email accounts, just theres.

We normally just tag all message headers with there Spam scores from SA. We also mark all messages that scored over 5 with a low priority flag. With that the end email users(were an ISP, we have a lot) can at there option setup a filter.

Matt
 
You could try adding something like this to the user's exim filter
/etc/virtual/domainname.com/filter

Code:
if
  $h_X-Spam-Level: contains "***************"
then
  seen finish
endif

This will not deliver mail with a SA score of 15 or higher
 
Sure... just read the exim documentation, learn the filter language, and create your own solution.

:)

Jeff
 
I noticed this in the Exim filter file.


# Exim Filter

# created by DirectAdmin, version 1.26.2
# Do not modify this file as any changes will be
# overwritten when the user makes a change.
# (data is only written to this file, not read)

finish

So how do I make any changes to this file?

Matthew
 
I believe this user/admin (as well as some of us who are considering this advice) needs an answer to the above question. Considering the quote he found. What does this mean and how would you update it to make (or keep) any change you put in permanently (excluding the obvious case if your server had to be rebuilt)?
 
This file is managed by Directadmin, so it's not possible to keep this settings permanent, unless such a filter is added to DA itself.

Another possibility would be to add the filter to the /etc/system_filter.exim file. This file will be overwritten when you do an exim upgrade.
 
Back
Top