I can't send emails with TLS

Hello.
SuiteCRM can’t send emails when TLS is on.
I use my own SMTP server. Perhaps that the problem isn’t my server config, because I able to send mails with Outlook, Android (default mail app) and iOs (default mail app).
When TLS is off all works fine. :huh:

SuiteCRM error.
Error:SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

Mail log using SSL

setting up TLS connection from localhost.localdomain[127.0.0.1]
TLS cipher list "aNULL:-aNULL:ALL:!EXPORT:!LOW:+RC4:@STRENGTH"
SSL_accept:before/accept initialization
SSL_accept:SSLv3 read client hello A
SSL_accept:SSLv3 write server hello A
SSL_accept:SSLv3 write certificate A
SSL_accept:SSLv3 write key exchange A
SSL_accept:SSLv3 write server done A
SSL_accept:SSLv3 flush data
SSL_accept:SSLv3 read client key exchange A
SSL_accept:SSLv3 read finished A
SSL_accept:SSLv3 write session ticket A
SSL_accept:SSLv3 write change cipher spec A
SSL_accept:SSLv3 write finished A
SSL_accept:SSLv3 flush data
Anonymous TLS connection established from localhost.localdomain
TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
lost connection after STARTTLS from localhost.localdomain
disconnect from localhost.localdomain[127.0.0.1]
TLS cipher list "aNULL:-aNULL:ALL:!EXPORT:!LOW:+RC4:@STRENGTH"

Mail log using TLS

setting up TLS connection from localhost.localdomain[127.0.0.1]
AAC localhost.localdomain[127.0.0.1]: TLS cipher list "aNULL:-aNULL:ALL:!EXPORT:!LOW:+RC4:@STRENGTH"
AAC SSL_accept:before/accept initialization
AAC SSL_accept:SSLv3 read client hello A
AAC SSL_accept:SSLv3 write server hello A
AAC write to 7F970B9B9050 [7F970B9D9C50] (4096 bytes => 4096 (0x1000))
AAC SSL_accept:SSLv3 write certificate A
AAC SSL_accept:SSLv3 write key exchange A
AAC SSL_accept:SSLv3 write server done A
AAC write to 7F970B9B9050 [7F970B9D9C50] (1734 bytes => 1734 (0x6C6))
AAC SSL_accept:SSLv3 flush data
AAC Anonymous TLS connection established from localhost.localdomain[127.0.0.1]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
AAC lost connection after STARTTLS from localhost.localdomain[127.0.0.1]
AAC disconnect from localhost.localdomain[127.0.0.1]

Mail log using Plain

connect from localhost.localdomain[127.0.0.1]
disconnect from localhost.localdomain[127.0.0.1]

If I comment out these lines of code on /etc/postfix/main.cf

smtpd_use_tls = yes
ssmtpd_tls_auth_only = yes
ssmtpd_tls_security_level = encrypt
ssmtpd_tls_cert_file = /xx/xxxx/MySuiteCRMDomain_com.crt
ssmtpd_tls_key_file = /xxx/xx/server.key
ssmtpd_tls_CAfile = /xxx/xxx/cacert.pem

All works fine :dry:


Additional info.

SuiteCRM Version: 7.7.8 Sugar Versión 6.5.24 (Build 509)
Environment: Apache/2.4.6 (CentOS) PHP/5.6.22 mod_wsgi/3.4 Python/2.7.5
Operating System: CentOS Linux release 7.2.1511 (Core) x86_64 x86_64 x86_64 GNU/Linux
Kernel: 3.10.0-123.el7.x86_64