Debug one user possible?

Joseph Tam jtam.home at gmail.com
Fri Sep 27 23:59:59 EEST 2019


On Fri, 27 Sep 2019, Aki Tuomi wrote:

>> On 27/09/2019 16:08 Marc Roos via dovecot <dovecot at dovecot.org> wrote:
>>
>> Is it possible to mail debug just one user? Maybe via the userdb?
>
> You could try returning mail_debug=yes from userdb.

For raw IMAP logging, you can configure

 	protocol imap {
 		...
 		rawlog_dir = /log/dir/%u
 	}

then when you need to need to dump IMAP diagnostics for a user e.g. "marc",

 	# Temp folder avoids permission/write race condition
 	cd /log/dir
 	mkdir temp
 	chown marc temp
 	mv temp marc

When you're done

 	rm -rf /log/dir/marc

Joseph Tam <jtam.home at gmail.com>


More information about the dovecot mailing list