projects
/
matthijs
/
servers
/
drsnuggles.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
exim: Keep mail for relay domains for 30 days.
[matthijs/servers/drsnuggles.git]
/
etc
/
exim4
/
conf.d
/
acl
/
40_exim4-config_check_data
diff --git
a/etc/exim4/conf.d/acl/40_exim4-config_check_data
b/etc/exim4/conf.d/acl/40_exim4-config_check_data
index 0cf685a0bfff7091740c45a8ea045149296b31d5..23137891411261283699fdc2718aeeca11b242f1 100644
(file)
--- a/
etc/exim4/conf.d/acl/40_exim4-config_check_data
+++ b/
etc/exim4/conf.d/acl/40_exim4-config_check_data
@@
-15,12
+15,21
@@
acl_check_data:
message = Message headers fail syntax check
!verify = header_syntax
message = Message headers fail syntax check
!verify = header_syntax
+ # Don't spamcheck big messages
+ accept
+ condition = ${if >{$message_size}{80k}}
+ add_header = X-Spam-Score: Message too big, not scanned.
- #
require that there is a verifiable sender address in at least
- #
one of the "Sender:", "Reply-To:", or "From:" header lines.
+ #
Deny messages with a large spamscore. The threshold is set by
+ #
spamassassin, see required_score in /etc/spamassassin/local.cf
deny
deny
- message = No verifiable sender address in message headers
- !verify = header_sender
+ message = Message was classified as spam
+ # Check using spamassasin, running as the "spamd" user.
+ spam = spamd
- #
accept otherwise
+ #
Accept any other messages, but add spam headers.
accept
accept
+ add_header = X-Spam-Score: $spam_score ($spam_bar)
+ add_header = X-Spam-Report: $spam_report
+
+# vim: set sts=2 expandtab sw=2 ai: