hi..
im just testing 2.0 before upgrading to v1.2 :)
in auth-ldap.conf.ext i found
# If you don't have any user-specific settings, you can avoid the userdb
LDAP
# lookup by using userdb static instead of userdb ldap, for example:
# <doc/wiki/UserDatabase.Static.txt>
#userdb {
#driver = static
#args = uid=vmail gid=vmail home=/var/vmail/%u
#}
On 1.2 im using LDAP lookup and everthing works like a charm.
user_attrs = homeDirectory=home,uid=mail=maildir:/home/MAILBOXES/%$/mail
On 2.0 is now tried to use this option cause all my mail are stored in
/home/MAILBOXES/%uid/mail
userdb {
driver = static
args = uid=vmail gid=vmail home=/home/MAILBOXES/%u/mail
}
and that doesnt work
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
Hans
no idea if it matters but the static userdb sets only the home=. is it possible to set home= and mailbecause both souldnt be the same as Timo mentioned a few days ago 2010/8/27 <spamvoll at googlemail.com>:> hi.. > > im just testing 2.0 before upgrading to v1.2 :) > > in auth-ldap.conf.ext i found > > # If you don't have any user-specific settings, you can avoid the userdb LDAP > # lookup by using userdb static instead of userdb ldap, for example: > # <doc/wiki/UserDatabase.Static.txt> > #userdb { > ?#driver = static > ?#args = uid=vmail gid=vmail home=/var/vmail/%u > #} > > On 1.2 im using LDAP lookup and everthing works like a charm. > user_attrs = homeDirectory=home,uid=mail=maildir:/home/MAILBOXES/%$/mail > > On 2.0 is now tried to use this option cause all my mail are stored in > /home/MAILBOXES/%uid/mail > userdb { > ?driver = static > ?args = uid=vmail gid=vmail home=/home/MAILBOXES/%u/mail > } > > and that doesnt work > 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 > > Hans >
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) 1) I have a user that can read the PW so i dont need "auth_bind = yes", right? 2) 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 at ooobadm.dp.ua>:> ? ????????? ?? 27 ??????? 2010 17:32:04 ????? spamvoll at 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 > >