Re: [exim] SpamAssassin and maximum message size limit for p…

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Tim Jackson
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] SpamAssassin and maximum message size limit for passing tospamd
Alexandru GHERMAN wrote:

> I use an exim/clamd/spamd configuration. Could anyone help me please if I
> can do some limitations in exim's configuration, I mean when someone sends a
> big message (let's say 4 MB limit), not to be passed to spamassassin ?


If you're using ACLs, you just need to add a condition involving
$message_size. You could use something like this:


warn   log_message  = Skipping spam scan; message too large
        message      = X-Spam-Report: Spam scan skipped;message too large
        condition    = ${if >{$message_size}{4M}}


accept condition    = ${if >{$message_size}{4M}}


warn   message      = X-Spam-Report: $spam_report
        spam         = exim:true


...ACL continues, blocks messages that exceed a certain score etc...


4MB is too big though. You don't really want to be passing messages that
big to SpamAssassin.


Tim