Skip to content

Fix exim4 ACL milter header support#113

Open
flymarq wants to merge 1 commit into
rspamd:masterfrom
flymarq:exim_acl_milter
Open

Fix exim4 ACL milter header support#113
flymarq wants to merge 1 commit into
rspamd:masterfrom
flymarq:exim_acl_milter

Conversation

@flymarq

@flymarq flymarq commented Jul 23, 2026

Copy link
Copy Markdown

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant