Bug#1155425: exim4: internal error in string_catn using $header_subject in filter file
Christian G. Warden
cwarden at xerus.org
Sat Nov 28 22:31:22 GMT 2026
Here is a minimal reproduction:
$ printf 'To: test at example.com\n\nTest message\n' >/tmp/exim-test.eml
$ exim4 -bem /tmp/exim-test.eml '$h_to:,'
2026-11-28 16:27:15 internal error in string_catn (ptr 16 size -5560914)
When testing against a queued message, the following expansions succeed:
exim4 -Mset MESSAGE_ID -be '$h_to:'
exim4 -Mset MESSAGE_ID -be '$h_from:'
The following fail:
exim4 -Mset MESSAGE_ID -be '$h_to:,'
exim4 -Mset MESSAGE_ID -be '$h_from:,'
exim4 -Mset MESSAGE_ID -be '$h_to:,$h_cc:'
Concatenating raw headers succeeds:
exim4 -Mset MESSAGE_ID -be '$rh_to:,$rh_cc:'
In my case, the offending line in .forward was a condition of the form:
if foranyaddress $h_to:,$h_cc: (...)
This prevented all incoming mail delivery. Commenting out this rule restored
delivery.
Christian
More information about the Pkg-exim4-maintainers
mailing list