On Tue, 10 May 2022, Aki Tuomi via Dovecot-news wrote:
+ Added mail_user_session_finished event, which is emitted when the mail user session is finished (e.g. imap, pop3, lmtp). It also includes fields with some process statistics information. See https://doc.dovecot.org/admin_manual/list_of_events/ for more information.
We thought that this might give us some useful information in our logs,
especially when investigating user complaints (thanks, by the way, both
for Dovecot itself, and for the new logging functionality). I added to
our 10-logging.conf file:
--- .../10-logging.conf 2022-02-02 09:53:52.000000000 -0500
+++ .../10-logging.conf 2022-05-11 16:40:48.116914000 -0400
@@ -44,8 +44,13 @@ plugin {
#mail_log_events = delete undelete expunge copy mailbox_delete
mailbox_rename
#mail_log_events = mailbox_delete mailbox_rename
# 2022-01-02 Anne Bennett: per RT#461889, log more
- mail_log_events = delete undelete expunge copy mailbox_delete
mailbox_rename append flag_change
+ # 2022-05-11 Sylvain Robitaille: per RT#478860, log new
+ # mail_user_session_finished event
+ mail_log_events = delete undelete expunge copy mailbox_delete
mailbox_rename append flag_change mail_user_session_finished
# Available fields: uid, box, msgid, from, subject, size, vsize, flags
# size and vsize are available only for expunge and copy events.
- mail_log_fields = uid box msgid size
+ # mail_user_session_finished adds: utime, stime, minor_faults,
+ # major_faults, vol_cs, invol_cs, rss, vsz, rchar, wchar, syscr,
+ # syscw
+ mail_log_fields = uid box msgid size rss vsz
}
... and reloaded ("dovecot reload"), following which the log
informed me:
May 11 16:56:45 lust dovecot: master: Warning: SIGHUP received - reloading configuration
May 11 16:56:46 lust dovecot: imap(syl)<27995>