[Dovecot] Fwd: problem with Error: net_connect_unix(/var/run/dovecot/dict) failed: Permission denied
Hi,
$ dovecot --version 2.1.7
afrer i send email: log:
tail -f /var/log/*
<code style='overflow:scroll'>==> sieve.log <==<br> Jan 10 20:44:14 lda(test@test.cz<a target='_blank' href='mailto:test@vinotekaolvi.cz'></a>): Error: net_connect_unix(/var/run/<wbr>dovecot/dict) failed: Permission denied (euid=2000(vmail) egid=2000(vmail) missing +r perm: /var/run/dovecot/dict, dir owned by 0:0 mode=0755)<br>
Jan 10 20:44:14 lda(test@test.cz<a target='_blank' href='mailto:test@vinotekaolvi.cz'></a>): Error: Internal quota calculation error<br>Jan 10 20:44:14 lda(test@test.cz): Info: msgid=<<a target='_blank' href='mailto:1Qg.7WxZ.46PKIvcQWgrs.1Iq4r%7B@seznam.cz'>1Qg.7WxZ.sdfs.<wbr>1Iq4r{@seznam.cz</a>>: save failed to INBOX: Internal error occurred. Refer to server log for more information. [2014-01-10 20:44:14]</code>
<code>$ cat /etc/dovecot/dovecot.conf | grep -v "^ *#" | grep -v "^ *$"<br>protocols = pop3 imap sieve<br>listen = *<br>mail_uid = 2000<br>mail_gid = 2000<br>
first_valid_uid = 2000<br>last_valid_uid = 2000<br>auth_master_user_separator = *<br>log_path = /var/log/dovecot.log<br>disable_plaintext_auth = yes<br>auth_default_realm = test.cz<br>
plugin {<br> quota_warning = storage=85%% /usr/local/bin/dovecot-quota-<wbr>warning.sh 85<br> quota_warning2 = storage=90%% /usr/local/bin/dovecot-quota-<wbr>warning.sh 90<br> quota_warning3 = storage=95%% /usr/local/bin/dovecot-quota-<wbr>warning.sh 95<br>
}<br>ssl = required<br>verbose_ssl = no<br>ssl_key = </etc/ssl/private/iRedMail.key<br>ssl_cert = </etc/ssl/certs/iRedMail_CA.<wbr>pem<br>ssl_ca = </etc/ssl/certs/iRedMail_CA.<wbr>pem<br>mail_location = maildir:/%Lh/Maildir/:INDEX=/%<wbr>Lh/Maildir/<br>
plugin {<br> quota = dict:user::proxy::quotadict<br> quota_rule = *:storage=0<br>}<br>dict {<br>}<br>plugin {<br> auth_socket_path = /var/run/dovecot/auth-master<br>}<br>plugin {<br> sieve = /%Lh/sieve/dovecot.sieve<br>
}<br>protocol lda {<br> postmaster_address = root<br> auth_socket_path = /var/run/dovecot/auth-master<br> mail_plugins = quota sieve autocreate<br> log_path = /var/log/sieve.log<br>}<br>protocol imap {<br> mail_plugins = quota imap_quota autocreate<br>
imap_client_workarounds = tb-extra-mailbox-sep<br>}<br>protocol pop3 {<br> mail_plugins = quota<br> pop3_uidl_format = %08Xu%08Xv<br> pop3_client_workarounds = outlook-no-nuls oe-ns-eoh<br>}<br>service auth {<br>
unix_listener /var/spool/postfix/dovecot-<wbr>auth {<br> user = postfix<br> group = postfix<br> mode = 0666<br> }<br> unix_listener auth-master {<br> user = vmail<br> group = vmail<br>
mode = 0666<br> }<br> unix_listener auth-userdb {<br> user = vmail<br> group = vmail<br> mode = 0660<br> }<br>}<br> passdb {<br> args = /etc/dovecot/dovecot-master-<wbr>users-password<br>
master = yes<br> driver = passwd-file<br> }<br> passdb {<br> args = /etc/dovecot/dovecot-mysql.<wbr>conf<br> driver = sql<br> }<br> userdb {<br> args = /etc/dovecot/dovecot-mysql.<wbr>conf<br>
driver = sql<br> }<br>plugin {<br> autocreate = INBOX<br> autocreate2 = Sent<br> autocreate3 = Trash<br> autocreate4 = Drafts<br> autocreate5 = Junk<br> autosubscribe = INBOX<br> autosubscribe2 = Sent<br>
autosubscribe3 = Trash<br> autosubscribe4 = Drafts<br> autosubscribe5 = Junk<br>}<br>dict {<br> quotadict = mysql:/etc/dovecot/dovecot-<wbr>used-quota.conf<br>}<br>namespace {<br> type = private<br> separator = /<br>
prefix =<br> inbox = yes<br>}<br>namespace {<br> type = shared<br> separator = /<br> prefix = Shared/%%u/<br> location = maildir:/%%Lh/Maildir/:INDEX=/<wbr>%%Lh/Maildir/Shared/%%u<br> subscriptions = yes<br>
list = children<br>}<br>plugin {<br> acl = vfile<br> acl_shared_dict = proxy::acl<br>}<br>dict {<br> acl = mysql:/etc/dovecot/dovecot-<wbr>share-folder.conf<br>}<br>protocol sieve {<br>}<br>plugin {<br> sieve = /var/vmail/sieve/%Ld/%Ln/<wbr>dovecot.sieve<br>
sieve_dir = /var/vmail/sieve/%Ld/%Ln<br>}</code>
<code>$ ll /var/run/dovecot/ | grep dict<br>srw------- 1 root root 0 led 10 20:52 dict</code>
So, when i change chmod on /var/run/dovecot/dict, after $ /etc/init.d/ dovecot restart is default.
So, how i can change user group or user or something other? I'm trying and googling this resolved about 6 hours. No results :( Thanks for any reply.
On 2014-01-12 9:13 AM, mozek007 <Mozek007@seznam.cz> wrote:
tail -f/var/log/*
<code style='overflow:scroll'>==> sieve.log <==<br> Jan 10 20:44:14 lda(test@test.cz<a target='_blank' href='mailto:test@vinotekaolvi.cz'></a>): Error: net_connect_unix(/var/run/<wbr>dovecot/dict) failed: Permission denied (euid=2000(vmail) egid=2000(vmail) missing +r perm: /var/run/dovecot/dict, dir owned by 0:0 mode=0755)<br>
Jan 10 20:44:14 lda(test@test.cz<a target='_blank' href='mailto:test@vinotekaolvi.cz'></a>): Error: Internal quota calculation error<br>Jan 10 20:44:14 lda(test@test.cz): Info: msgid=<<a target='_blank' href='mailto:1Qg.7WxZ.46PKIvcQWgrs.1Iq4r%7B@seznam.cz'>1Qg.7WxZ.sdfs.<wbr>1Iq4r{@seznam.cz</a>>: save failed to INBOX: Internal error occurred. Refer to server log for more information. [2014-01-10 20:44:14]</code>
Please try again without all the HTML pollution garbage...
--
Best regards,
Charles
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Sun, 12 Jan 2014, mozek007 wrote:
Jan 10 20:44:14 lda(test@test.cz<a target='_blank' href='mailto:test@vinotekaolvi.cz'></a>): Error: net_connect_unix(/var/run/<wbr>dovecot/dict) failed: Permission denied (euid=2000(vmail) egid=2000(vmail) missing +r perm: /var/run/dovecot/dict, dir owned by 0:0 mode=0755)<br>
See http://wiki2.dovecot.org/Services#Service_listeners
mode/user/group what values are best for you, depend on your local system.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUtQIc3D1/YhP6VMHAQIEAAf/bhvsyEIGDG7paaNDv0v+cha3ZHPFsyhB H4Vyf1Lnx5dcJkgBMHijWZ80347RZNJltcAXG9hfn/BwUGfrutnW5wSZc0hNuj/P xK2mH3qp0k0iQ5scinx+desAdWTlmbFuGnOkv6jvddMswQZ91hwZCCU/cJrQb3dm CQiYfxNbh+GGswcPf824szEYOs+k5Ut3U75o7Vbot2gkS2+SW7u/1NjQG6GHk8Di 3pyevv/AQU+Sdm/ZCdJHmi0Dx1Qhmk5v3WXz5CBOCFsYCDEusdzTQXkZyUFo4ca7 U04gCNlSbjmKrKGuMmUutZ1IgaUNjOtgpxRTRDLYCb6sToaGzQYatw== =3D/s -----END PGP SIGNATURE-----
participants (3)
-
Charles Marcus
-
mozek007
-
Steffen Kaiser