Hello Alessio, thanks for the information. This is the default information in Bytes in all logout POP session. In think that in the login we haven't anything about size information, at least I haven't found out any option on 20-pop3.conf file. But, is possible to have this info in IMAP sessions? I have configured all logout sessions like that:
# IMAP logout format string: # %i - total number of bytes read from client # %o - total number of bytes sent to client # %{fetch_hdr_count} - Number of mails with mail header data sent to client # %{fetch_hdr_bytes} - Number of bytes with mail header data sent to client # %{fetch_body_count} - Number of mails with mail body data sent to client # %{fetch_body_bytes} - Number of bytes with mail body data sent to client # %{deleted} - Number of mails where client added \Deleted flag # %{expunged} - Number of mails that client expunged # %{trashed} - Number of mails that client copied/moved to the # special_use=\Trash mailbox. #imap_logout_format = in=%i out=%o imap_logout_format = in=%i out=%o del=%{deleted} exp=%{expunged} trh=%{trashed}
But I prefer to have the mailbox size in the log instead of the number of emails managed.
Regards, and thanks again!!!!
Regards
Sergio Bastián Rodríguez Arquitectura y servicios de red
Tlf.: +34 984 19 12 65 Fax: +34 984 19 10 01 Móvil: +34 684 69 63 09
Parque Científico y Tecnológico de Gijón Profesor Potter, 190 · 33203 Gijón, Asturias www.telecable.es
Antes de imprimir este correo electrónico y su contenido, piense bien si es necesario hacerlo: El medio ambiente es cuestión de todos.
-----Mensaje original----- De: dovecot [mailto:dovecot-bounces@dovecot.org] En nombre de Alessio Cecchi Enviado el: viernes, 03 de marzo de 2017 8:41 Para: dovecot@dovecot.org Asunto: Re: Mailbox size in log file
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