Getting rawlogging working with dovecot 2.2

Marc Roos M.Roos at
Wed Dec 30 17:22:40 EET 2020

>According to this manual[1] I just have to add these lines to my 
>protocol imap {
>  rawlog_dir = /tmp/rawlog/%u
>I should be seeing something in this /tmp/rawlog if I delete an message 

>via imap not? I have already made this folder 777 and /tmp/rawlog/test 
>777, but still nothing is there. The normal syslog of dovecot does not 
>report any errors.

If I add these changes for the rawlog binary but still nothing, also 
having the home dir in userdb although the doveadm user -u test return 
correct values.

service imap {
  executable = imap postlogin

service postlogin {
  executable = script-login -d rawlog
  unix_listener postlogin {

More information about the dovecot mailing list