From 8ae6eaf39a601e80429e0b25c09e7eab0df5ed7c Mon Sep 17 00:00:00 2001 From: sebres Date: Mon, 10 Mar 2025 22:35:26 +0100 Subject: [PATCH] `filter.d/postfix.conf` - default `_daemon` in prefix-line is loosened - can match everything starting with word postfix, like `postfix-example.com/smtpd`; closes gh-3297 --- ChangeLog | 4 +++- config/filter.d/postfix.conf | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d219b3ce..b8a6ea1c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -27,7 +27,9 @@ ver. 1.1.1-dev-1 (20??/??/??) - development nightly edition * `filter.d/freeswitch.conf` - bypass some new info in prefix before [WARNING] (changed default `_pref_line`), FreeSWITCH log line prefix has changed in newer versions (gh-3143) * `filter.d/lighttpd-auth.conf` - fixed regex (if failures generated by systemd-journal), bypass several prefixes now (gh-3955) -* `filter.d/postfix.conf` - consider CONNECT and other rejected commands as a valid `_pref` (gh-3800) +* `filter.d/postfix.conf`: + - consider CONNECT and other rejected commands as a valid `_pref` (gh-3800) + - default `_daemon` in prefix-line is loosened - can match everything starting with word postfix, like `postfix-example.com/smtpd` (gh-3297) * `filter.d/dropbear.conf`: - recognizes extra pid/timestamp if logged into stdout/journal, added `journalmatch` (gh-3597) - failregex extended to match different format of "Exit before auth" message (gh-3791) diff --git a/config/filter.d/postfix.conf b/config/filter.d/postfix.conf index a1882473..a05c3d22 100644 --- a/config/filter.d/postfix.conf +++ b/config/filter.d/postfix.conf @@ -10,7 +10,7 @@ before = common.conf [Definition] -_daemon = postfix(-\w+)?/[^/\[:\s]+(?:/smtp[ds])? +_daemon = postfix\b([^\[\s]+)? _port = (?::\d+)? _pref = [A-Z]{4,}