<div dir="ltr"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Sat, 24 Nov 2018 at 13:29, Timo Sirainen <<a href="mailto:tss@iki.fi">tss@iki.fi</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"><div style="overflow-wrap: break-word;">On 24 Nov 2018, at 8.33, Odhiambo Washington <<a href="mailto:odhiambo@gmail.com" target="_blank">odhiambo@gmail.com</a>> wrote:<br><div><blockquote type="cite"><br class="gmail-m_2224916033705740275Apple-interchange-newline"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><br><div>I installed 2.3.4 and just used it with the config files for 2.3.3 without changing anything in the configuration.</div><div>I then realized that the LDA was throwing errors.</div><div><br></div><div>2018-11-24 00:02:51 1gQIaw-000AZS-Bc </var/spool/virtual/<a href="http://crownkenya.com/john.doe/Maildir" target="_blank">crownkenya.com/john.doe/Maildir</a>>: dovecot_virtual_delivery transport output: lda(<a href="mailto:john.doe@our.domain.name" target="_blank">john.doe@our.domain.name</a>)Error: net_connect_unix(/var/run/dovecot//stats-writer) failed: Permission denied<br></div><div><br></div><div>I checked on the presence of the sockets in /var/run/dovecot:</div><div><br></div><div><div>srw-------   1 root      wheel        0 Nov 24 09:07 stats-reader</div><div>srw-rw----   1 root      dovecot      0 Nov 24 09:07 stats-writer</div></div></div></div></div></div></blockquote><div><br></div><div>What user/group does dovecot_virtual_delivery run as? </div></div></div></blockquote><div><br></div><div>It runs as the MTA user - mailnull.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><div><div>Change the stats-writer socket's owner to be that user. For example:</div><div><br></div><div><div>service stats {</div><div>  unix_listener stats-writer {</div><div>      user = vmail</div><div>  }</div><div>}</div><div><br></div></div></div></div></blockquote><div> </div><div>That makes sense.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><div><div><div></div><div>Or alternatively change dovecot_virtual_delivery to use dovecot group.</div></div></div></div></blockquote><div><br></div><div>That would not be possible because it will not have permissions to write the mail files.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><div><blockquote type="cite"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>I have tried to find any mention of stats-{writer|reader} in the example configs shipped with 2.3.4 and found nothing. I have backed-off 2.3.4 for now till I can figure out how to assign proper permissions to these sockets - or just to figure out why by default, permission is being denied.</div></div></div></div></div></blockquote><div><br></div><div>Looks like this is happening now because in earlier versions the dovecot-lda process wasn't sending any statistics.</div><div><br></div></div></div></blockquote></div><br clear="all"><div><br></div><div>BTW, was it an oversight that this config snippet is not documented with the example-config files? Or on the Wiki? Or my eyes are failing me? :-)</div><div><br></div><div> Thank you very much.<br></div><div><br></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><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></div></div></div></div></div>