On Thu, Feb 05, 2015 at 03:27:23PM +0000, Viktor Dukhovni wrote: > smtp[<pid>]: <queueid>: to=<...>, ... (<server reply>) > entries with the same <pid>, <queueid> and <server reply> are almost > certainly a single "envelope" (especially if the next hop server > includes a unique queue-id in its reply).
Okay, now i implemented it the following way. It looks for a TLS connection and remembers TLS parameters by the pid. The next "to=" line with the same pid gets the tls parameters assigned. Now it remembers the TLS parameters by the queue ID of this log line instead of the pid and assigns it to following "to=" lines with the same queue ID. Looks good: TLS Statistics -------------- 1 outgoing tls connections 4 outgoing tls messages (80.00% of 5) You can find the code at: https://github.com/benningm/saftpresse/blob/master/lib/Log/Saftpresse/Plugin/TlsStatistics.pm Markus -- Markus Benning, https://markusbenning.de/