X-Git-Url: https://git.hcoop.net/hcoop/zz_old/config/exim4-hopper.git/blobdiff_plain/4e56c140f66ed7c70b900686a96f78cb4e0cf486..14e6d9d8d5043defe201404179f5d18ca50eb2c9:/conf.d/transport/20_exim4-config_spamcheck diff --git a/conf.d/transport/20_exim4-config_spamcheck b/conf.d/transport/20_exim4-config_spamcheck new file mode 100644 index 0000000..910c8bd --- /dev/null +++ b/conf.d/transport/20_exim4-config_spamcheck @@ -0,0 +1,23 @@ +# hcoop-change: Pass email through spamc, back through exim again, +# marking it as scanned. Also, remove any pre-existing X-Spam +# headers from the message. + +spamcheck: + debug_print = "T: spamassassin_pipe for $local_part@$domain" + driver = pipe + command = /usr/sbin/exim4 -oMr spam-scanned -bS + use_bsmtp + transport_filter = /usr/bin/spamc -x + home_directory = "/tmp/exim4" + current_directory = "/tmp/exim4" + user = Debian-exim + group = Debian-exim + return_fail_output = true + return_path_add = false + log_fail_output = true + temp_errors = * + timeout = 5m + timeout_defer = true + message_prefix = + message_suffix = + headers_remove = X-Spam-Flag:X-Spam-Status:X-Spam-Level