DEMBLANS Mathieu: > Hi, > We have an issue on our postfix installation (3.4.23-0+deb10u1) : > a mail that should pass header_check is discarded. > > The message in log is : < discard: header X-Mailer: ((OTRS)) > Community Edition Mail Service (6.0.37) [...] >. > > The x-mailer filter is this one : > /^X-Mailer: .*(PSS Bulk Mailer|ccMail > Link|IXO-Mail|MMailer|K-ML|GoldMine|MAGIC|bomber|expeditor|Brooklyn > North|Broadcast|DMailer|Extractor|EMailing List Pro|News > Breaker|dbMail|Unity|PG-MAILINGLIST PRO|Dynamic| > Splio|Sarbacane|sMailing|Broadc@st|WorkZ|ABMailer|QuickSender).*$/ DISCARD > > As you can see, the filter should not be applyed to the header, > nothing match.
Actually, the "Unity" pattern matches the "Community" in the header. Suggestions: - Anchor your word boundaries so that "Unity" does not match when it is part of a longer word. With PCRE, that would look like "\bUnity\b". - Make the pattern case-sensitive (by default they are not). see https://www.postfix.org/pcre_table.5.html for flags settings. Wietse