merge hcoop vmail configuration
[hcoop/zz_old/config/exim4-hopper.git] / conf.d / router / 250_exim4-config_spamcheck_vmail
diff --git a/conf.d/router/250_exim4-config_spamcheck_vmail b/conf.d/router/250_exim4-config_spamcheck_vmail
new file mode 100644 (file)
index 0000000..1b46a4a
--- /dev/null
@@ -0,0 +1,9 @@
+# hcoop-change: Pass email through spamc if it has not already been
+# scanned.
+
+spamcheck_router_vmail:
+  no_verify
+  condition = "${if !eq {$received_protocol}{spam-scanned} {1}{0}}"
+  require_files = /etc/spamassassin/addrs/${local_part}@${domain}
+  driver = accept
+  transport = spamcheck