[Dovecot] Error: User doesn't have home dir set, disabling duplicate database
Hi all
I receive the following error in my mail.log.
Does anybody know how to configure dovecot to get rid of this ?
I have one server up and running with postfix, dovecot and a mysql backend. The error above happens on another server with postfix, dovecot and a ldap backend.
Any hints ?
Mit freundlichem Gruß
Carsten Laun-De Lellis
Dipl.-Ing. Elektrotechnik
Certified Information Systems Auditor (CISA)
Hauptstrasse 13
D-67705 Trippstadt
Phone: +49 (6306) 992140
Mobile: +49 (151) 27530865
Fax: +49 (6306) 992142
email: mailto:carsten.delellis@delellis.net carsten.delellis@delellis.net
On 09/16/2012 12:48 PM Carsten Laun-De Lellis wrote:
Hi all
I receive the following error in my mail.log.
Does anybody know how to configure dovecot to get rid of this ? […]
Fix your setup.
,--[ http://wiki2.dovecot.org/UserDatabase ]-- | The user database lookup returns these fields: | … | * home: User's home directory, overrides the global mail_home setting. | … `--
See also: http://wiki2.dovecot.org/VirtualUsers/Home
Regards, Pascal
The trapper recommends today: cafefeed.1226013@localdomain.org
thats a rather intelligent response now, isnt it troll.
On Sun, 2012-09-16 at 13:21 +0200, Pascal Volk wrote:
On 09/16/2012 12:48 PM Carsten Laun-De Lellis wrote:
Hi all
I receive the following error in my mail.log.
Does anybody know how to configure dovecot to get rid of this ? […]
Fix your setup.
,--[ http://wiki2.dovecot.org/UserDatabase ]-- | The user database lookup returns these fields: | … | * home: User's home directory, overrides the global mail_home setting. | … `--
See also: http://wiki2.dovecot.org/VirtualUsers/Home
Regards, Pascal
Hi,
On Sun, 2012-09-16 at 12:48 +0200, Carsten Laun-De Lellis wrote:
Hi all
I receive the following error in my mail.log.
Dont use ldap, but, you should supply the output of dovecot -n it might help those familiar with ldap setups assist you
Does anybody know how to configure dovecot to get rid of this ?
I have one server up and running with postfix, dovecot and a mysql backend. The error above happens on another server with postfix, dovecot and a ldap backend.
should use mysql :)
Hi
First of all thank you for helping me to fix the problem. I am trying out ldap to get used to it. As I wrote I have a mysql setup up and running.
Here's the output of doveconf -n:
# 2.1.9: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 2.6.18-028stab099.3 x86_64 Ubuntu 11.04 vzfs auth_mechanisms = plain login disable_plaintext_auth = no hostname = smtp.example.com mail_location = maildir:/vmail/%d/%n 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 namespace { inbox = yes location = maildir:/vmail/%d/%n prefix = separator = / subscriptions = yes type = private } passdb { args = /scripts/ldap/mail/auth.ldap driver = ldap } plugin { recipient_delimiter = + sieve = /vmail/%d/%n/dovecot.sieve sieve_dir = /vmail/%d/%n sieve_global_dir = /var/lib/dovecot/sieve sieve_global_path = /var/lib/dovecot/sieve/default.sieve } postmaster_address = root@example.com protocols = imap sieve service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-userdb { mode = 0660 user = vmail } } service managesieve-login { inet_listener sieve { port = 4190 } inet_listener sieve_deprecated { port = 2000 } process_min_avail = 0 service_count = 1 vsz_limit = 64 M } ssl_cert =
And here is also my auth ldap file:
uris = ldap://smtp.example.com dn = cn=admin, dc=example, dc=com dnpass = secret tls = no base = ou=mailuser,dc=example,dc=com ldap_version = 3
user_attrs = home=/vmail/%d/%n,=uid=5000,=gid=5000 user_filter = (&(objectClass=PFMailAccount)(pfMail=%u))
pass_attrs = pfClearPassword=password pass_filter = (&(objectClass=PFMailAccount)(pfMail=%u))
default_pass_scheme = PLAIN
Again thank you very much for any help.
Mit freundlichem Gruß
Carsten Laun-De Lellis Dipl.-Ing. Elektrotechnik Certified Information Systems Auditor (CISA)
Hauptstrasse 13 D-67705 Trippstadt
Phone: +49 (6306) 992140 Mobile: +49 (151) 27530865 Fax: +49 (6306) 992142 email: carsten.delellis@delellis.net
-----Original Message----- From: dovecot-bounces@dovecot.org [mailto:dovecot-bounces@dovecot.org] On Behalf Of Noel Butler Sent: Sonntag, 16. September 2012 13:34 To: dovecot@dovecot.org Subject: Re: [Dovecot] Error: User doesn't have home dir set, disabling duplicate database
Hi,
On Sun, 2012-09-16 at 12:48 +0200, Carsten Laun-De Lellis wrote:
Hi all
I receive the following error in my mail.log.
Dont use ldap, but, you should supply the output of dovecot -n it might help those familiar with ldap setups assist you
Does anybody know how to configure dovecot to get rid of this ?
I have one server up and running with postfix, dovecot and a mysql
backend.
The error above happens on another server with postfix, dovecot and a ldap backend.
should use mysql :)
Carsten Laun-De Lellis carsten.delellis@delellis.net wrote:
user_attrs = home=/vmail/%d/%n,=uid=5000,=gid=5000
This should be
user_attrs = =home=/vmail/%d/%n,=uid=5000,=gid=5000
You need the = before "home" like you did with "uid" and "gid" because you are not assigning any LDAP attribute to home but are construction one yourself with %d and %n.
Or you can use the default_fields stanza in your userdb configuration to provide those values. user_attrs would then be empty.
Grüße, Sven.
-- Sigmentation fault. Core dumped.
participants (4)
-
Carsten Laun-De Lellis
-
Noel Butler
-
Pascal Volk
-
Sven Hartge