From 044aefca76d96aecf0df141a64286349e6d324d6 Mon Sep 17 00:00:00 2001 From: flymarq Date: Thu, 23 Jul 2026 14:02:44 +0200 Subject: [PATCH] Fix exim4 ACL milter header support I tried to integrate the ` full Exim configuration snippet` into my exim4 configuration and got this error message on a test email: temporarily rejected after DATA: failed to expand ACL string "${sg{${sg{$acl_m_report}{(?m)^(?!X-Milter-Add: ).*(\\n|$)}{}}}{(?m)^X-Milte r-Add: ([^\\[:\\n]+)(?:\\[\\d+\\])?: }{$1: }}": $ not followed by letter, digit, or { It assumed not escaped $ in the expression, which is fixed in this commit. After this change no error message is logged the emails receive as expected. --- docs/tutorials/integration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorials/integration.md b/docs/tutorials/integration.md index ac9798e51..a2735daa1 100644 --- a/docs/tutorials/integration.md +++ b/docs/tutorials/integration.md @@ -282,10 +282,10 @@ acl_check_spam: warn set acl_m_report = ${sg{$spam_report}{\\v\\s+}{\\n}} set acl_m_milter_add = ${sg{\ - ${sg{$acl_m_report}{(?m)^(?!X-Milter-Add: ).*(\\n|$)}{}}}\ + ${sg{$acl_m_report}{(?m)^(?!X-Milter-Add: ).*(\\n|\$)}{}}}\ {(?m)^X-Milter-Add: ([^\\[:\\n]+)(?:\\[\\d+\\])?: }{$1: }} set acl_m_milter_del = ${sg{\ - ${sg{$acl_m_report}{(?m)^(?!X-Milter-Del: ).*(\\n|$)}{}}}\ + ${sg{$acl_m_report}{(?m)^(?!X-Milter-Del: ).*(\\n|\$)}{}}}\ {(?m)^X-Milter-Del: ([^\\[\\n]+).*}{$1}} # use greylisting available in rspamd v1.3+