diff options
author | pacien | 2018-09-14 01:30:33 +0200 |
---|---|---|
committer | pacien | 2018-09-14 01:30:33 +0200 |
commit | 481f09c2cacf4db1d881514ea863c135f8bd19c0 (patch) | |
tree | ebcb42106a3aac8ee2d17febb6e28c65d007c1b8 /conf.d/020_acl.conf | |
parent | 1996831e47d4667d559d5a7a9863b148cba98762 (diff) | |
download | exim-481f09c2cacf4db1d881514ea863c135f8bd19c0.tar.gz |
Parametrise spamd definition
Diffstat (limited to 'conf.d/020_acl.conf')
-rw-r--r-- | conf.d/020_acl.conf | 9 |
1 files changed, 8 insertions, 1 deletions
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 | ||
146 | SCAN_SPAM = yes | ||
147 | .else | ||
148 | SCAN_SPAM = no | ||
149 | .endif | ||
150 | |||
145 | acl_mta_data: | 151 | acl_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 |