[Dovecot] dovecot: lda(foo): Error: User foo doesn't have home dir set, disabling duplicate database
Hello everyone,
I have a small problem with dovecot installed on ubuntu-13.10. I use dovcot as LDA with a LDAP-passdb and a pam-passdb. The userdb is static. A mail to LDAP-user 'foo' is delivered with the error-message
dovecot: lda(foo): Error: User foo doesn't have home dir set, disabling duplicate database
A mail to the pam-user 'bar' will deliverd without this error. But both users should work with the static-userdb. Where is my mistake?
Greetings Christian
dovecot --version 2.1.7 ############################################ my dovecot.conf # 2.1.7: /etc/dovecot/dovecot.conf # OS: Linux 3.11.0-22-generic i686 Ubuntu 13.10 ext4 disable_plaintext_auth = no first_valid_uid = 107 last_valid_uid = 109 listen = * log_timestamp = "%Y-%m-%d %H:%M:%S " mail_home = /var/mail/%u mail_location = maildir:/var/mail/%u/Maildir managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave passdb { args = /etc/dovecot/dovecot-ldap.conf driver = ldap } passdb { driver = pam } plugin { sieve = /var/mail/%u/dovecot.sieve sieve_before = /etc/dovecot/sieve.global/spamfilter.sieve } protocols = imap pop3 sieve service auth { user = root } service managesieve-login { inet_listener sieve { port = 2000 } } ssl_cert =
On 05/31/2014 03:04 PM Christian Hoffmann wrote:
Hello everyone,
I have a small problem with dovecot installed on ubuntu-13.10. I use dovcot as LDA with a LDAP-passdb and a pam-passdb. The userdb is static. A mail to LDAP-user 'foo' is delivered with the error-message
dovecot: lda(foo): Error: User foo doesn't have home dir set, disabling duplicate database
Your LDAP based userdb doesn't return the home directory for user foo. The LDAP lookup should return the home directory. See http://wiki2.dovecot.org/UserDatabase
And even for virtual users you should have a home directory for each virtual user. See http://wiki2.dovecot.org/VirtualUsers/Home
A mail to the pam-user 'bar' will deliverd without this error. But both users should work with the static-userdb. Where is my mistake?
Because the userdb returns the home directory of the system user bar.
Regards, Pascal
The trapper recommends today: c01dcofe.1415119@localdomain.org
Hello Pascal,
but I didn't configure a userdb with driver=ldap. There is only one userdb with driver=static and I assumed, that every user gets the same uid, gid and a valid home directory.
Are there some circumstances, that different passdb-drivers treated in special relation to userdb-drivers? Like, one have to configure a userdb-driver=ldap if one uses a passdb-driver=ldap. But the passdb-driver=pam looks into userdb-driver=static. That is the part, I do not understand.
Greetings Christian
Am 31.05.2014 19:12, schrieb Pascal Volk:
On 05/31/2014 03:04 PM Christian Hoffmann wrote:
Hello everyone,
I have a small problem with dovecot installed on ubuntu-13.10. I use dovcot as LDA with a LDAP-passdb and a pam-passdb. The userdb is static. A mail to LDAP-user 'foo' is delivered with the error-message
dovecot: lda(foo): Error: User foo doesn't have home dir set, disabling duplicate database Your LDAP based userdb doesn't return the home directory for user foo. The LDAP lookup should return the home directory. See http://wiki2.dovecot.org/UserDatabase
And even for virtual users you should have a home directory for each virtual user. See http://wiki2.dovecot.org/VirtualUsers/Home
A mail to the pam-user 'bar' will deliverd without this error. But both users should work with the static-userdb. Where is my mistake? Because the userdb returns the home directory of the system user bar.
Regards, Pascal
On 05/31/2014 05:35 PM Christian Hoffmann wrote:
Hello Pascal,
but I didn't configure a userdb with driver=ldap. There is only one userdb with driver=static and I assumed, that every user gets the same uid, gid and a valid home directory.
Are there some circumstances, that different passdb-drivers treated in special relation to userdb-drivers? Like, one have to configure a userdb-driver=ldap if one uses a passdb-driver=ldap. But the passdb-driver=pam looks into userdb-driver=static. That is the part, I do not understand.
[*ToFu*]
What is the output of commands doveadm user -f home foo
and doveadm user -f home bar
?
Regards, Pascal
The trapper recommends today: c01dcofe.1415119@localdomain.org
Am 31.05.2014 19:50, schrieb Pascal Volk:
On 05/31/2014 05:35 PM Christian Hoffmann wrote:
Hello Pascal,
but I didn't configure a userdb with driver=ldap. There is only one userdb with driver=static and I assumed, that every user gets the same uid, gid and a valid home directory.
Are there some circumstances, that different passdb-drivers treated in special relation to userdb-drivers? Like, one have to configure a userdb-driver=ldap if one uses a passdb-driver=ldap. But the passdb-driver=pam looks into userdb-driver=static. That is the part, I do not understand.
[*ToFu*] What is the output of commands
doveadm user -f home foo
anddoveadm user -f home bar
?Regards, Pascal Here it is:
root@ods2:~# doveadm user -f home foo doveadm(root): Error: user foo: Auth USER lookup failed doveadm(root): Error: userdb lookup failed for foo root@ods2:~# doveadm user -f home bar doveadm(root): Error: user bar: Auth USER lookup failed doveadm(root): Error: userdb lookup failed for bar
Greetings Christian
Am 31.05.2014 19:57, schrieb Christian Hoffmann:
Am 31.05.2014 19:50, schrieb Pascal Volk:
On 05/31/2014 05:35 PM Christian Hoffmann wrote:
Hello Pascal,
but I didn't configure a userdb with driver=ldap. There is only one userdb with driver=static and I assumed, that every user gets the same uid, gid and a valid home directory.
Are there some circumstances, that different passdb-drivers treated in special relation to userdb-drivers? Like, one have to configure a userdb-driver=ldap if one uses a passdb-driver=ldap. But the passdb-driver=pam looks into userdb-driver=static. That is the part, I do not understand.
[*ToFu*] What is the output of commands
doveadm user -f home foo
anddoveadm user -f home bar
?Regards, Pascal Here it is:
root@ods2:~# doveadm user -f home foo doveadm(root): Error: user foo: Auth USER lookup failed doveadm(root): Error: userdb lookup failed for foo root@ods2:~# doveadm user -f home bar doveadm(root): Error: user bar: Auth USER lookup failed doveadm(root): Error: userdb lookup failed for bar
Greetings Christian A look in the dovecot.log: These two lines appeared during the commands:
dovecot: auth: Error: static(foo): passdb doesn't support lookups, can't verify user's existence dovecot: auth: Error: static(bar): passdb doesn't support lookups, can't verify user's existence
Which passdb is ment?
Greetings Christian
Hello,
some config-trys later:
I have to set allow_all_users=yes in the userdb with driver=static:
|userdb { args = home=/var/mail/%u uid=Debian-exim gid=Debian-exim|||allow_all_users=yes| driver = static }|
Have a good time Christian
||
Am 31.05.2014 17:04, schrieb Christian Hoffmann:
Hello everyone,
I have a small problem with dovecot installed on ubuntu-13.10. I use dovcot as LDA with a LDAP-passdb and a pam-passdb. The userdb is static. A mail to LDAP-user 'foo' is delivered with the error-message
dovecot: lda(foo): Error: User foo doesn't have home dir set, disabling duplicate database
A mail to the pam-user 'bar' will deliverd without this error. But both users should work with the static-userdb. Where is my mistake?
Greetings Christian
dovecot --version 2.1.7 ############################################ my dovecot.conf # 2.1.7: /etc/dovecot/dovecot.conf # OS: Linux 3.11.0-22-generic i686 Ubuntu 13.10 ext4 disable_plaintext_auth = no first_valid_uid = 107 last_valid_uid = 109 listen = * log_timestamp = "%Y-%m-%d %H:%M:%S " mail_home = /var/mail/%u mail_location = maildir:/var/mail/%u/Maildir managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave passdb { args = /etc/dovecot/dovecot-ldap.conf driver = ldap } passdb { driver = pam } plugin { sieve = /var/mail/%u/dovecot.sieve sieve_before = /etc/dovecot/sieve.global/spamfilter.sieve } protocols = imap pop3 sieve service auth { user = root } service managesieve-login { inet_listener sieve { port = 2000 } } ssl_cert =
participants (2)
-
Christian Hoffmann
-
Pascal Volk