[Dovecot] Client transaction logging in dovecot.
Hi,
Seasons greetings! :)
May I know if it's possible to log the commands issued by clients in dovecot? For instance, RETR and DELE commands in POP3 and their equivalent in IMAP?
I can't seem to be able to find the appropriate configuration key.
Thanking in advance.
Cheers.
Tan Shao Yi
On 25.12.2006, at 19.04, Tan Shao Yi wrote:
May I know if it's possible to log the commands issued by clients
in dovecot? For instance, RETR and DELE commands in POP3 and their
equivalent in IMAP?I can't seem to be able to find the appropriate configuration key.
Not directly, but you could use rawlog (http://dovecot.org/
bugreport.html). The only problem with it is that it logs everything
sent by Dovecot as well.
I've been thinking about making it optional to log only either input
or output, and possibly to even filter the output (not sending the
mail bodies with IMAP). But that doesn't exist yet.
Hi Timo,
Thanks for your reply.
Would it be possible to request for it? Occasionally we do have users who complain about e-mail loss when they have actually downloaded them or initiated the deletions. Having such logging in place will ease tracking of what actually happened.
Or do your good self or anyone in the list have a good way of making such information available? Logging the whole transaction (including the bodies transferred) will really be too much logging. :(
Thanking in advance.
Cheers. Tan Shao Yi
On Wed, 3 Jan 2007, Timo Sirainen wrote:
On 25.12.2006, at 19.04, Tan Shao Yi wrote:
May I know if it's possible to log the commands issued by clients in dovecot? For instance, RETR and DELE commands in POP3 and their equivalent in IMAP?
I can't seem to be able to find the appropriate configuration key.
Not directly, but you could use rawlog (http://dovecot.org/bugreport.html). The only problem with it is that it logs everything sent by Dovecot as well.
I've been thinking about making it optional to log only either input or output, and possibly to even filter the output (not sending the mail bodies with IMAP). But that doesn't exist yet.
On 4.1.2007, at 18.57, Tan Shao Yi wrote:
Would it be possible to request for it? Occasionally we do have
users who complain about e-mail loss when they have actually
downloaded them or initiated the deletions. Having such logging in
place will ease tracking of what actually happened.Or do your good self or anyone in the list have a good way of
making such information available? Logging the whole transaction
(including the bodies transferred) will really be too much logging. :(
It'll be in the next version, but it still logs the messages saved by
the client. You could write your own rawlogger as well which parses
the IMAP traffic and logs only the wanted lines. I thought about
implementing something similar to this, but it gets a bit too complex.
Another way would be to write a plugin which catches all deletions
and logs them.
participants (2)
-
Tan Shao Yi
-
Timo Sirainen