#617530 logcheck-database: log format changed for postfix/smtpd when using XFORWARD

#617530#5
Date:
2011-03-09 16:02:01 UTC
From:
To:
Hi,
after upgrading Postfix from 2.7.1-1 to 2.8.1-1 (using testing)
parts of the log format from postfix/smtpd have changed.

This problem only seems to trigger when accepting connections
in smtpd using XFORWARD (http://www.postfix.org/XFORWARD_README.html),
for example when Amavisd-new reinjects mail to postfix.

The new log lines look like this:
  Mar  9 15:15:53 hostname postfix/smtpd[5100]: 056DA13C1C0: client=localhost[127.0.0.1], orig_client=host.domain.tld[1.2.3.4]

In version 2.7.1-1, the whole orig_client part was missing.
Please adjust the rules for Postfix accordingly.

Best regards,
Markus

#617530#10
Date:
2011-03-09 16:50:51 UTC
From:
To:
also sprach Markus Treinen <markus@treinen.name> [2011.03.09.1702 +0100]:

Please send us a tested patch!

#617530#15
Date:
2011-03-09 16:50:51 UTC
From:
To:
also sprach Markus Treinen <markus@treinen.name> [2011.03.09.1702 +0100]:

Please send us a tested patch!

#617530#20
Date:
2011-03-10 01:13:46 UTC
From:
To:
Hi,
after examining the code for postfix/smtpd, the following parameters for that
specific log line can be present:
client, sasl_method, sasl_username, sasl_sender, orig_queue_id, orig_client

"client" is always present, the others are added where applicable, but always in the
order explained above.

There have been three different regexps, which can be covered in one.
Please see the attached patch file for details.

Best regards,
Markus

#617530#25
Date:
2011-10-12 12:51:34 UTC
From:
To:
Hi,

I'd like to confirm that Markus' patch works great. Thank you Markus.
Please consider this patch for inclusion in the official package.

Regards,
Simon