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