[Dovecot] ldap proxy

Alfonso Sparano asparano at unisa.it
Wed Jun 17 11:21:42 EEST 2009


Hi all

I'm trying to setup a dovecot proxy through and LDAP server.

 

I'm already using Perdition and it works very well but I would like to setup
dovecot proxy for managesieve capabilities
(http://wiki.dovecot.org/ManageSieve?highlight=(sieve)|(proxy)#Proxy)

 

The version of dovecot is 1.1.16 but I can't understand how to setup dovecot
correctly. 

This is my dovecot.conf:

 

protocols = pop3 imap

disable_plaintext_auth = no

auth_debug_passwords=yes

auth_verbose=yes

syslog_facility = mail

ssl_disable = yes

login_process_per_connection = no

login_processes_count = 3

auth default {

  mechanisms = plain

  userdb static {

    args = static uid=5000 gid=5000 home=/dev/null

  }

  passdb ldap {

    args = /usr/local/etc/dovecot-ldap.conf

  }

  user = root

}

 

And the dovecot-ldap.conf

 

hosts = first second third 

auth_bind = yes

auth_bind_userdn = uid=%u,ou=People,dc=unisa,dc=it

ldap_version = 3

deref = never

base = uid=%n, ou=people, dc=unisa,dc=it

 

pass_attrs = uid=user, userPassword=password, =proxy=1, mailHost=host,
=nologin=1, =nodelay=1

 

 

After a telnet on localhost 143 I receive a logout error. In the log I find:

 

Jun 17 10:14:17 server-proxy dovecot: auth(default): client in: AUTH   1
PLAIN   service=imap    secured lip=127.0.0.1   rip=127.0.0.1   lport=9143
rport=52316 resp=AGFzcGFyAFNvZm9yaW50

Jun 17 10:14:17 server-proxy dovecot: auth(default): client out: OK     1
user=XXXXXX

Jun 17 10:14:17 server-proxy dovecot: auth(default): master in: REQUEST 1
10541   1

Jun 17 10:14:17 server-proxy dovecot: auth(default): master out: USER   1
XXXXXX static  uid=5000        gid=5000        home=/dev/null

Jun 17 10:14:17 server-proxy dovecot: auth(default): new auth connection:
pid=10541

Jun 17 10:14:17 server-proxy dovecot: imap-login: Login: user=<XXXXXX>,
method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured

Jun 17 10:14:17 server-proxy dovecot: IMAP(XXXXXX): mail_location not set
and autodetection failed: Mail storage autodetection failed with
home=/dev/null

Jun 17 10:14:17 server-proxy dovecot: Fatal: IMAP(XXXXXX): Namespace
initialization failed

 

The important elements into the ldap entry of user XXXXXX are:

dn: uid= XXXXXX,ou=people,dc=unisa,dc=it

uid: XXXXXX

userPassword: SomethingToMatch

mailHost: 10.10.10.1

 

 

Could you guide me to resolve the issue? 

Thanks a lot

Alfonso



More information about the dovecot mailing list