From 48507a38f1410a43af1df681d593290a5e4bf038 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Mon, 12 May 2014 20:04:00 +0100 Subject: [PATCH] spam.m4: Allow virtual domains to opt out of spam checking. --- spam.m4 | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.11.0