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
18 # Don't spamcheck big messages
20 condition = ${if >{$message_size}{80k}}
21 add_header = X-Spam-Score: Message too big, not scanned.
23 # Deny messages with a large spamscore. The threshold is set by
24 # spamassassin, see required_score in /etc/spamassassin/local.cf
26 message = Message was classified as spam
27 # Check using spamassasin, running as the "spamd" user.
29 # Don't reject to some trusted hosts, since they will only generate
30 # useless delivery failures to innocent people. We check this after the
31 # spamcheck, so the next rule can still the spam headers properly.
32 !hosts = +dont_reject_spam_hosts
34 # Accept any other messages, but add spam headers.
36 add_header = X-Spam-Score: $spam_score ($spam_bar)
37 add_header = X-Spam-Report: $spam_report
39 # vim: set sts=2 expandtab sw=2 ai: