On Thu, Nov 24, 2022 at 03:01:08PM +0000, DEMBLANS Mathieu wrote:
> We have an issue on our postfix installation (3.4.23-0+deb10u1) : a
> mail that should pass header_check is discarded.
The header check REs are (as usual) sloppy.
> The message in log is:
>
> discard: header X-Mailer: ((OTRS)) Community Edition Mail Service (6.0.37)
> [...]
-----
> The x-mailer filter is [equivalent to] this one :
if /^X-Mailer:/
/PSS Bulk Mailer/ DISCARD
/ccMail Link/ DISCARD
/IXO-Mail/ DISCARD
/MMailer/ DISCARD
/K-ML/ DISCARD
/GoldMine/ DISCARD
/MAGIC/ DISCARD
/bomber/ DISCARD
/expeditor/ DISCARD
/Brooklyn North/ DISCARD
/Broadcast/ DISCARD
/DMailer/ DISCARD
/Extractor/ DISCARD
/EMailing List Pro/ DISCARD
/News Breaker/ DISCARD
/dbMail/ DISCARD
/Unity/ DISCARD
/PG-MAILINGLIST PRO/ DISCARD
/Dynamic/ DISCARD
/Splio/ DISCARD
/dbMail/ DISCARD
/Unity/ DISCARD
#^^^^^
/PG-MAILINGLIST PRO/ DISCARD
/Dynamic/ DISCARD
/Splio/ DISCARD
/Sarbacane/ DISCARD
/sMailing/ DISCARD
/Broadc@st/ DISCARD
/WorkZ/ DISCARD
/ABMailer/ DISCARD
/QuickSender/ DISCARD
/^/ DUNNO
endif
> As you can see, the filter should not be applyed to the header,
> nothing match.
Sadly, I beg to differ.
> We previously received correctly messages from this sender but the
> x-mailer was : < X-Mailer: OTRS Mail Service (6.0.28) >.
Unforunately, they decided to become a Comm(unity).
In my year of university some updated the student handbook to replace
the word "unit" with "subject/unit". And so the handbook contained
multiple instances of "opportsubject/unities".
What's most "regular" about regular expresssions is how regularly
they're used sloppily.
--
Viktor.