Stuart Kendrick:
> Hi,
> 
> I would like to parse my mail logs each month and report on the number
> of messages which were encrypted during transmission (TLS) and the
> number which were sent/received in the clear (along with domains of
> course).

In the SMTP server, this could be logged as:

    QUEUEID: client=foo.example.com, tls=whatever

That line is logged whenever the Postfix SMTP server opens a mail
delivery transaction.

In the SMTP client, this could be logged as:

    QUEUEID: to=<u...@example.com>, relay=whatever, delay=xx,
    delays=a/b/c/d, tls=whatever, status=zz (some server response
    text)

This is logged whenever a recipient is delivered, or not.

In either case it would be nice to have some compact indication of
TLS cipher and authentication, if any.

Suggestions for alternative user interfaces are welcome, but it
seems to me that having it logged with the other attributes would
be more parser-friendly (keep in mind that one SMTP session can
transfer multiple messages).

        Wietse

Reply via email to