[pfx] header_checks seems not working

Enrico Morelli via Postfix-users <[email protected]> Wed, 6 May 2026 10:13:40 +0200
Newsgroups gmane.mail.postfix.user
Organization CERM
Message-ID <[email protected]>
Dear all,

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?

Thanks
-- 
-----------------------------------------------------------
  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]