PDA

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



dreamline
05-27-2009, 07:29 PM
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

getUP
05-28-2009, 05:06 AM
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?

dreamline
05-28-2009, 05:41 AM
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

dreamline
05-30-2009, 07:21 PM
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



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


Regards
Dreamline

getUP
05-31-2009, 01:01 AM
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.

nobaloney
05-31-2009, 12:38 PM
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

dreamline
06-01-2009, 06:55 PM
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

nobaloney
06-01-2009, 07:10 PM
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