<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br><div>Hi Marc,</div><div><br></div><div>If you read the link keenly - <a href="https://wiki.dovecot.org/Debugging/Rawlog" target="_blank">Debugging/Rawlog - Dovecot Wiki</a> - you will realize that you need to do some stuff.<br>I have done them and they produced the results.</div><div><br></div><div>Edit /path/to/dovecot/conf.d/10-master.conf and add the following:</div><div><br></div><div>Under this block:</div><div><br></div><div>add executable = imap postlogin to the block that has</div><div> service imap {</div><div>....</div><div>...</div><div>}</div><div><br></div><div>Then create another block in the same file as follows:</div><div><br></div><div><div>service postlogin {</div><div> executable = script-login -d rawlog</div><div> unix_listener postlogin {</div><div> }</div><div>}</div></div><div><br></div><div>Identify the user for whom you want the rawlogs:</div><div><br><div>doveadm user -u <a href="mailto:technical@mydomain.name">technical@mydomain.name</a></div><div>userdb: <a href="mailto:technical@mydomain.name">technical@mydomain.name</a></div><div> user : <a href="mailto:technical@mydomain.name">technical@mydomain.name</a></div><div> home : /var/spool/virtual/<a href="http://mydomain.name/technical">mydomain.name/technical</a></div><div> uid : 26</div><div> gid : 26</div></div><div><br></div><div>Now do the following:</div><div>cd /var/spool/virtual/<a href="http://mydomain.name/technical">mydomain.name/technical</a></div><div>mkdir dovecot.rawlog</div><div>chown -R 26:26 dovecot.rawlog</div><div><br></div><div>systemctl restart dovecot (or however you do it in CentOS)</div><div><br></div><div>Now login to imap as the user .. perform some operations.</div><div><br></div><div>Now look inside /var/spool/virtual/<a href="http://mydomain.name/technical/dovecot.rawlog/">mydomain.name/technical/dovecot.rawlog/</a></div><div><br></div><div>PS: Adapt as necessary. I tested this on FreeBSD with dovecot- 2.3.11.3</div><div><br></div><div>Ignore the /tmp/rawlog/%u portion of the HOWTO. I did it too, but there was nothing in /tmp/rawlog/ even though I created the directory and did chmod 1777 /tmp/rawlog.</div><div><br></div><div>Adios.</div><div><br></div><div><br></div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 30 Dec 2020 at 19:30, Marc Roos <<a href="mailto:M.Roos@f1-outsourcing.eu" target="_blank">M.Roos@f1-outsourcing.eu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
You can also set DEBUG environment to have rawlog log an info message <br>
why it's not doing anything:<br>
import_environment = $import_environment DEBUG=1<br>
<br>
Where should this message appear, I also don't have this one.<br>
<br>
[1]<br>
<a href="https://wiki2.dovecot.org/Debugging/Rawlog" rel="noreferrer" target="_blank">https://wiki2.dovecot.org/Debugging/Rawlog</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div>Best regards,<br>Odhiambo WASHINGTON,<br>Nairobi,KE<br>+254 7 3200 0004/+254 7 2274 3223<br>"<span style="font-size:12.8px">Oh, the cruft.</span><span style="font-size:12.8px">", </span><span style="font-size:12.8px">grep ^[^#] :-)</span></div></div></div></div></div>