On 4 Aug 2019, at 6.23, AP via dovecot <[email protected]> wrote: > > On Sat, Aug 03, 2019 at 11:27:24AM -0600, Michael Slusarz wrote: >>> Errors hit the logs but I would appreciate seeing successful auths >>> happen for the additional piece of mind. Cmouse and I couldn't >>> find a way to do it on irc and it appears that the capability is >>> missing. Successul /logins/ can be logged but auths, by themselves, >>> cannot. >>> >>> I would appreciate if the ability was added. >>> >>> Dovecot 2.3.7.1 is in use. >> >> Events (using event exporter) is probably what you want, new in 2.3.7. >> >> https://doc.dovecot.org/admin_manual/list_of_events/ > > Hi, > > I've tried using this in various ways but I could never get any real success. > > I came close but the logging was always far too verbose. The info I wanted > WAS there but so was a ton of other data I didn't want. I'd share the configs > I tried but they came and went as I was experimenting. > > Would love to know how to configure the events logging such that I only get > a successful auth line logged as that would, indeed, solve my issue. It's > quite likely I didn't hit the right config as the docs are somewhat sparse.
There probably isn't yet a name for the event that you want. A kludgy approach would be to filter the event based on the source code filename and line number. But that likely needs to be modified every time you upgrade Dovecot..
