X-Git-Url: https://git.distorted.org.uk/~mdw/exim-config/blobdiff_plain/4587a70452f5ce0212dd2345b78cab56b8cde025..48507a38f1410a43af1df681d593290a5e4bf038:/spam.m4 diff --git a/spam.m4 b/spam.m4 index ce9c8e3..4253e88 100644 --- a/spam.m4 +++ b/spam.m4 @@ -103,6 +103,13 @@ skip_spam_check: accept hosts = +trusted accept condition = ${if eq{$acl_c_mode}{submission}} + ## If this is a virtual domain, and it says `spam-check=no', then + ## skip. + accept domains = ${if exists{CONF_sysconf_dir/domains.conf} \ + {partial0-lsearch; CONF_sysconf_dir/domains.conf} \ + {}} + !condition = DOMKV(spam-check, {${expand:$value}}{true}) + ## Otherwise we should check. deny