[exim] Not very efficient I believe

Page principale
Supprimer ce message
Répondre à ce message
Auteur: gascione
Date:  
À: exim-users
Sujet: [exim] Not very efficient I believe

I have the following ACL integrating spamassassin into my exim gateways.
I believe it is inefficient because I believe it is sending the message
to be evaluated by spamassassin many times. Am I correct and if so how
should I construct the logic to achieve the same result.

Thank You
GA

#### Send message to spamassassin for checking
.ifdef ENABLE_SPAMASSASSIN 
warn              
message = X-Spam-Report: $spam_report
spam = nobody            


warn
message = X-Spam-Score: $spam_score $spam_bar)
spam = nobody:true

warn         
message = X-Spam-Status: YES
spam = nobody


deny message = Message SPAM score exceeded threshold. Messsage
Delivery DENIED.
log_message = SPAM score exceeded
spam = nobody
condition = ${if >{$spam_score_int}{80}{1}{0}}         


warn message = X-Spam-Category: HIGH
spam = nobody
condition = ${if >{$spam_score_int}{50}{1}{0}}            
condition = ${if <{$spam_score_int}{80}{1}{0}}


warn message = X-Spam-Category: MEDIUM
spam = nobody
condition = ${if >{$spam_score_int}{20}{1}{0}}
condition = ${if <{$spam_score_int}{50}{1}{0}}

warn message = X-Spam-Category: LOW
spam = nobody
condition = ${if >{$spam_score_int}{10}{1}{0}}
condition = ${if <{$spam_score_int}{20}{1}{0}}
.endif


--
gascione
------------------------------------------------------------------------
gascione's Profile: http://www.exim-users.org/forums/member.php?action=getinfo&userid=112
View this thread: http://www.exim-users.org/forums/showthread.php?threadid=55234