summaryrefslogtreecommitdiff
path: root/conf.d
diff options
context:
space:
mode:
authorSystem administrator2019-09-28 23:22:00 +0200
committerSystem administrator2019-09-28 23:22:00 +0200
commit5e3d14d4092f4e1ccbeba69ece8c76b399a41c66 (patch)
treea1312121064d34aa90c3ea991f153cc40ee21330 /conf.d
parent13304f96ae470a40173825f9c25178c6794cbfa1 (diff)
downloadexim-5e3d14d4092f4e1ccbeba69ece8c76b399a41c66.tar.gz
acl: add header names and syntax check for MTA and MUA lanes
Diffstat (limited to 'conf.d')
-rw-r--r--conf.d/020_acl.conf9
1 files changed, 9 insertions, 0 deletions
diff --git a/conf.d/020_acl.conf b/conf.d/020_acl.conf
index 1014dd1..5ed0fa7 100644
--- a/conf.d/020_acl.conf
+++ b/conf.d/020_acl.conf
@@ -66,6 +66,12 @@ acl_mua_rcpt:
66 66
67 67
68acl_mua_data: 68acl_mua_data:
69 require verify = header_names_ascii
70 message = Invalid character in header name.
71
72 require verify = header_syntax
73 message = Syntax error in header.
74
69 require acl = acl_check_alias ${address:$h_from:} $authenticated_id 75 require acl = acl_check_alias ${address:$h_from:} $authenticated_id
70 message = Header address mismatch: $authenticated_id is not authorized to use ${address:$h_from:}. 76 message = Header address mismatch: $authenticated_id is not authorized to use ${address:$h_from:}.
71 77
@@ -146,6 +152,9 @@ acl_mta_data:
146 deny condition = ${if > {$max_received_linelength}{998}} 152 deny condition = ${if > {$max_received_linelength}{998}}
147 set acl_m_msg = Maximum allowed line length is 998 octets, got $max_received_linelength. 153 set acl_m_msg = Maximum allowed line length is 998 octets, got $max_received_linelength.
148 154
155 require verify = header_syntax
156 message = Syntax error in header.
157
149 warn condition = SCAN_SPAM 158 warn condition = SCAN_SPAM
150 spam = nobody:true/defer_ok 159 spam = nobody:true/defer_ok
151 remove_header = x-spam-bar : x-spam-score : x-spam-report : x-spam-status 160 remove_header = x-spam-bar : x-spam-score : x-spam-report : x-spam-status