[Dovecot] Dovecot-ldap doesnt reconnect if openldap restarts
Hi Guys
I have recently migrated an existing courier install to dovecot + openldap and think dovecot is wonderfull. Great work!
However, I am seeing that dovecot-ldap doesnt reconnect if openldap restarts. Is there an options I am missing or is this a know problem?As I am using dovecot for sasl with postfix and pop/imap this basically completely stops my mail sytem...
Thanks in Advance
--
Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc
On Fri, 2006-11-03 at 16:35 +0200, Peter Nixon wrote:
However, I am seeing that dovecot-ldap doesnt reconnect if openldap restarts. Is there an options I am missing or is this a know problem?As I am using dovecot for sasl with postfix and pop/imap this basically completely stops my mail sytem...
What messages do you see in Dovecot's log files? As far as I know the reconnection code should be working, at least for most people.
On Sat 04 Nov 2006 13:16, Timo Sirainen wrote:
On Fri, 2006-11-03 at 16:35 +0200, Peter Nixon wrote:
However, I am seeing that dovecot-ldap doesnt reconnect if openldap restarts. Is there an options I am missing or is this a know problem?As I am using dovecot for sasl with postfix and pop/imap this basically completely stops my mail sytem...
What messages do you see in Dovecot's log files? As far as I know the reconnection code should be working, at least for most people.
Hi Timo
Here is postfix's log after ldap is restarted:
Nov 7 11:30:45 padme postfix/smtpd[30935]: TLS connection established from unknown[x.x.x.x]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits) Nov 7 11:30:56 padme postfix/smtpd[30935]: warning: unknown[x.x.x.x]: SASL PLAIN authentication failed: Connection lost to authentication server Nov 7 11:30:56 padme postfix/smtpd[30935]: lost connection after AUTH from unknown[x.x.x.x] Nov 7 11:30:56 padme postfix/smtpd[30935]: disconnect from unknown[x.x.x.x]
Here is the log from kmail:
Sending failed: Your SMTP server does not support PLAIN. Choose a different authentication method. The server responded: "5.7.0 Error: authentication failed: Connection lost to authentication server" The message will stay in the 'outbox' folder until you either fix the problem (e.g. a broken address) or remove the message from the 'outbox' folder.
Restarting dovecot after restarting ldap solves this problem. (Postfix does not need to be restarted)
Regards
--
Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc
On Tue 07 Nov 2006 13:35, Peter Nixon wrote:
On Sat 04 Nov 2006 13:16, Timo Sirainen wrote:
On Fri, 2006-11-03 at 16:35 +0200, Peter Nixon wrote:
However, I am seeing that dovecot-ldap doesnt reconnect if openldap restarts. Is there an options I am missing or is this a know problem?As I am using dovecot for sasl with postfix and pop/imap this basically completely stops my mail sytem...
What messages do you see in Dovecot's log files? As far as I know the reconnection code should be working, at least for most people.
Hi Timo
Here is postfix's log after ldap is restarted:
Nov 7 11:30:45 padme postfix/smtpd[30935]: TLS connection established from unknown[x.x.x.x]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits) Nov 7 11:30:56 padme postfix/smtpd[30935]: warning: unknown[x.x.x.x]: SASL PLAIN authentication failed: Connection lost to authentication server Nov 7 11:30:56 padme postfix/smtpd[30935]: lost connection after AUTH from unknown[x.x.x.x] Nov 7 11:30:56 padme postfix/smtpd[30935]: disconnect from unknown[x.x.x.x]
Here is the log from kmail:
Sending failed: Your SMTP server does not support PLAIN. Choose a different authentication method. The server responded: "5.7.0 Error: authentication failed: Connection lost to authentication server" The message will stay in the 'outbox' folder until you either fix the problem (e.g. a broken address) or remove the message from the 'outbox' folder.
Restarting dovecot after restarting ldap solves this problem. (Postfix does not need to be restarted)
Oh. And prior to the postfix errors there is:
Nov 7 11:30:20 padme dovecot: auth(default): LDAP: ldap_result() failed: Can't contact LDAP server Nov 7 11:30:20 padme dovecot: auth(default): LDAP: Can't connect to server: 127.0.0.1 Nov 7 11:30:21 padme dovecot: auth(default): dovecot-auth: sbind.c:75: ldap_simple_bind: Assertion `ld != ((void *)0)' failed. Nov 7 11:30:21 padme dovecot: child 22172 (auth) killed with signal 6
Cheers
--
Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc
On Tue, 2006-11-07 at 13:43 +0200, Peter Nixon wrote:
On Tue 07 Nov 2006 13:35, Peter Nixon wrote:
On Sat 04 Nov 2006 13:16, Timo Sirainen wrote:
On Fri, 2006-11-03 at 16:35 +0200, Peter Nixon wrote:
However, I am seeing that dovecot-ldap doesnt reconnect if openldap restarts. Is there an options I am missing or is this a know problem?As I am using dovecot for sasl with postfix and pop/imap this basically completely stops my mail sytem...
Do you use auth_bind? I fixed reconnection issues related to that in rc12.
Nov 7 11:30:21 padme dovecot: auth(default): dovecot-auth: sbind.c:75: ldap_simple_bind: Assertion `ld != ((void *)0)' failed.
I think I fixed this also in rc12..
On Tue 07 Nov 2006 14:47, Timo Sirainen wrote:
On Tue, 2006-11-07 at 13:43 +0200, Peter Nixon wrote:
On Tue 07 Nov 2006 13:35, Peter Nixon wrote:
On Sat 04 Nov 2006 13:16, Timo Sirainen wrote:
On Fri, 2006-11-03 at 16:35 +0200, Peter Nixon wrote:
However, I am seeing that dovecot-ldap doesnt reconnect if openldap restarts. Is there an options I am missing or is this a know problem?As I am using dovecot for sasl with postfix and pop/imap this basically completely stops my mail sytem...
Do you use auth_bind? I fixed reconnection issues related to that in rc12.
Yes. I do.
Nov 7 11:30:21 padme dovecot: auth(default): dovecot-auth: sbind.c:75: ldap_simple_bind: Assertion `ld != ((void *)0)' failed.
I think I fixed this also in rc12..
ok. I will deploy it tonight and see if it's fixed.
--
Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc
On Tue 07 Nov 2006 14:47, Timo Sirainen wrote:
On Tue, 2006-11-07 at 13:43 +0200, Peter Nixon wrote:
On Tue 07 Nov 2006 13:35, Peter Nixon wrote:
On Sat 04 Nov 2006 13:16, Timo Sirainen wrote:
On Fri, 2006-11-03 at 16:35 +0200, Peter Nixon wrote:
However, I am seeing that dovecot-ldap doesnt reconnect if openldap restarts. Is there an options I am missing or is this a know problem?As I am using dovecot for sasl with postfix and pop/imap this basically completely stops my mail sytem...
Do you use auth_bind? I fixed reconnection issues related to that in rc12.
Nov 7 11:30:21 padme dovecot: auth(default): dovecot-auth: sbind.c:75: ldap_simple_bind: Assertion `ld != ((void *)0)' failed.
I think I fixed this also in rc12..
Yep. rc12 does appear to fix the problem. If it should re-occur I will let you know :-)
Cheers
--
Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc
participants (2)
-
Peter Nixon
-
Timo Sirainen