[Dovecot] Logging client commands (patch)

Zach Bagnall zach.bagnall at bulletinwireless.com
Fri Oct 12 08:51:20 EEST 2007


This might be useful to someone so I'll throw it out there.

Patch against 1.0.5 adds support for two new configuration params:

pop3_debug_client_commands = TOP, RETR, DELE
imap_debug_client_commands = FETCH, DELETE

Obviously add in whichever ones you're interested in, or none, or
comment them out completely.

It'll log the appropriate events:

Oct 12 18:30:18 kea dovecot: IMAP(zach): Client command: FETCH

The parameters are included for POP3 events. Wasn't sure quite how to do
the same for IMAP and for my purposes it's not too important so imap
command parameters aren't logged.

Running smoothly here with a few dozen IMAP and POP3 users. Not
suggesting this gets added to the codebase - I just needed it to help
debug some other IMAP software and thought it might be useful.

Zach.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dovecot-1.0.5-debugcmd.diff
Type: text/tab-separated-values
Size: 6477 bytes
Desc: not available
Url : http://dovecot.org/pipermail/dovecot/attachments/20071012/b0d31d9e/attachment-0001.tsv 


More information about the dovecot mailing list