Re: [exim] Huge server load problem with Exim and SpamAssass…

Etusivu
Poista viesti
Vastaa
Lähettäjä: Magnus Holmgren
Päiväys:  
Vastaanottaja: exim-users
Kopio: Diego H., users
Aihe: Re: [exim] Huge server load problem with Exim and SpamAssassin
Please do not abuse the subject line with excessive capitals and exclamation
marks.

On Thursday 02 August 2007 15:14, Diego H. wrote:
> Below is my spamassassin rules at exim, seems that SA is scanning
> everything and I want to limit the scanning size up to 100k, no more. I
> read that there is a rule called message_size but I dont know where to
> insert it in my config:


This is an Exim question, so please post further questions there.

There is an expansion variable called $message_size. You can add something
like

condition = ${if <={$message_size}{200K}}

to the beginning of each warn statement to disable scanning of messages larger
than (in this example) 200 KiB. Please read chapters 11 and 40-41 of the Exim
specification to learn how your configuration works.

> Thanks in advance!!
>
> warn
>     condition = ${if eq {${acl_m0}}{1}{1}{0}}
>     spam =  ${acl_m1}/defer_ok
>     log_message = "SpamAssassin as ${acl_m1} detected message as spam"
>     add_header = X-Spam-Subject: ***SPAM*** $h_subject
>     add_header = X-Spam-Status: Yes, score=$spam_score
>     add_header = X-Spam-Score: $spam_score_int
>     add_header = X-Spam-Bar: $spam_bar
>     add_header = X-Spam-Report: $spam_report
>     add_header = X-Spam-Flag: YES
>     set acl_m2 = 1

>
>   warn
>   condition = ${if eq {${acl_m0}}{1}{${if eq {${acl_m2}}{1}{0}{1}}}{0}}
>   add_header = X-Spam-Status: No, score=$spam_score
>   add_header = X-Spam-Score: $spam_score_int
>   add_header = X-Spam-Bar: $spam_bar
>   add_header = X-Spam-Flag: NO
>     log_message = "SpamAssassin as ${acl_m1} detected message as NOT spam"

>
> deny
>     condition = ${if eq {${acl_m0}}{1}{${if

>
> >{$spam_score_int}{100}{1}{0}}}{0}}
>
>     log_message = "The mail server detected your message as spam and has
> prevented delivery (100)."
>     message = "The mail server detected your message as spam and has
> prevented delivery."

>
> :super:


-- 
Magnus Holmgren        holmgren@???
                       (No Cc of list mail needed, thanks)


"Exim is better at being younger, whereas sendmail is better for
Scrabble (50 point bonus for clearing your rack)" -- Dave Evans