Re: [exim] help with spamassassin size limit check

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Jerry Bell
日付:  
To: Brian, exim-users
CC: 
題目: Re: [exim] help with spamassassin size limit check
Sadly, I wasn't going to solve this until after I made a fool of myself in
front of this list.  As it turns out, I had a spam=nobody hiding out in an
acl statement earlier, one that specifically controls the addition of the
spam report to all emails, like this:
warn  message = X-Spam-Report: $spam_report
      spam = nobody:true


Many thanks for everyone's help on this one. I feel much better now :)

Jerry

> So, this seems very reasonable. I implemented it as so, but I'm seeing
> the very same behavior. Oddly, the accept with message size condition
> seems to be completely ignored. I set the logic to pass anything smaller
> than 200k, and again there is no change. Have you verified that this
> actually works the way you think it does?
>
> Many thanks for your time!
>
> Jerry
>
>
>> acl_check_data:
>>
>> ...
>>
>> warn message    = :spf_received:$spf_received

>>
>> accept
>>   condition      = ${if >={$message_size}{200k}{1}{0}}

>>
>> drop message    = ** Attention **\n \
>>         This message has been rejected!\n \
>>         This message has a SPAM score of: $spam_score points.\n \
>>         Please call xxx.yyy.zzz if you feel this message is in error.\n
>> \
>>         [$sender_address from $sender_host_address at $tod_bsdinbox]
>>   spam           = spamd
>>   condition      = ${if >{$spam_score_int}{100}{1}{0}}
>>   log_message    = [SA Reject] $spam_score

>>
>> warn message    = X-New-Subject: [SPAM] $h_subject:
>>   spam           = spamd
>>   log_message    = [SPAM] $spam_score

>>
>> warn message    = X-Spam-Info: Spam detection software, provided by
>> {Company name here}
>> warn message    = X-Spam-Info: Has scanned this message. If this is
>> believed to be spam
>> warn message    = X-Spam-Info: A tag has been added to the subject for
>> you own filtering purposes.
>> warn message    = X-Spam-Info: Please call us at: xxx.yyy.zzz if you
>> have any questions.

>>
>> warn message    = X-Spam-Score: $spam_score ($spam_bar)

>>
>> warn message    = X-Spam-Report: $spam_report

>>
>> accept
>>
>> # End
>>
>> This part is at the end, after the demime for malware and demime_error
>> level things we put this.
>>
>> Let me know if this helps.
>>
>> - Brian
>>
>> --
>> ## List details at http://www.exim.org/mailman/listinfo/exim-users
>> ## Exim details at http://www.exim.org/
>> ## Please use the Wiki with this list - http://www.exim.org/eximwiki/
>>
>
>
>
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://www.exim.org/eximwiki/
>