[Dovecot] Dovecot LDAP schema?

Sergey A. Kobzar tod.zullu at gmail.com
Sat Jul 28 13:10:36 EEST 2007


Hi Hadmut,

You can use standard LDAP attributes. It's more than enough.

My configs:

dovecot.conf:

first_valid_uid = 8
last_valid_uid = 8

first_valid_gid = 12
last_valid_gid = 12

auth_username_format = %Lu

auth default {
  mechanisms = plain

  passdb ldap {
    args = /etc/dovecot/dovecot-ldap.conf
  }

  userdb static {
    args = uid=mail gid=mail
  }

}


dovecot-ldap.conf:

hosts = localhost

dn = cn=Dovecot,ou=DSA,o=top
dnpass = xxx

ldap_version = 3

base = ou=Users,dc=%d,o=top
scope = onelevel

pass_attrs = userPassword=password
pass_filter = uid=%n



Saturday, July 28, 2007, 12:53:09 PM, you wrote:

> Hi,

> does dovecot define its own LDAP schema or should I create my own one?


> (I want to provide IMAP boxes for virtual users that do not have a 
> Unix account on the mail server and thus do not want to use the 
> plain uid/gid entries of the posix account objectclass to avoid confusion
> and accidently giving access to accounts.)

> regards
> Hadmut



-- 
Sergey



More information about the dovecot mailing list