[Dovecot] mail_log_events, but who exactly triggered events? [feature request]
Arkadiusz Miśkiewicz
arekm at maven.pl
Tue Feb 4 13:30:01 UTC 2014
On Tuesday 04 of February 2014, Steffen Kaiser wrote:
> On Tue, 4 Feb 2014, Arkadiusz Miśkiewicz wrote:
> > Date: Tue, 4 Feb 2014 13:09:15 +0100
> > From: Arkadiusz Miśkiewicz <arekm at maven.pl>
> > To: dovecot at dovecot.org
> > Subject: Re: [Dovecot] mail_log_events,
> >
> > but who exactly triggered events? [feature request]
> >
> > On Thursday 30 of January 2014, Steffen Kaiser wrote:
> >> On Thu, 30 Jan 2014, Reindl Harald wrote:
> >>> Am 30.01.2014 12:04, schrieb Arkadiusz Miśkiewicz:
> >>>> On Thursday 30 of January 2014, Reindl Harald wrote:
> >>>>> Am 30.01.2014 10:50, schrieb Arkadiusz Miśkiewicz:
> >>>>>> mail_log_events is nice addition but how to log who exactly
> >>>>>> triggered particular event? For example 5 users from 5 IP addresses
> >>>>>> uses single imap user/mailbox.
> >>>>>>
> >>>>>> One of them deletes email and I'm logging delete related events. The
> >>>>>> only logged thing is:
> >>>>>>
> >>>>>> dovecot: imap(user): delete: box=INBOX, uid=673287,
> >>>>>> msgid=<some at thing>, size=1230
> >
> > Here is a feature request:
> >
> > Add optionally (or unconditionally) logging of session id in
> > mail_log_events.
> >
> > Timo, is this possible?
> >
> > (the same session id that appears in login log entries: dovecot:
> > imap-login: Login: user=<someone2>, method=PLAIN, rip=aaa, lip=yyy,
> > mpid=11682, TLS, session=<U1lD9y3xoQBPuvZx>)
> >
> > So for example this would get logged:
> > dovecot: imap(user): delete: box=INBOX, uid=673287, msgid=<some at thing>,
> > size=1230, session=<U1lD9y3xoQBPuvZx>
>
> did you've tried this:
> http://wiki2.dovecot.org/Variables
> there is the session variable and the mail_log_prefix setting. Should
> work, IMHO.
Wow, easy. Works nicely. Thanks!
--
Arkadiusz Miśkiewicz, arekm / maven.pl
More information about the dovecot
mailing list