merge hcoop spamchecking configuration
[hcoop/zz_old/config/exim4-hopper.git] / 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 (file)
index 0000000..1bedd3f
--- /dev/null
@@ -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