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:

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:
-- 
View this message in context: 
http://www.nabble.com/HUGE-SERVER-LOAD-PROBLEM-I-NEED-HELP-URGENT-PLEASE%21%21%21%21%21%21%21%21%21-tf4206065.html#a11964286
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.

Reply via email to