[Dovecot] Problems with Dovecot 1.1.16 and MS A.D.

Vinicius Abrahao vinnix.bsd at gmail.com
Wed Aug 12 17:33:39 EEST 2009


Hello dear fellows,

I'm trying to integrate my dovecot (version 1.1.16) but it's not working anyway.
The test that I'm doing is simple:

# telnet mail.unimetro.net 110
Trying 192.168.20.4...
Connected to mail.unimetro.net.
Escape character is '^]'.
+OK Unimetro Mailserver Ready.
user bindmail
+OK
pass xxxxxxx123
Connection closed by foreign host.

At /var/log/dovecot.log I see these lines:

dovecot: Aug 12 14:55:43 Info: dovecot v1.1.16 starting up
dovecot: Aug 12 14:59:46 Error: auth(default): re_encode_request new request is:
dovecot: Aug 12 14:59:46 Error: auth(default): re_encode_request new request is:
dovecot: Aug 12 14:59:46 Error: auth(default): re_encode_request new request is:
dovecot: Aug 12 15:02:46 Info: pop3-login: Disconnected: Inactivity
(auth failed, 1 attempts): method=PLAIN, rip=192.168.20.4,
lip=192.168.20.4, secured
dovecot: Aug 12 15:06:57 Error: auth(default): ldap(postmaster):
Connection appears to be hanging, reconnecting
dovecot: Aug 12 15:06:57 Error: auth(default): re_encode_request new request is:
dovecot: Aug 12 15:06:57 Error: auth(default): re_encode_request new request is:
dovecot: Aug 12 15:06:57 Error: auth(default): re_encode_request new request is:
dovecot: Aug 12 15:06:57 Error: auth(default): ldap(postmaster):
Connection appears to be hanging, reconnecting
dovecot: Aug 12 15:06:57 Error: auth(default): re_encode_request new request is:
dovecot: Aug 12 15:06:57 Error: auth(default): re_encode_request new request is:
dovecot: Aug 12 15:06:57 Error: auth(default): re_encode_request new request is:
dovecot: Aug 12 15:06:57 Error: auth(default):
ldap(bindmail,192.168.20.4):
ldap_search((&(ObjectClass=person)(sAMAccountName=bindmail)(memberOf=CN=UMAMAIL,OU=Groups,DC=unimetro,DC=net)))
failed: Operations error
dovecot: Aug 12 15:06:57 Error: auth(default): re_encode_request new request is:
dovecot: Aug 12 15:06:57 Error: auth(default): re_encode_request new request is:
dovecot: Aug 12 15:06:57 Error: auth(default): re_encode_request new request is:


Some times, with the same test these lines appears:

dovecot: Aug 11 10:31:04 Error: auth(default): re_encode_request new request is:
dovecot: Aug 11 10:31:04 Error: auth(default): re_encode_request new request is:
dovecot: Aug 11 10:31:04 Error: auth(default):
ldap(bindmail,192.168.20.4):
ldap_search((&(ObjectClass=person)(sAMAccountName=bindmail)
(memberOf=CN=UMAMAIL,OU=Groups,DC=unimetro,DC=net))) failed:
Operations error
dovecot: Aug 11 10:31:04 Error: auth(default): re_encode_request new request is:
dovecot: Aug 11 10:31:04 Error: auth(default): re_encode_request new request is:
dovecot: Aug 11 10:31:04 Error: auth(default): re_encode_request new request is:
dovecot: Aug 11 10:31:06 Info: pop3-login: Disconnected (auth failed,
1 attempts): user=<bindmail>, method=PLAIN, rip=192.168.20.4,
lip=192.168.20.4, secured
dovecot: Aug 11 10:34:10 Info: pop3-login: Disconnected: Inactivity
(auth failed, 1 attempts): user=<bindmail>, method=PLAIN,
rip=192.168.20.4, lip=192.168.20.4, secured
dovecot: Aug 11 10:35:17 Panic: auth(default): file aqueue.c: line 69
(aqueue_delete): assertion failed: (n < count)
dovecot: Aug 11 10:35:17 Error: child 1579 (auth) killed with signal 6
(core not dumped)
dovecot: Aug 11 10:38:17 Info: pop3-login: Disconnected: Inactivity
(auth failed, 1 attempts): method=PLAIN, rip=192.168.20.4,
lip=192.168.20.4, secured
dovecot: Aug 11 10:50:32 Error: auth(default): ber_get_next failed.
dovecot: Aug 11 10:50:32 Error: auth(default): LDAP: Connection lost
to LDAP server, reconnecting
dovecot: Aug 11 10:54:53 Error: auth(default): re_encode_request new request is:
dovecot: Aug 11 10:54:53 Error: auth(default): re_encode_request new request is:
dovecot: Aug 11 10:54:53 Error: auth(default): re_encode_request new request is:


Attached are my confs. I'm running at a FreeBSD 7.2 BOX.

# pkg_info | egrep "dovecot|postfix|ldap"
apr-ipv6-gdbm-db42-ldap-mysql-pgsql-1.3.8.1.3.9 Apache Portability Library
dovecot-1.1.16      Secure and compact IMAP and POP3 servers
dovecot-sieve-1.1.6 A Sieve plugin for the Dovecot 'deliver' LDA
openldap-client-2.4.17 Open source LDAP client implementation
postfix-2.6.2_1,1   A secure alternative to widely-used Sendmail

And I have success using ldapsearch to access the MS A.D with:
/usr/local/bin/ldapsearch -v -x -h 192.168.20.3  -D
"CN=bindmail,CN=Users,DC=unimetro,DC=net" -w xxxxx123 -b "dc=unimetro,
dc=net"

Thanks for your time!

Best regards,
Vinícius Schmidt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dovecot.conf
Type: application/octet-stream
Size: 1976 bytes
Desc: not available
Url : http://dovecot.org/pipermail/dovecot/attachments/20090812/002d9a50/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dovecot-ldap.conf
Type: application/octet-stream
Size: 387 bytes
Desc: not available
Url : http://dovecot.org/pipermail/dovecot/attachments/20090812/002d9a50/attachment-0001.obj 


More information about the dovecot mailing list