My sendmail server on CentOS 5 started to reject some connections with the following message logged:
error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure:s3_pkt.c:1092:SSL alert number 40
When I try to connect to it using openssl from CentOS 6 server I get the following error:
$ openssl s_client -starttls smtp -crlf -connect hostname.example.net:smtp
(...)
error:14082174:SSL routines:SSL3_CHECK_CERT_AND_ALGORITHM:dh key too small:s3_clnt.c:3331
(...)
Server Temp Key: DH, 512 bits
(...)
Mail on CentOS 6 server is temporarily rejected with Deferred: 403 4.7.0 TLS handshake failed
.
What to do to be able to send mail from CentOS 6 / RHEL 6 to CentOS6 / RHEL5 server?