On 2022-03-18 12:35, I wrote:
I run postfix  3.4.14 (Debian Buster) with Amavisd-new as a pre-queue filter.
...
Mar 18 11:42:53 nuser postfix/cleanup[8931]: warning: unsupported dictionary type: pcre (/usr/lib/postfix/postfix-pcre.so: No such file or directory) Mar 18 11:42:53 nuser postfix/cleanup[8931]: warning: pcre:/etc/postfix/pcre_milter_header_checks is unavailable. unsupported dictionary type: pcre

I have now experimented more with "milter_header_checks", with the following results:

* If cleanup is running chroot, then it seems that files needed for "milter_header_checks" cannot be accessed outside the chroot jail. Files needed for other header check variants seem to work fine also outside the jail.  No real problem: I've now simply turned off chroot for cleanup.

* Headers inserted by milters seem to be subjected to "milter_header_checks" even if receive_override_options=no_header_body_checks is set in the smtpd stanza in master.cf.  And that is just what I wanted.

Conclusion: As so often, it turns out that postfix, in this case "milter_header_checks", can do what is needed.  (Though it would be even better if it also supported PREPEND.)

And thanks to Matus and PGNet Dev for interesting suggestions of alternative solutions that I may need if my requirements change.

--
Jesper Dybdal
https://www.dybdal.dk

Reply via email to