Leonardo Rodrigues
2009-Sep-18 18:03 UTC
[Dovecot] simple feature request: IMAP logged out message
i'd like to make a simple feature request on dovecot .... i'm using v1.2.4 (latest one) and IMAP logout message, by default is: Sep 18 14:26:27 correio dovecot: IMAP(user at domain.com): Disconnected: Logged out bytes=384/932222 the message can be a little customized with: # IMAP logout format string: # %i - total number of bytes read from client # %o - total number of bytes sent to client imap_logout_format = bytes=%i/%o The remote IP address, the IP which the user is coming from, can only be seen on the login message: Sep 14 09:09:12 correio dovecot: imap-login: Login: user=<user at domain.com>, method=PLAIN, rip=187.6.xx.xx, lip=200.140.yy.yy the feature request is that the remote IP address could be added on the Logout message too, that would make much easier to watch connections from some specific user and from some specific ip address, regarding traffic of the connection. For example, something like: Sep 18 14:26:27 correio dovecot: IMAP(user at domain.com): Disconnected: Logged out bytes=384/932222, rip=187.6.xx.xx, lip=200.140.yy.yy -- Atenciosamente / Sincerily, Leonardo Rodrigues Solutti Tecnologia http://www.solutti.com.br Minha armadilha de SPAM, N?O mandem email gertrudes at solutti.com.br My SPAMTRAP, do not email it
David Warden
2009-Sep-18 18:22 UTC
[Dovecot] simple feature request: IMAP logged out message
I was looking for the same thing earlier this month. I'm not on v1.2.4 but that should have the mail_log_prefix option which lets you add something to the start of every log line, including logouts. I use that to put the username and remote IP in every log line. It has helped out quite a bit with troubleshooting. -David Warden On Sep 18, 2009, at 2:03 PM, Leonardo Rodrigues wrote:> > i'd like to make a simple feature request on dovecot .... > > i'm using v1.2.4 (latest one) and IMAP logout message, by default > is: > > Sep 18 14:26:27 correio dovecot: IMAP(user at domain.com): > Disconnected: Logged out bytes=384/932222 > > the message can be a little customized with: > > # IMAP logout format string: > # %i - total number of bytes read from client > # %o - total number of bytes sent to client imap_logout_format = > bytes=%i/%o > > > The remote IP address, the IP which the user is coming from, can > only be seen on the login message: > > Sep 14 09:09:12 correio dovecot: imap-login: Login: user=<user at domain.com > >, method=PLAIN, rip=187.6.xx.xx, lip=200.140.yy.yy > > the feature request is that the remote IP address could be added > on the Logout message too, that would make much easier to watch > connections from some specific user and from some specific ip > address, regarding traffic of the connection. For example, something > like: > > Sep 18 14:26:27 correio dovecot: IMAP(user at domain.com): > Disconnected: Logged out bytes=384/932222, rip=187.6.xx.xx, > lip=200.140.yy.yy > > > > -- > > > Atenciosamente / Sincerily, > Leonardo Rodrigues > Solutti Tecnologia > http://www.solutti.com.br > > Minha armadilha de SPAM, N?O mandem email > gertrudes at solutti.com.br > My SPAMTRAP, do not email it > > > > >