On Wed, 6 May 2026 10:20:51 +0200 Paul Menzel via Postfix-users <[email protected]> wrote:
> 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. > > Dear Paul, thank for the answer. The subject is the following: Subject: Pulitore WC Più Votato 2025 > Kind regards, > > Paul > _______________________________________________ > Postfix-users mailing list -- [email protected] > To unsubscribe send an email to [email protected] -- ----------------------------------------------------------- Enrico Morelli System Administrator | Programmer | Web Developer CERM - Polo Scientifico via Sacconi, 6 - 50019 Sesto Fiorentino (FI) - ITALY ------------------------------------------------------------ _______________________________________________ Postfix-users mailing list -- [email protected] To unsubscribe send an email to [email protected]
