summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpacien2018-09-14 01:30:33 +0200
committerpacien2018-09-14 01:30:33 +0200
commit481f09c2cacf4db1d881514ea863c135f8bd19c0 (patch)
treeebcb42106a3aac8ee2d17febb6e28c65d007c1b8
parent1996831e47d4667d559d5a7a9863b148cba98762 (diff)
downloadexim-481f09c2cacf4db1d881514ea863c135f8bd19c0.tar.gz
Parametrise spamd definition
-rw-r--r--conf.d/010_main.conf4
-rw-r--r--conf.d/020_acl.conf9
-rw-r--r--exim.conf2
3 files changed, 14 insertions, 1 deletions
diff --git a/conf.d/010_main.conf b/conf.d/010_main.conf
index 4dde142..5ad88ab 100644
--- a/conf.d/010_main.conf
+++ b/conf.d/010_main.conf
@@ -32,6 +32,10 @@ acl_smtp_dkim = acl_mta_dkim
32# spamd_address = 127.0.0.1 783 32# spamd_address = 127.0.0.1 783
33# spamd_address = 127.0.0.1 11333 variant=rspamd 33# spamd_address = 127.0.0.1 11333 variant=rspamd
34 34
35.ifdef SPAMD_ADDRESS
36spamd_address = SPAMD_ADDRESS
37.endif
38
35 39
36# If Exim is compiled with support for TLS, you may want to enable the 40# If Exim is compiled with support for TLS, you may want to enable the
37# following options so that Exim allows clients to make encrypted 41# following options so that Exim allows clients to make encrypted
diff --git a/conf.d/020_acl.conf b/conf.d/020_acl.conf
index 6c978b1..2ae207c 100644
--- a/conf.d/020_acl.conf
+++ b/conf.d/020_acl.conf
@@ -142,12 +142,19 @@ acl_mta_rcpt:
142 accept 142 accept
143 143
144 144
145.ifdef SPAMD_ADDRESS
146SCAN_SPAM = yes
147.else
148SCAN_SPAM = no
149.endif
150
145acl_mta_data: 151acl_mta_data:
146 152
147 deny set acl_m_msg = Maximum allowed line length is 998 octets, got $max_received_linelength. 153 deny set acl_m_msg = Maximum allowed line length is 998 octets, got $max_received_linelength.
148 condition = ${if > {$max_received_linelength}{998}} 154 condition = ${if > {$max_received_linelength}{998}}
149 155
150 warn spam = nobody:true/defer_ok 156 warn condition = SCAN_SPAM
157 spam = nobody:true/defer_ok
151 remove_header = x-spam-bar : x-spam-score : x-spam-report : x-spam-status 158 remove_header = x-spam-bar : x-spam-score : x-spam-report : x-spam-status
152 add_header = X-Spam-Score: $spam_score ($spam_bar) 159 add_header = X-Spam-Score: $spam_score ($spam_bar)
153 add_header = X-Spam-Report: $spam_report 160 add_header = X-Spam-Report: $spam_report
diff --git a/exim.conf b/exim.conf
index 8efc9d1..b020999 100644
--- a/exim.conf
+++ b/exim.conf
@@ -44,6 +44,8 @@ DKIMDIR = /etc/mail/dkim
44USERLIST = /etc/mail/list.d/users.list 44USERLIST = /etc/mail/list.d/users.list
45ALIASMAP = /etc/mail/list.d/aliases.map 45ALIASMAP = /etc/mail/list.d/aliases.map
46 46
47#SPAMD_ADDRESS = 127.0.0.1 11333 variant=rspamd
48
47SMTPMAP = /etc/mail/list.d/smtp.map 49SMTPMAP = /etc/mail/list.d/smtp.map
48LMTPMAP = /etc/mail/list.d/lmtp.map 50LMTPMAP = /etc/mail/list.d/lmtp.map
49 51