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-boun...@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 'x...@xxx.com' MailboxSize = 61708
> Capacity = 2% ......
> 06:49:19 025BEE83 POP3 LOGOUT user 'x...@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

________________________________


------------------------------------------------------------------------
Le informamos, como destinatario de este mensaje, que el correo electrónico y 
las comunicaciones por medio de Internet no permiten asegurar ni garantizar la 
confidencialidad de los mensajes transmitidos, así como tampoco su integridad o 
su correcta recepción, por lo que TELECABLE DE ASTURIAS, S.A. no asume 
responsabilidad alguna por tales circunstancias.
Si no consintiese en la utilización del correo electrónico o de las 
comunicaciones vía Internet le rogamos nos lo comunique y ponga en nuestro 
conocimiento de manera inmediata. Este mensaje va dirigido, de manera 
exclusiva, a su destinatario y contiene información confidencial y sujeta al 
secreto profesional, cuya divulgación no está permitida por la ley. En caso de 
haber recibido este mensaje por error, le rogamos que, de forma inmediata, nos 
lo comunique mediante correo electrónico remitido a nuestra atención o a través 
del teléfono (+ 34) 984191000 y proceda a su eliminación, así como a la de 
cualquier documento adjunto al mismo. Asimismo, le comunicamos que la 
distribución, copia o utilización de este mensaje, o de cualquier documento 
adjunto al mismo, cualquiera que fuera su finalidad, están prohibidas por la 
ley.
------------------------------------------------------------------------

Reply via email to