[Dovecot] IMAP traffic logging
Hi.
I wonder if it is possible to log the number of bytes send in response to IMAP commands. Unfortunately there seems to be no config option similar to "pop3_logout_format".
Courier writes a log file like this (header/body bytes): imaplogin: DISCONNECTED, ip=[::ffff:10.123.0.234], headers=0, body=0
Chris
On Wed, 2007-05-30 at 15:59 +0200, Chris Laif wrote:
Hi.
I wonder if it is possible to log the number of bytes send in response to IMAP commands. Unfortunately there seems to be no config option similar to "pop3_logout_format".
There's a patch for it. Someone already gave a link to it within last few weeks. I think it was originally posted some months ago. If you can't find it I can try to look for it.
I guess it could be put to http://dovecot.org/patches/ since it's somewhat commonly requested..
On Mon, 2007-06-04 at 03:35 +0300, Timo Sirainen wrote:
On Wed, 2007-05-30 at 15:59 +0200, Chris Laif wrote:
Hi.
I wonder if it is possible to log the number of bytes send in response to IMAP commands. Unfortunately there seems to be no config option similar to "pop3_logout_format".
There's a patch for it. Someone already gave a link to it within last few weeks. I think it was originally posted some months ago. If you can't find it I can try to look for it.
I guess it could be put to http://dovecot.org/patches/ since it's somewhat commonly requested..
I wonder if it is possible to log the number of bytes send in response to IMAP commands. Unfortunately there seems to be no config option similar to "pop3_logout_format".
There's a patch for it. Someone already gave a link to it within last few weeks. I think it was originally posted some months ago. If you can't find it I can try to look for it.
I guess it could be put to http://dovecot.org/patches/ since it's somewhat commonly requested..
Curious - this seems useful... is there any reason you don't want this added to the main code base - ie, any reason I should be wary of using it?
--
Best regards,
Charles
On Mon, 2007-06-04 at 13:48 -0400, Charles Marcus wrote:
I wonder if it is possible to log the number of bytes send in response to IMAP commands. Unfortunately there seems to be no config option similar to "pop3_logout_format".
There's a patch for it. Someone already gave a link to it within last few weeks. I think it was originally posted some months ago. If you can't find it I can try to look for it.
I guess it could be put to http://dovecot.org/patches/ since it's somewhat commonly requested..
Curious - this seems useful... is there any reason you don't want this added to the main code base - ie, any reason I should be wary of using it?
No reason. I'm just planning on adding a more generic imap_logout_format.
participants (3)
-
Charles Marcus
-
Chris Laif
-
Timo Sirainen