RE: [exim] configuring Spamassassin with Exim

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Herb Martin
Datum:  
To: exim-users
Betreff: RE: [exim] configuring Spamassassin with Exim
> From: Robert Cates [mailto:robert@kormar.de]
> Hi, and thanks for you advice! I've now upgraded to exim
> 4.54 and have it running.
>
> Now, I suspect what you're suggesting I do is undo the
> spamassassin configuration I did (the router/transport part)
> and use the new way with exim 4.54.(?)
>
> I read over the specs for exim 4.54, particularly chapter 40,
> but it's not clear to me how to configure exim 4.54 to
> use/communicate with spamassassin.
> Can you please layout what I need to add to my exim.conf to
> use (a default installation of) spamassassin?


There are many good examples on the web, and mine system
is fairly complex but in no way original -- I borrowed
practically all of the origins of the following:

(in Data check ACL):

warn   message = X-Spam-Report: $spam_report
     condition = ${if <{$message_size}{MAX_SPAM_SIZE}{1}{0}}
          spam = herbm:true/defer_ok


warn   message = Subject: ***** SPAM *****__$spam_score $h_subject
     condition = ${if <{$message_size}{MAX_SPAM_SIZE}{1}{0}}
          spam = herbm/defer_ok
     condition = ${if <{$spam_score_int}{100}{1}{0}}

                
warn   message = Subject: ***** SPAM *****_$spam_score $h_subject
     condition = ${if <{$message_size}{MAX_SPAM_SIZE}{1}{0}}
          spam = herbm/defer_ok
     condition = ${if >{$spam_score_int}{99}{1}{0}}
     condition = ${if <{$spam_score_int}{1000}{1}{0}}

                
warn   message = Subject: ***** SPAM *****$spam_score $h_subject
     condition = ${if <{$message_size}{MAX_SPAM_SIZE}{1}{0}}
          spam = herbm/defer_ok
     condition = ${if >{$spam_score_int}{999}{1}{0}}


warn   message = X-Spam-Status: score=$spam_score ($spam_bar)
     condition = ${if <{$message_size}{MAX_SPAM_SIZE}{1}{0}}
          spam = herbm:true/defer_ok


                    
warn   message = X-Spam-IsSpam: yes
     condition = ${if <{$message_size}{MAX_SPAM_SIZE}{1}{0}}
          spam = herbm/defer_ok
      logwrite = :reject: H=$sender_fullhost SpamD score=$spam_score


# HIGH_SPAM_SCORE point spam                 
warn   message = X-SuperSpam: Message exceeded spam score threshhold.
     condition = ${if <{$message_size}{MAX_SPAM_SIZE}{1}{0}}
          spam = herbm:true/defer_ok
      # control = no_mbox_unspool
       condition = ${if >{$spam_score_int}{HIGH_SPAM_SCORE}{1}{0}}


Then in the transport section I pick out the IsSpam and
"high spam" to "spam catch accounts" for review.

(Actually, I have another set of Regex filters that drop
most of the High Spam if it meets other criteria.)

The way to find the good examples on the web are with
a Google search something like:

[ spamassassin exim 4.50..4.54 acl spamd condition ]

Add or remove some terms to adjust for best results....

We also use ClamAV and GreyList Daemon with Exim.

--
Herb Martin