[pfx] header_checks sees original From: header despite smtpd m ilter correction — execution order question
Pedro David Marco via Postfix-users <[email protected]> Mon, 18 May 2026 10:21:32 +0000 (UTC)
| Newsgroups | gmane.mail.postfix.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I am trying to understand the exact execution order between header_checks/cleanup and smtpd_milters. I have a custom milter that repairs invalid From: headers Example flow from logs: 1.- cleanup logs a header_checks warning on the original header From: <[email protected]> 2.- Then my milter replaces it with: From: <[email protected]> 3.- milter works ok, since postcat shows the corrected header in the queued message. What confuses me is that according to my reading of MILTER_README, smtpd milters run before queuing, so I expected cleanup/header_checks to see the modified header rather than the original one. However, the log shows that cleanup sees [email protected] and not [email protected]. Am I misunderstanding how cleanup interacts with SMTP milters internally? Thanks Pete. _______________________________________________ Postfix-users mailing list -- [email protected] To unsubscribe send an email to [email protected]