Hello all, is there a way to make dovecot log the commands it gets from its clients both in imap and pop3? I need to log when messages are deleted so I can tell to the customer when and from which IP address his/her mailbox was emptied. I'm trying to track down problems with M$ Windows Live Mail clients that seem to loose messages now and then. Luciano. -- /"\ /Via A. Salaino, 7 - 20144 Milano (Italy) \ / ASCII RIBBON CAMPAIGN / PHONE : +39 2 485781 FAX: +39 2 48578250 X AGAINST HTML MAIL / E-MAIL: posthamster at sublink.sublink.ORG / \ AND POSTINGS / WWW: http://www.lesassaie.IT/
On Wed, 20 Apr 2011 16:14:40 +0200 Luciano Mannucci wrote:> > Hello all, > > is there a way to make dovecot log the commands it gets from its > clients both in imap and pop3? I need to log when messages are > deleted so I can tell to the customer when and from which IP address > his/her mailbox was emptied.My conf.d/10-logging.conf for dovecot 2.0.12 contains | # mail_log plugin provides more event logging for mail processes. | plugin { | # Events to log. Also available: flag_change append | mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename flag_change | # Group events within a transaction to one line. | #mail_log_group_events = no | # Available fields: uid, box, msgid, from, subject, size, vsize, flags | # size and vsize are available only for expunge and copy events. | mail_log_fields = uid box from subject msgid size | } Maybe that helps you out. --Frank Elsner
On Wed, 2011-04-20 at 16:14 +0200, Luciano Mannucci wrote:> Hello all, > > is there a way to make dovecot log the commands it gets from its > clients both in imap and pop3? I need to log when messages are > deleted so I can tell to the customer when and from which IP address > his/her mailbox was emptied. > I'm trying to track down problems with M$ Windows Live Mail clients > that seem to loose messages now and then.Like Frank already replied, http://wiki2.dovecot.org/Plugins/MailLog is probably the best solution for this. But to get the exact commands you could also use http://wiki2.dovecot.org/Debugging/Rawlog