Mark Martinec:
> > As a final data point, Postfix currently does not log the "extended
> > with" protocol name.  This information does show up in the Received:
> > header.
> 
> The coming postfix-2.12 may be a good opportunity to enhance the
> information value of this attribute by switching to "WITH protocol type"
> IANA values, especially since such string is already assembled
> elsewhere in postfix.
> 
> Thanks to the current documentation the change would not risk breaking
> backward compatibility :)

Maybe not compatibility, but other things would break.

The string is constructed at one point in time only, when all the
bits are stable. But that is not the string that would show up
in Postfix SMTP server logging.

If the "with protocol" were logged during an SMTP session then it
would have to be modified from one SMTP command to the next.

- The "with protocol" needs to be modified when the client handshakes
with TLS,

- The "with protocol" needs to be modified again when the client
authenticates with SASL,

- The "with protocol" needs to be modified again when the client
requests UTF8SMTP in some MAIL command,

- After the MAIL transaction completes, the "with protocol" needs
to be modified again, this time back to its previous state because
the next mail transaction in that session might not request UTF8SMTP.

This would be good reasons not to log the "with protocol".

        Wietse

Reply via email to