[Dovecot] /var/run/dovecot/auth-userdb failed
Hi, I work on test server and if I send an email on log i read
lda: Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Permission denied (euid=8135(vmail) egid=8135(vmail) missing +r perm: /var/run/dovecot/auth-userdb, euid is not dir owner)
This is my dovecot.conf:
auth_mechanisms = plain login info_log_path = /var/log/dovecot listen = 0.0.0.0 log_path = /var/log/dovecot login_greeting = Dovecot IMAP Server ready. mail_location = maildir:/home/vmail/%d/%u mail_privileged_group = vmail passdb { args = /etc/dovecot/dovecot-ldap.conf.ext.fabry driver = ldap } protocols = pop3 sieve imap service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-userdb { mode = 0600 user = root group = root } } ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_key = </etc/pki/dovecot/private/dovecot.pem userdb { driver = ldap args = /etc/dovecot/dovecot-ldap.conf.ext.fabry } lda_original_recipient_header = X-Original-To lda_mailbox_autocreate = yes lda_mailbox_autosubscribe = yes protocol lda { mail_plugins = $mail_plugins sieve info_log_path = /var/log/dovecot-lda.log } managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variab les body enotify environment mailbox date plugin { sieve_dir = /home/vmail/%d/%u/sieve sieve = /home/vmail/%d/%u/sieve/.dovecot.sieve }
What did I do wrong?
-- View this message in context: http://dovecot.2317879.n4.nabble.com/var-run-dovecot-auth-userdb-failed-tp38... Sent from the Dovecot mailing list archive at Nabble.com.
thefantaman wrote:
I work on test server and if I send an email on log i read
lda: Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Permission denied (euid=8135(vmail) egid=8135(vmail) missing +r perm: /var/run/dovecot/auth-userdb, euid is not dir owner)
unix_listener auth-userdb { mode = 0600 user = root group = root } }
The problem is that LDA (local delivery agent or lmtp service) is not able to look up the destination mailbox in userdb.
The socket /var/run/dovecot/auth-userdb is currently only readable or writable by user root since mode is set to 0600, not readable or writable by other groups.
http://wiki2.dovecot.org/LDA#Virtual_users
You'll need to set up a auth-userdb socket for dovecot-lda so it knows where to find mailboxes for the users. LDA is running under the virtual mailbox user and group "vmail", so you need to grant this user or group access to /var/run/dovecot/auth-userdb.
You could do this by using group memberships and set mode = 0660 or simply make it world-readable-writable with mode = 0666:
unix_listener auth-userdb { mode = 0666 user = root group = root }
Regards Daniel
Thank you very much Daniel, I solved the problem. In this moment I have a problem with a maildir, I used a format "/home/vmail/%d/%u" and the first user make maildir he is owner "/home/vmail/%d" and second user don't make a maildir. Now, I look for the solution. Best regards.
2012/10/14 Daniel Parthey <daniel.parthey@informatik.tu-chemnitz.de>
thefantaman wrote:
I work on test server and if I send an email on log i read
lda: Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Permission denied (euid=8135(vmail) egid=8135(vmail) missing +r perm: /var/run/dovecot/auth-userdb, euid is not dir owner)
unix_listener auth-userdb { mode = 0600 user = root group = root } }
The problem is that LDA (local delivery agent or lmtp service) is not able to look up the destination mailbox in userdb.
The socket /var/run/dovecot/auth-userdb is currently only readable or writable by user root since mode is set to 0600, not readable or writable by other groups.
http://wiki2.dovecot.org/LDA#Virtual_users
You'll need to set up a auth-userdb socket for dovecot-lda so it knows where to find mailboxes for the users. LDA is running under the virtual mailbox user and group "vmail", so you need to grant this user or group access to /var/run/dovecot/auth-userdb.
You could do this by using group memberships and set mode = 0660 or simply make it world-readable-writable with mode = 0666:
unix_listener auth-userdb { mode = 0666 user = root group = root }
Regards Daniel
participants (3)
-
Daniel Parthey
-
Fabrizio Monti
-
thefantaman