Odhiambo Washington
2019-Apr-10 14:57 UTC
/var/run/dovecot/stats-writer) failed: Permission denied
On Wed, 10 Apr 2019 at 17:50, @lbutlr via dovecot <dovecot at dovecot.org> wrote:> On 10 Apr 2019, at 08:36, @lbutlr via dovecot <dovecot at dovecot.org> wrote: > > net_connect_unix(/var/run/dovecot/stats-writer) failed: Permission den)) > > One other detail: > > /var/run/dovecot/stats-writer: > 0 srw-rw---- 1 root dovecot 0 Apr 10 08:47 stats-writer > >Edit your 10-master.conf and make sure that the user specified in the details below matches the dovecot user: service stats { unix_listener stats-writer { user = mailnull } unix_listener stats-reader { user = mailnull } -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", grep ^[^#] :-) -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20190410/8e53b80e/attachment-0001.html>
> On 10 Apr 2019, at 08:57, Odhiambo Washington via dovecot <dovecot at dovecot.org> wrote: > > > > On Wed, 10 Apr 2019 at 17:50, @lbutlr via dovecot <dovecot at dovecot.org> wrote: > On 10 Apr 2019, at 08:36, @lbutlr via dovecot <dovecot at dovecot.org> wrote: > > net_connect_unix(/var/run/dovecot/stats-writer) failed: Permission den)) > > One other detail: > > /var/run/dovecot/stats-writer: > 0 srw-rw---- 1 root dovecot 0 Apr 10 08:47 stats-writer > > > Edit your 10-master.conf and make sure that the user specified in the details below matches the dovecot user: > > > service stats { > unix_listener stats-writer { > user = mailnull > } > unix_listener stats-reader { > user = mailnull > }Sorry, i am confused. There is no similar clock in 10-master.conf In fact,. the string "stats" does not appear in that file at all. The commented line #default_internal_user = dovecot is in that file, and that is the dovecot user (as seen in the permissions above). Should I add service stats { unix_listener stats-writer { user = dovecot } unix_listener stats-reader { user = dovecot } } to my dovecot.conf file? -- I want a party where all the women wear new dresses and all the men drink beer. -- Jason Gaes
Odhiambo Washington
2019-Apr-10 15:14 UTC
/var/run/dovecot/stats-writer) failed: Permission denied
On Wed, 10 Apr 2019 at 18:06, @lbutlr via dovecot <dovecot at dovecot.org> wrote:> > > > On 10 Apr 2019, at 08:57, Odhiambo Washington via dovecot < > dovecot at dovecot.org> wrote: > > > > > > > > On Wed, 10 Apr 2019 at 17:50, @lbutlr via dovecot <dovecot at dovecot.org> > wrote: > > On 10 Apr 2019, at 08:36, @lbutlr via dovecot <dovecot at dovecot.org> > wrote: > > > net_connect_unix(/var/run/dovecot/stats-writer) failed: Permission > den)) > > > > One other detail: > > > > /var/run/dovecot/stats-writer: > > 0 srw-rw---- 1 root dovecot 0 Apr 10 08:47 stats-writer > > > > > > Edit your 10-master.conf and make sure that the user specified in the > details below matches the dovecot user: > > > > > > service stats { > > unix_listener stats-writer { > > user = mailnull > > } > > unix_listener stats-reader { > > user = mailnull > > } > > Sorry, i am confused. There is no similar clock in 10-master.conf > > In fact,. the string "stats" does not appear in that file at all. The > commented line > > #default_internal_user = dovecot > > is in that file, and that is the dovecot user (as seen in the permissions > above). > > Should I add > > service stats { > unix_listener stats-writer { > user = dovecot > } > unix_listener stats-reader { > user = dovecot > } > } > > to my dovecot.conf file? > >Add the two blocks to 10-master.conf, before the last "}" My dovecot runs as user mailnull. YMMV. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", grep ^[^#] :-) -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20190410/535fd553/attachment.html>
On 10 Apr 2019, at 09:06, @lbutlr via dovecot <dovecot at dovecot.org> wrote:> Should I add > > service stats { > unix_listener stats-writer { > user = dovecot > } > unix_listener stats-reader { > user = dovecot > } > } > > to my dovecot.conf file?I did this and it appears to have fixed the issue. Also, the failed message strongly implies that the email was not delivered, since it happens on the delivery log line and there is not indication in the log that delivery succeeded. However, the message is delivered. It might be worth changing the message or still logging the actual message delivery? -- I WILL NOT CARVE GODS Bart chalkboard Ep. 8F11
Apparently Analagous Threads
- /var/run/dovecot/stats-writer) failed: Permission denied
- /var/run/dovecot/stats-writer) failed: Permission denied
- /var/run/dovecot/stats-writer) failed: Permission denied
- /var/run/dovecot/stats-writer) failed: Permission denied
- /var/run/dovecot/stats-writer) failed: Permission denied