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-tp38093.html 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 -- https://plus.google.com/103021802792276734820
Apparently Analagous Threads
- LMTP & home, chroot, mail userdb fields.
- permissions on auth-userdb
- Lda fatal: setgid (102 from userdb lookup) failed
- permissions on auth-userdb Error: userdb lookup
- Troubles with Dovecot 2.3.3 - mkdir permission denied due to +w perm: /var, dir owned by 0:0 mode=0755)