Exim: How to drop spam score > 20, but below change subject line

dreamline

Verified User
Joined
Dec 3, 2005
Messages
108
Hi All,
I've been looking around a bit and have installed spamassassin on my servers. It works smoothly but I want to define more options. At the moment only my subject line is rewritten if the spam score is above 10.

I have looked at the conditions, but those rules are a bit of a blur to me and I don't fully understand what happens (all I know is that a score above 10 results in the subject line being rewritten).

I want to have messages dropped if the spamscore is higher than 15, but are let through (with the subject line rewritten) if they are below 15.

Does anybody have a good tutorial on how to do that or already has something in their exim config for dropping spam messages?

Would be greatfull. Thanks for your help.. :D

Dreamline
 
You can do that with the SpamAssassin Setup, which is located in your DirectAdmin CP. No need to adjust Exim settings as long as SpamAssassin is installed.

What score threshold do you wish to use?

Would you like to delete high scoring spam?
 
Hi getUp,
Yes, I am configuring local.cf for filtering on certain words and set a spam score > 15. If it's a score between 10 and 15 then it's considered spam, but I want to receive the message. However every score above 15 should be deleted.. :)

Thanks for your help... :D
 
Problem solved

Well I think I solved my problem and added a few lines to exim.conf after "check_message:" but right before the "accept". I didn't think it would be that easy since I don't understand the ACL's completely.

But some good old copying and pasing did the trick and I am now using a spamscore of 15.0 (150 in the condition to drop a message. :) Below the part I added to exim.conf which might come in handy for other exim users. :D

Code:
drop message = This message has been dropped because of an excessive spam score : Score: $spam_score
spam = nobody:true
condition = ${if >{$spam_score_int}{[B]150[/B]}{1}{0}}

Regards
Dreamline
 
Why aren't you using the method DirectAdmin has built for you? You can do exactly what you want by using the control panel without any modifications to exim.conf.
 
This does not appear to be a standard DirectAdmin exim.conf file.

The standard DirectAdmin exim.conf file can't drop a message after it's run through SpamAssassin because it doesn't run messages through SpamAssassin until after it's been accepted, and you can't drop a mesage once you've accepted it.

Jeff
 
Hi getUp,
Seems I missed something in the Spamassassin setup. In DA it looks possible to setup a spamscore and drop message at a different spamscore, so I will try that too on one of my servers to see if it works (I'm sure it will). However the lines I mentioned will also show the drop message in my logifles.. :)

Thanks for the tip... :D
 
Last edited:
The DirectAdmin spam score setup was made to work with SpamAssassin as set up in the standard exim.conf file. If you're not using one of the standard exim.conf files supported by DirectAdmin within the past three years or so, then be sure to check to see if it works for you.

Jeff
 
Back
Top