Hey list, I created the following smtp_header_checks rule:
smtp_header_checks = pcre:/etc/postfix/maps/header_checks and /etc/postfix/maps/header_checks: /^In-Reply-To:/ INFO /^References:/ INFO As I aim to have such header logged on syslog.The issue I'm facing is that all messages there are being truncated on 86 characters, even when the header is longer. And it's not the header content that's being chopped, but the line itself (I noticed that by also logging another header which has a longer name and the chopping happened in the same 86th character.
header_size_limit if configured to 102400. Maybe this is a limitation in the smtp logging and not on header_checks? This is an example of what's logged (line breaks added by my mail client):Mar 23 13:51:24 mail postfix/smtp[2795]: 11FB814206E: info: header References: <7d7d874b-3be8-bce5-b621-e9aae4b3fd4e@aaaaaaaaa. Mar 23 13:51:24 mail postfix/smtp[2795]: 11FB814206E: info: header In-Reply-To: <7d7d874b-3be8-bce5-b621-e9aae4b3fd4e@aaaaaaaaa
Whereas this is is how the original headers look like in reality: References: <7d7d874b-3be8-bce5-b621-e9aae4b3f...@aaaaaaaaa.org> In-Reply-To: <7d7d874b-3be8-bce5-b621-e9aae4b3f...@aaaaaaaaa.org>Might it be a limit imposed by `postfix/smtp`? I definitely see longer lines logged by it.
When using `WARN` instead of `INFO`, I get a line which is three chars longer (as `warning` is 3 chars longer than `info`) which suggests me that the truncating is happening before the line is logged,
Any clues of where such limit might be configured and how I can change it? Using 3.4.14 on Debian 10. -- Regards, Leandro Santiago Software Craftsman at Lightmeter https://calendly.com/leandro-santiago https://lightmeter.io
OpenPGP_0xAB5F702209190A96.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature