[Date Prev][Date Next]
Dovecot can't connect to openldap over starttls
can anybody say something about my problem?
The mails in the bottom are from my discuss with the dovecot maillist.
-------- Originalnachricht --------
Betreff: Re: Dovecot can't connect to openldap over starttls
Datum: 2017-03-18 14:22
Empfänger: Tomas Habarta <firstname.lastname@example.org>
The serverlog of openldap with loglevel "any":
Note: openldap waits 1 Minute before he says "TLS negotiation failure"
after the connect.
and dovecot says direct "Connect error"
I've also delete the TLSCipherSuite from openldap.
Am 2017-03-18 14:01, schrieb Tomas Habarta:
Increase log level on server side as well to see what the server
You may remove anything in TLSCipherSuite for the purpose of testing
Hopefully anyone knowing OpenLDAP internals could help you analyse it
On 03/18/2017 01:31 PM, email@example.com wrote:
I've replicate the settings from ldapsearch to dovecot but no
To the certificate:
Yes it's a *.crt file but I have linked the *.pem file to it and
has read access to that file.
I have enabled the debugging in dovecot and have uploaded the output:
And the other site with ldapsearch:
I'm pretty sure that there is a problem with the sslhandshaking
openldap and dovecot, but I can't find the source of the problem.
One of the steps in the sslhandshaking is not success but in the
debugging output I can't find any line with a hit to it.
Am 2017-03-18 12:30, schrieb Tomas Habarta:
Well, if ldapsearch works, try to replicate its settings for dovecot
It's not obvious what settings ldapsearch uses, have a look at
client settings in /etc/openldap/ldap.conf, there may be something
slightly different way.
Also double check permissions for files used by dovecot, I mean
the file listed for tls_ca_cert_file as dovecot may not have an
I cannot see anything downright bad, just posted CA cert (which is
tested) is *.crt and your config mentions *.pem but I consider it's
Finally, I would recommend to enable debug option for dovecot's
debug_level = -1 (which logs all available) in your
to see what the library reports and work further on that.
You can compare with output from ldapsearch by adding -d-1 switch to
Hard to tell more at the moment.
On 03/18/2017 09:41 AM, firstname.lastname@example.org wrote:
I have also installed LE certs.
But nothing helps, I have double-checking all certs.
ldapsearch with -ZZ works see:
I have also uploaded the TLSCACertificateFile, maybe I have a
the merge of the two fiels:
And also I have uploaded my complete openldap configuration:
All other components can work and communicate with my openldap
The components are postfix, openxchange, apache (phpldapadmin).
My installated software is:
I hope you can find the issue.
Am 2017-03-17 22:48, schrieb Tomas Habarta:
been running Dovecot 2.2.27 against OpenLDAP 2.4.40 normally over
unix socket on the same machine, but tried over inet with STARTTLS
it's working ok...
I would suggest double-checking key/certs setup on OpenLDAP side;
the test I have used LE certs, utilizing following cn=config
olcTLSCertificateKeyFile contains private key
olcTLSCertificateFile contains certificate
olcTLSCACertificateFile contains both certs (DST Root CA X3
and Let's Encrypt Authority X3)
and used the same CA file in Dovecot's tls_ca_cert_file
Is ldapsearch working ok (-ZZ) and only Dovecot has troubles or
Hope that helps, good luck ;)
On 03/17/2017 04:27 PM, email@example.com wrote:
actually I'm trying to configure dovecot to access openldap for
My openldap is only allow access over "secure ldap".
The dovecot can communicate with the openldap server but there is
a failure in the sslhandshake.
Additional information you can find in the logs or in the dump
Also I have my ldap config from dovecot in the links below.
I have already created an bug reporting in the system of openldap
the answer was to get support from her.
The bugreportinglink from openldap:
I hope you can help me.