Hello.
dovecot 2.3.13 here, using
doveadm -c /etc/my.conf expunge -A mailbox SomeFolder savedbefore 31d
and my.conf includes
plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename save }
unfortunately expunged messages are not logged anywhere.
Tried -v and -D to see if these will get logged to output (so I could pipe these to syslog) but verbose/debug also don't show which messages were expunged.
Is there a way to get this logged?
Log like regular dovecot logs would be nice:
doveadm(arekm): pid=<14783>, expunge: box=INBOX, uid=0, msgid=E1l2ZJp-0002NM-Vv@example.com, size=15077
-- Arkadiusz Miśkiewicz, arekm / ( maven.pl | pld-linux.org )
Did you also load mail_log
plugin?
Aki
On 04/02/2021 14:52 Arkadiusz Miśkiewicz arekm@maven.pl wrote:
Hello.
dovecot 2.3.13 here, using
doveadm -c /etc/my.conf expunge -A mailbox SomeFolder savedbefore 31d
and my.conf includes
plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename save }
unfortunately expunged messages are not logged anywhere.
Tried -v and -D to see if these will get logged to output (so I could pipe these to syslog) but verbose/debug also don't show which messages were expunged.
Is there a way to get this logged?
Log like regular dovecot logs would be nice:
doveadm(arekm): pid=<14783>, expunge: box=INBOX, uid=0, msgid=E1l2ZJp-0002NM-Vv@example.com, size=15077
-- Arkadiusz Miśkiewicz, arekm / ( maven.pl | pld-linux.org )
.. specifically mail_log plugin for protocol doveadm {}
I myself made that mistake many times and loaded mail_log only for protocol imap {} and then wondering why events are not logged.
Sami
On 4. Feb 2021, at 15.01, Aki Tuomi aki.tuomi@open-xchange.com wrote:
Did you also load
mail_log
plugin?Aki
On 04/02/2021 14:52 Arkadiusz Miśkiewicz arekm@maven.pl wrote:
Hello.
dovecot 2.3.13 here, using
doveadm -c /etc/my.conf expunge -A mailbox SomeFolder savedbefore 31d
and my.conf includes
plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename save }
unfortunately expunged messages are not logged anywhere.
Tried -v and -D to see if these will get logged to output (so I could pipe these to syslog) but verbose/debug also don't show which messages were expunged.
Is there a way to get this logged?
Log like regular dovecot logs would be nice:
doveadm(arekm): pid=<14783>, expunge: box=INBOX, uid=0, msgid=E1l2ZJp-0002NM-Vv@example.com, size=15077
-- Arkadiusz Miśkiewicz, arekm / ( maven.pl | pld-linux.org )
W dniu 04.02.2021 o 14:01, Aki Tuomi pisze:
Did you also load
mail_log
plugin?
I didn't. Added
protocol doveadm { mail_plugins = $mail_plugins mail_log notify acl }
and now I'm getting logs on stderr. Nice!
Can I get this logged into syslog without my own redirection?
Trying
doveadm -o 'log_path=syslog' -o 'syslog_facility=mail' ... expunge ...
but I'm getting these on stderr only.
Aki
On 04/02/2021 14:52 Arkadiusz Miśkiewicz arekm@maven.pl wrote:
Hello.
dovecot 2.3.13 here, using
doveadm -c /etc/my.conf expunge -A mailbox SomeFolder savedbefore 31d
and my.conf includes
plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename save }
unfortunately expunged messages are not logged anywhere.
Tried -v and -D to see if these will get logged to output (so I could pipe these to syslog) but verbose/debug also don't show which messages were expunged.
Is there a way to get this logged?
Log like regular dovecot logs would be nice:
doveadm(arekm): pid=<14783>, expunge: box=INBOX, uid=0, msgid=E1l2ZJp-0002NM-Vv@example.com, size=15077
-- Arkadiusz Miśkiewicz, arekm / ( maven.pl | pld-linux.org )
-- Arkadiusz Miśkiewicz, arekm / ( maven.pl | pld-linux.org )
W dniu 04.02.2021 o 17:37, Arkadiusz Miśkiewicz pisze:
W dniu 04.02.2021 o 14:01, Aki Tuomi pisze:
Did you also load
mail_log
plugin?I didn't. Added
protocol doveadm { mail_plugins = $mail_plugins mail_log notify acl }
and now I'm getting logs on stderr. Nice!
Can I get this logged into syslog without my own redirection?
Trying
doveadm -o 'log_path=syslog' -o 'syslog_facility=mail' ... expunge ...
but I'm getting these on stderr only.
Improvement for doveadm: https://github.com/dovecot/core/pull/156
that allows logging into syslog
Aki
On 04/02/2021 14:52 Arkadiusz Miśkiewicz arekm@maven.pl wrote:
Hello.
dovecot 2.3.13 here, using
doveadm -c /etc/my.conf expunge -A mailbox SomeFolder savedbefore 31d
and my.conf includes
plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename save }
unfortunately expunged messages are not logged anywhere.
Tried -v and -D to see if these will get logged to output (so I could pipe these to syslog) but verbose/debug also don't show which messages were expunged.
Is there a way to get this logged?
Log like regular dovecot logs would be nice:
doveadm(arekm): pid=<14783>, expunge: box=INBOX, uid=0, msgid=E1l2ZJp-0002NM-Vv@example.com, size=15077
-- Arkadiusz Miśkiewicz, arekm / ( maven.pl | pld-linux.org )
-- Arkadiusz Miśkiewicz, arekm / ( maven.pl | pld-linux.org )
participants (3)
-
Aki Tuomi
-
Arkadiusz Miśkiewicz
-
Sami Ketola