Re: Log connection time on smtpd disconnect

2018-05-09 Thread Viktor Dukhovni
> On May 9, 2018, at 11:00 PM, @lbutlr wrote: > > How much does this differ from the value in delays= ? It is unrelated. -- Viktor.

Re: Log connection time on smtpd disconnect

2018-05-09 Thread @lbutlr
On 2018-05-09 (02:46 MDT), Markus Benning wrote: > > May 9 10:30:07 server01 postfix/smtpd[1234]: disconnect from > remotehost.example.com[1.2.3.4] ehlo=1 mail=1 rcpt=0/1 commands=2/3 > conn_time=13 > > (connection took 13 seconds) > > Would this be usefull for others too and should it be cons

Log connection time on smtpd disconnect

2018-05-09 Thread Markus Benning
Hi, i recently had to analyse slow/long held connections on postfix servers. Parsing the logs for connect/disconnect lines can take some time if you have a lot of logs. So i patched the smtpd to log the connection time with the disconnect stats: May 9 10:30:07 server01 postfix/smtpd[1234]: disco