[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@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@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@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@solutti.com.br
My SPAMTRAP, do not email it
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:
David Warden escreveu:
That's it ...... i was using a simplified dovecot.conf and couldnt
find mail_log_prefix. But then i searched on the default file and there it was. Now i'm using:
mail_log_prefix = "%Us(%u), rip=%r, lip=%l: "
with that, i have:
Sep 18 15:43:45 correio dovecot: IMAP(user@domain.com), rip=189.31.xx.xx, lip=200.140.yy.yy: Disconnected in IDLE bytes=1761/3265
thanks !!!
--
Atenciosamente / Sincerily,
Leonardo Rodrigues
Solutti Tecnologia
http://www.solutti.com.br
Minha armadilha de SPAM, NÃO mandem email
gertrudes@solutti.com.br
My SPAMTRAP, do not email it
participants (2)
-
David Warden
-
Leonardo Rodrigues