Log connection time on smtpd disconnect

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Log connection time on smtpd disconnect

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]: 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 considered for
inclusion in postfix?

Markus
--
Markus Benning, https://markusbenning.de/
Reply | Threaded
Open this post in threaded view
|

Re: Log connection time on smtpd disconnect

@lbutlr
On 2018-05-09 (02:46 MDT), Markus Benning <[hidden email]> 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 considered for
> inclusion in postfix?


How much does this differ from the value in delays= ?

--
I WILL NOT GREASE THE MONKEY BARS Bart chalkboard Ep. 7F17

Reply | Threaded
Open this post in threaded view
|

Re: Log connection time on smtpd disconnect

Viktor Dukhovni


> On May 9, 2018, at 11:00 PM, @lbutlr <[hidden email]> wrote:
>
> How much does this differ from the value in delays= ?

It is unrelated.

--
        Viktor.