[Dovecot] Dovecot on OpenBSD stalls

Bert Koelewijn spam at koelewijn.bz
Wed Aug 15 17:45:55 EEST 2007


Hello list,

I'm using dovecot 1.0.2 on OpenBSD 4.1. About every month, dovecot will just stall, without any error messages. The processes 
are still running, the network ports are open, but the login just hangs.

The following error message does occur on a very regular basis:

Aug 15 00:52:37 mail dovecot: auth(default): LDAP: ldap_result() failed: Can't contact LDAP server
Aug 15 01:08:08 mail dovecot: auth(default): LDAP: ldap_result() failed: Can't contact LDAP server
Aug 15 01:23:38 mail dovecot: auth(default): LDAP: ldap_result() failed: Can't contact LDAP server
Aug 15 01:38:39 mail dovecot: auth(default): LDAP: ldap_result() failed: Can't contact LDAP server
Aug 15 01:54:09 mail dovecot: auth(default): LDAP: ldap_result() failed: Can't contact LDAP server
Aug 15 02:09:10 mail dovecot: auth(default): LDAP: ldap_result() failed: Can't contact LDAP server
Aug 15 02:24:40 mail dovecot: auth(default): LDAP: ldap_result() failed: Can't contact LDAP server
Aug 15 02:39:41 mail dovecot: auth(default): LDAP: ldap_result() failed: Can't contact LDAP server
Aug 15 02:55:12 mail dovecot: auth(default): LDAP: ldap_result() failed: Can't contact LDAP server
(stalling from here)

The LDAP directory is Active Directory and is not used as userdb, only as passdb.

Thanks,

Bert


# 1.0.2: /etc/dovecot.conf
base_dir: /var/dovecot/
ssl_cert_file: /etc/ssl/server.pem
ssl_key_file: /etc/ssl/private/server.key
login_dir: /var/dovecot/login
login_executable: /usr/local/libexec/dovecot/imap-login
login_user: _dovecot
mail_location: maildir:~/Maildir
mbox_write_locks: fcntl
imap_client_workarounds: delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep
auth default:
   mechanisms: plain login
   passdb:
     driver: ldap
     args: /etc/dovecot-ldap.conf
   userdb:
     driver: passwd
   socket:
     type: listen
     client:
       path: /var/spool/postfix/private/auth
       mode: 432
       user: _postfix
       group: _postfix



/etc/dovecot-ldap.conf
hosts = xxx.xxx.xxx.xxx:389
#uris =
#dn =
#dnpass =
#sasl_bind = no
#sasl_mech =
#sasl_realm =
#sasl_authz_id =
#tls = no
auth_bind = yes
auth_bind_userdn = cn=%u,cn=Users,dc=koelewijn,dc=bz
#ldap_version = 2
base = dc=bz
#deref = never
#scope = subtree
#user_attrs = homeDirectory=home,uidNumber=uid,gidNumber=gid
#user_filter = (&(objectClass=posixAccount)(uid=%u))
#pass_attrs = uid=user,userPassword=password
#pass_attrs = uid=user,userPassword=password,homeDirectory=userdb_home,uidNumber=userdb_uid,gidNumber=userdb_gid
#pass_filter = (&(objectClass=posixAccount)(uid=%u))
#default_pass_scheme = CRYPT
#user_global_uid =
#user_global_gid =




More information about the dovecot mailing list