I can’t get outgoing emails working with my SugarCRM installation, and only the SMTP connect() failed message appears in the logs.
I installed my smtp server on smtp.gmail.com, email address, password, TLS, port 587. When I go to "Send test email", I get an error message.
I set the local hostname, installed openssl, set the hostname in config.php and included it as a referrer in config_override.php. I also tried setting SMPTDebug to 2 in SugarPHPMail.php, but this did not seem to have an effect.
When I run openssl s_client -starttls smtp -crlf -connect smtp.gmail.com:587 , the output includes Verify return code: 0 (ok) , and I don't know where to go from here. I can connect via telnet to this host and port and receive the SMTP 220 message as expected.
I also have an available exchange server, but I could not get it to work, and thought that Gmail would be more easily resolved.
I'm on Sugar 6.5.26 hosted on Linux (Debian, Raspbian).
source share