2 ### acl/40_exim4-config_check_data
3 #################################
5 # This ACL is used after the contents of a message have been received. This
6 # is the ACL in which you can test a message's headers or body, and in
7 # particular, this is where you can invoke external virus or spam scanners.
11 # Deny unless the address list headers are syntactically correct.
13 # This might reject legitimate mail...
15 message = Message headers fail syntax check
16 !verify = header_syntax
19 # require that there is a verifiable sender address in at least
20 # one of the "Sender:", "Reply-To:", or "From:" header lines.
22 message = No verifiable sender address in message headers
23 !verify = header_sender
25 # Don't spamcheck big messages
27 condition = ${if >{$message_size}{80k}}
28 add_header = X-Spam-Report: Message too big, not scanned.
30 # Deny messages with a large spamscore. The threshold is set by
31 # spamassassin, see required_score in /etc/spamassassin/local.cf
33 message = Message was classified as spam
34 # Check using spamassasin, running as the "spamd" user.
37 # Accept any other messages, but add spam headers.
39 add_header = X-Spam-Score: $spam_score ($spam_bar)
40 add_header = X-Spam-Report: $spam_report
42 # vim: set sts=2 expandtab sw=2 ai: