[Dovecot] syslog with PID
Timo Sirainen
tss at iki.fi
Wed Aug 13 21:39:20 EEST 2008
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20080813/c3d56361/attachment.bin
More information about the dovecot
mailing list