Re: [exim] ACL to reject spam

Top Pagina
Delete this message
Reply to this message
Auteur: Odhiambo G. Washington
Datum:  
Aan: exim-users
CC: kaiser
Onderwerp: Re: [exim] ACL to reject spam
* On 13/07/06 15:29 -0400, Michael Johnson wrote:
| Hi all
| 
| I'm running 4.60 and I have the following ACL in the data section:
| 
|    deny    message        = This message scored $spam_score points.  
| Congratulations!
|            spam           = nobody:true
|            condition      = ${if >{$spam_score_int}{40}{1}{0}}
| 
| I want to reject at 4 points.  I find using this method, it appears  
| that if a message scores over 100, it's delivered anyway.  I should  
| say, since I added a blacklist entry which adds 100 points to a  
| message, it seems as though the score being over 100 is ignored.   
| Should I change the math in the condition statement?  I'm completely  
| guessing here, but is it starting the count all over again when it  
| hits 100 so the message appears to have only 1 or 2 points when it's  
| actually 103?
| 
| If these assumptions are correct, would the following work?:
| 
|    deny    message        = This message scored $spam_score points.  
| Congratulations!
|            spam           = nobody:true
|            condition      = ${if >{$spam_score_int}{400}{10}{0}}
| 
| Would it be easier to change my blacklist setting to be 50, or just  
| 10?  Where do I set that in spamassassin?



Why don't you try to read the documentation on this feature and
understand first? It's documented at this url:

http://www.exim.org/exim-html-4.62/doc/html/spec_html/index.html#toc0346

PS: If, according to SpamAssassin, the score was 5, that is equivalent
to $spam_score_int of 50 (that it, multiply by a factor of 10).

spam_score_int = spam_score * 10



        cheers
       - wash 
+----------------------------------+-----------------------------------------+
Odhiambo Washington                    . WANANCHI ONLINE LTD (Nairobi, KE)  |
wash () WANANCHI ! com            . 1ere Etage, Loita Hse, Loita St.,  |
GSM: (+254) 722 743 223            . # 10286, 00100 NAIROBI             |
GSM: (+254) 733 744 121            . (+254) 020 313 985 - 9             |
+---------------------------------+------------------------------------------+
"Oh My God! They killed init! You Bastards!"  
                         --from a /. post