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@domain.com):
Disconnected: Logged out bytes=384/932222the 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/%oThe 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=
, 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