X-Git-Url: https://git.hcoop.net/hcoop/zz_old/config/exim4-hopper.git/blobdiff_plain/4e56c140f66ed7c70b900686a96f78cb4e0cf486..14e6d9d8d5043defe201404179f5d18ca50eb2c9:/conf.d/router/550_exim4-config_spamcheck_localuser diff --git a/conf.d/router/550_exim4-config_spamcheck_localuser b/conf.d/router/550_exim4-config_spamcheck_localuser new file mode 100644 index 0000000..1bedd3f --- /dev/null +++ b/conf.d/router/550_exim4-config_spamcheck_localuser @@ -0,0 +1,10 @@ +# hcoop-change: Pass email through spamc if its recipient is a valid +# HCoop user and it has not yet been scanned. + +spamcheck_router_localuser: + no_verify + condition = "${if !eq {$received_protocol}{spam-scanned} {1}{0}}" + check_local_user + require_files = /etc/spamassassin/addrs/${local_part}@localhost + driver = accept + transport = spamcheck