[Dovecot] Some dovecot conf parameters
Hello all! First of all - sorry for my english. :-)
Im working now on migration from cyrus to dovecot(v1.07). Everything work`s fine for now, but some parameters at dovecot conf a mystical for me. :-)
dovecot-ldap.conf:
user_attrs = mail #,homeDirectory,,,, user_filter = (&(objectClass=qmailUser)(mail=%u)) pass_attrs = mail,userPassword=password pass_filter = (&(objectClass=qmailUser)(mail=%u))
What does this parameters mean? Im understand what mean a *_filter, but im do not understand a *_attrs. Yes, im read a http://wiki.dovecot.org/AuthDatabase/LDAP and http://wiki.dovecot.org/PasswordDatabase/ExtraFields
But don`t understand it. :-(
Ask you for help, or just say what im read this wiki again and again.
Best regards, Proskurin Kirill
On Mon, 2007-11-26 at 16:52 +0300, Proskurin Kirill wrote:
Im working now on migration from cyrus to dovecot(v1.07).
Would you like to tell why? I'm always interested of why people are switching away from Cyrus. :)
user_attrs = mail #,homeDirectory,,,, user_filter = (&(objectClass=qmailUser)(mail=%u)) pass_attrs = mail,userPassword=password pass_filter = (&(objectClass=qmailUser)(mail=%u))
What does this parameters mean? Im understand what mean a *_filter, but im do not understand a *_attrs. Yes, im read a http://wiki.dovecot.org/AuthDatabase/LDAP and http://wiki.dovecot.org/PasswordDatabase/ExtraFields
But don`t understand it. :-(
Those are fields that Dovecot looks up from LDAP and uses for its internal purposes.
If you're using auth_bind=yes, pass_attrs only needs to return "user" field. In your case you're using "mail" for that, so you need to tell Dovecot that it's the same as "user":
pass_attrs = mail=user,userPassword=password
It might not be necessary though. But that makes sure that if mail=%u matching is case-insensitive, Dovecot uses the username with the exact same casing as it's in LDAP.
user_attrs then.. Well, if you're using virtual users with a single UID and GID you may not need to use userdb ldap at all. Look at http://wiki.dovecot.org/UserDatabase/Static instead. http://wiki.dovecot.org/UserDatabase anyway explains the user_attrs fields.
Timo Sirainen wrote:
Would you like to tell why? I'm always interested of why people are switching away from Cyrus. :)
Were is a lot of people do so before me? Funny. :-)
At our system cyrus was before me, and im really dont like it and don
t
want to learn it. Im tired of it "IO system error" then im try to
reconstruct they maildirs. Im tired of it index errors. And im really don
t like what he uses it it own maildir...
Im think what most of it error`s can be fixed. Im try to but failed. And all our old mail system is work bad... im make it now from beginning.
As im know, the best open and free pop3\imap daemons is a cyrus and dovecot. :-) So im decided to try it, and im really like it. :-)
Waiting for 1.1
Those are fields that Dovecot looks up from LDAP and uses for its internal purposes.
Thank you for explanation!
user_attrs then.. Well, if you're using virtual users with a single UID and GID you may not need to use userdb ldap at all. Look at http://wiki.dovecot.org/UserDatabase/Static instead.
Auth, verify and deliver does by Exim. Im will test a dovecot deliver soon any way...
We a using LDAP as a one and only DB for all in one(mail auth, address book, jabber auth and so on). :-) So it is really... mhh... comfortable for us. :-)
-- Best regards, Proskurin Kirill
participants (2)
-
Proskurin Kirill
-
Timo Sirainen