X-Git-Url: https://git.distorted.org.uk/~mdw/exim-config/blobdiff_plain/02af00e7f3c0d4f177a7f6a3485c84c3c6d488f8..08248c8fccb1e6a40d2034208a193e7535f7dc9c:/vhost.m4 diff --git a/vhost.m4 b/vhost.m4 index 41bc715..4c13c18 100644 --- a/vhost.m4 +++ b/vhost.m4 @@ -63,6 +63,20 @@ FILTER_ROUTER(virtual_file, <:VHOST_FILTER(file, filter):>,, <: VHOST_USER:>) +SECTION(routers, virtual-spam)m4_dnl +## If we're dealing with a virtual host, see if we have special spam-limit +## rules to apply. +SPAMLIMIT_ROUTER(virtual_spam_limit_lookup) + VHOST + condition = DOMKV(spam-limit-file, {true}{false}) + SPAMLIMIT_LOOKUP(DOMKV(spam-limit-file), + , $local_part,, $domain, $sender_address) +SPAMLIMIT_ROUTER(virtual_spam_limit_userv) + VHOST + condition = DOMKV(spam-limit-userv, {true}{false}) + SPAMLIMIT_USERV(DOMKV(spam-limit-userv),, $local_part,, + $domain, $sender_address) + SECTION(routers, virtual-tail)m4_dnl ## Last ditch effort for required local parts. This is a bit strange because ## we should only try this for `final' domains -- where we're not going to