Re: [Dovecot] LDAP & static userdb
ive added args = uid=vmail gid=vmail home=/home/MAILBOXES/%u/ mail=/home/MAILBOXES/%u/mail
and it work.
Im not really sure about the hole LDAP thing :)
my conf: uris = ldaps://ldap.example.org:636 dn = cn=dovecot server,ou=people,ou=Server,dc=example,dc=org dnpass = hiddenpw auth_bind = yes ldap_version = 3 base = dc=example,dc=org scope = subtree user_attrs = homeDirectory=home,uid=mail=maildir:/home/%$/mail user_filter = (&(objectClass=gosaMailAccount)(|(mail=%u)(gosaMailAlternateAddress=%u)(uid=%u))) pass_attrs = uid=user,userPassword=password pass_filter = (&(objectClass=gosaMailAccount)(uid=%u))
(yea on 1.2 my home was /home/%uid but that suxx and i want to move it to /home/MAILBOXES/%uid)
- I have a user that can read the PW so i dont need "auth_bind = yes", right?
- user_* and pass_* i dont need them anymore cause its always: home=/home/MAILBOXES/%u/ mail=/home/MAILBOXES/%u/mail
2010/8/27 Mihajlin Evgenij skyworker@ooobadm.dp.ua:
В сообщении от 27 августа 2010 17:32:04 автор spamvoll@googlemail.com написал:
log say: dovecot: imap(hpeter): Error: user hpeter: Initialization failed: mail_location not set and autodetection failed: Mail storage autodetection failed with home=/home/MAILBOXES/hpeter/mail
may be try to set into 10-mail.conf or in namespace private (if you have such) mail_localtion = ~/Maildir
On Fri, 2010-08-27 at 17:07 +0200, spamvoll@googlemail.com wrote:
ive added args = uid=vmail gid=vmail home=/home/MAILBOXES/%u/ mail=/home/MAILBOXES/%u/mail
and it work.
That still does autodetection. You should have something like mail=maildir:/home/MAILBOXES/%u/mail, but even simpler is if you just remove mail from the above line and use:
mail_location = maildir:~/mail
- I have a user that can read the PW so i dont need "auth_bind = yes", right?
Yeah.
- user_* and pass_* i dont need them anymore cause its always: home=/home/MAILBOXES/%u/ mail=/home/MAILBOXES/%u/mail
user_* you don't need because you have static userdb, but pass_* is still used (assuming you didn't change passdb too).
participants (2)
-
spamvoll@googlemail.com
-
Timo Sirainen