Unable to Receive Outgoing Email Running SugarCRM 6.5 Self-Service

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).

+5
source share
1 answer

Good. I found a solution looking for the "Allow less secure applications" option in Gmail.

I have two-step authentication enabled in my Gmail account, which will obviously complicate the situation, but, in my opinion, I didn’t succeed. So I needed to use the password for the application , not my regular Gmail password.

Once I created the password for the app on Google ( https://myaccount.google.com/apppasswords ) and connected it to the SugarCRM settings, it worked perfectly. D'o!

+3
source

Source: https://habr.com/ru/post/1269872/


All Articles