Open Jonatanestam opened 7 years ago
Hi, @ApatheticCosmos
should you please look if https://github.com/salesagility/SuiteCRM/issues/2807#issuecomment-333846943 is working and fix the issue? sorry but i have very less experiences with protocols like TLS or others and you see as guy which is expert on email module 👍
Hello all. Was this issue got to the bottom of at some point?
I have trouble thinking its a phpmailer/tls issue as sending from other area of crm works with tls.
Sending a test from >> Admin >> Email settings = Works. Sending a test from >> Admin >> Outbound = Not Works.
I dont get it, the emails that worked still sent with TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256.
I'd lean over to the possiblity that the two sending mechanisms are coded differently?
If anyone can explain what the issue was I'd love to find out.
Thank you.
@b0br2019 which version are you running?
If you are really stumped, maybe you can try uncommenting these lines here:
https://github.com/salesagility/SuiteCRM/blob/master/include/SugarPHPMailer.php#L457
https://github.com/salesagility/SuiteCRM/blob/master/include/SugarPHPMailer.php#L497-L502
This will put some more information in your logs to help you troubleshoot, and compare the two different tests.
You need to raise your log level to debug
to see that (or, a cleaner solution I prefer myself, change those debug
in the code to fatal
to ensure they show in the logs, without too much other stuff in there).
My issue was nothing to do with TLS, although I was thrown off as I use TLS and was likley a bug in older version 7.6.x where smtp port field in outbound email profile was being validated/verified/adjusted to include a comma for 4 digit ports when saved. This issue went away in 7.8.x and I'm now using 7.10.22 LTS with no such issue.
Issue
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.
Expected Behavior
Send mails when TLS is on.
Actual Behavior
SuiteCRM error. Error:SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Mail log using SSL
Mail log using TLS
Mail log using Plain
Possible Fix
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 fineContext
I can´t send emails.
Your Environment