Thanks a lot... You understood me correctly! thanks for your kindness... with the INFO action, a new log line is added by cleanup daemon.. What i was trying is to make smtp daemon add that header value to its usual log lines.. Thanks, Pete.
>On Tuesday, December 21, 2021, 04:20:31 PM GMT+1, post...@ptld.com <post...@ptld.com> wrote: >> is it possible to configure Postfix stmp daemon to add in its log the value >> of a specific header? >If I understand the question correctly. To show headers for smtp "outgoing" >emails in logs use smtp_header_checks, but for headers in smtpd "incoming" >emails use header_checks. > http://www.postfix.org/header_checks.5.html > http://www.postfix.org/postconf.5.html#header_checks > http://www.postfix.org/postconf.5.html#smtp_header_checks > >For example, to show the From and Subject headers on "incoming" emails do >something like >/etc/postfix/main.cf: > header_checks = pcre:/etc/postfix/header_checks > /etc/postfix/header_checks: > /^From:/ INFO > /^Subject:/ INFO