On Aug 13, 2008, at 4:59 AM, Heiko Schlichting wrote:

I've thought about this before too though. Maybe some kind of a unique
cookie could be useful.

Sounds good but complicated. The only reason why I try to match login and
disconnect is that "imap" and "pop3" does not log a starting message
(without enabling debug) and login was the only entry during connect. The following minimal patch solves this in a sufficient way and I suggest to
adopt it into the official release:

Having these extra "Connected" log lines are pretty pointless for most people. But this should solve your problem: http://hg.dovecot.org/dovecot-1.2/rev/29b623366e1e

With that patch you can do for example:

login_log_format_elements = user=<%u> method=%m rip=%r lip=%l %c mailpid=%e

The patch probably doesn't apply to v1.1 code tree though.

Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to