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 at xxx.com' MailboxSize = 61708 Capacity = 2% ...... 06:49:19 025BEE83 POP3 LOGOUT user 'xxx at 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. Is it possible to have this feature in Dovecot? Thanks for your help. ________________________________ ------------------------------------------------------------------------ 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. ------------------------------------------------------------------------
On 02.03.2017 18:21, Sergio Bastian Rodr?guez wrote:> 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 at xxx.com' MailboxSize = 61708 Capacity = 2% > ...... > 06:49:19 025BEE83 POP3 LOGOUT user 'xxx at 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.We have a feature very similar to this on our roadmap. I expect there will be time to compelte it in the latter half of 2017. Teemu> > Now in Dovecot we have no information about that, and I cannot find any plugin which gives this us functionality. > > Is it possible to have this feature in Dovecot? > Thanks for your help. > > > ________________________________ > > > ------------------------------------------------------------------------ > 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. > ------------------------------------------------------------------------ >
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 at xxx.com' MailboxSize = 61708 Capacity = 2% > ...... > 06:49:19 025BEE83 POP3 LOGOUT user 'xxx at 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
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 at dovecot.org] En nombre de Alessio Cecchi
Enviado el: viernes, 03 de marzo de 2017 8:41
Para: dovecot at 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 at xxx.com' MailboxSize =
61708
> Capacity = 2% ......
> 06:49:19 025BEE83 POP3 LOGOUT user 'xxx at 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.
------------------------------------------------------------------------
Wowwwww, Teemu, it sounds great!!!!
I am looking forward to seeing this point in your roadmap working.
Thanks for the update.
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 at dovecot.org] En nombre de Teemu Huovila
Enviado el: jueves, 02 de marzo de 2017 20:31
Para: dovecot at dovecot.org
Asunto: Re: Mailbox size in log file
On 02.03.2017 18:21, Sergio Bastian Rodr?guez wrote:> 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 at xxx.com' MailboxSize =
61708
> Capacity = 2% ......
> 06:49:19 025BEE83 POP3 LOGOUT user 'xxx at 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.
We have a feature very similar to this on our roadmap. I expect there will be
time to compelte it in the latter half of 2017.
Teemu>
> Now in Dovecot we have no information about that, and I cannot find any
plugin which gives this us functionality.
>
> Is it possible to have this feature in Dovecot?
> Thanks for your help.
>
>
> ________________________________
>
>
> ----------------------------------------------------------------------
> -- 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.
> ------------------------------------------------------------------------
>
________________________________
------------------------------------------------------------------------
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.
------------------------------------------------------------------------