On 8/17/2017 10:33 AM, Matthias Schneider wrote: > For sending mails using `smtp_header_checks` it _only_ logs the > headers if a connection to the destination server was established: > > Aug 17 16:48:48 mta01 postfix/smtp[14811]: 3xY8Rz2rFJzDxk2: info: > header X-TEST: value > > in case of a tempfail there is no header logged, is it possible to > change this behavior to always log the headers for each delivery > attempt?
Not possible. The smtp_header_checks are processed *during* delivery. If there is no delivery, there is no opportunity for postfix to examine the headers. -- Noel Jones