[pfx] Re: header_checks seems not working
Paul Menzel via Postfix-users <[email protected]> Wed, 6 May 2026 10:20:51 +0200
| Newsgroups | gmane.mail.postfix.user |
|---|---|
| Message-ID | <[email protected]> |
Dear Enrico, Am 06.05.26 um 10:13 schrieb Enrico Morelli via Postfix-users: > I've a Debian 11 mail server with Postfix 3.5.25. I've configured > Postfix to filter the headers with: header_checks = pcre:/etc/ > postfix/header_checks.pcre > > However, some emails with subjects listed in the file are still > delivered. > > E.g.> > /^Subject:.*Pulitore.WC.Più.Votato.2025.*/ REJECT > > A positive test result: > > postmap -q "Subject: Pulitore WC Più Votato 2025" pcre:/etc/postfix/header_checks.pcre > REJECT > > Why Postfix don't reject the email? Where I've to investigate? After > writing a new entry in header_checks.pre, have I to reload Postfix? Please look at and share the actual header entry Subject in the emails. Often they are encoded, and Postfix header checks don’t decode it. You need to use a milter for this usecase. Kind regards, Paul _______________________________________________ Postfix-users mailing list -- [email protected] To unsubscribe send an email to [email protected]