Il 02/03/2017 17:21, Sergio Bastian RodrÃguez ha scritto:
Hello Dovecot list.
I need that Dovecot log writes mailbox size in all POP / IMAP connections, but I do not know if Dovecot can do that. I have been searching about that with not successful.
For example, this is the log of our last email platform, different than Dovecot:
06:48:14 025BEE83 POP3 LOGIN user 'xxx@xxx.com' MailboxSize = 61708 Capacity = 2% ...... 06:49:19 025BEE83 POP3 LOGOUT user 'xxx@xxx.com' MailboxSize = 14472 Capacity = 0%
In this example we can know the mailbox size before and after the connection, and it shows that user has removed or downloaded all messages from server.
Now in Dovecot we have no information about that, and I cannot find any plugin which gives this us functionality. Hi,
you can add some variables to logout log:
/etc/dovecot/conf.d/20-pop3.conf
# POP3 logout format string: [...] # %s - mailbox size in bytes (before deletion)
-- Alessio Cecchi Postmaster @ http://www.qboxmail.it https://www.linkedin.com/in/alessice