We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Ms365 SMTP email configuration issues

How Do I?

Neil Evans's avatar
Neil Evans
1,403 posts
3 years ago
Neil Evans's avatar Neil Evans

Hi… And yes I know.

First off, the error message I am getting back is:

Failed to authenticate password. Error: 550 5.7.67 TLS 1.0 and 1.1 are not supported by your organization. Please contact your administrator. [AM6P191CA0002.EURP191.PROD.OUTLOOK.COM]

It is interesting as the Web server sending it only has TLS 1.2 installed, and IT have confirmed that on their side they only have TLS 1.2 too.

What is more interesting, is I use exactly the same details and fire them off through a standalone PHPmailer setup on the same hosting environment, and that connects without issue. So the issue does appear to be related to EE’s implementation and this SMTP connection.

Note, I get the same error connecting from the currently live EE on EE3x and the updated version that is to be launched on EE6x

I know the settings to be correct based on PHPmailer, and I have the right settings within EE based on documentations and the EE-Uni article (and 100’s of sites I have previously setup with EE).

So does anyone have any experience of this specific error, or stupid gotchas you have seen before?

Thanks, N

       
Neil Evans's avatar
Neil Evans
1,403 posts
3 years ago
Neil Evans's avatar Neil Evans

Okay, found out… Outlook side they force TLS1.2 and Hosting side the force TLS1.2 however they use a different stream definition.

In: system/ee/legacy/libraries/email.php Line - Approx 1708

Change: $crypto = stream_socket_enable_crypto($this->_smtp_connect, true, STREAM_CRYPTO_METHOD_TLS_CLIENT);

To: $crypto = stream_socket_enable_crypto($this->_smtp_connect, true, STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT);

       
Thice1940's avatar
Thice1940
2 posts
2 years ago
Thice1940's avatar Thice1940

The error message you shared indicates that the SMTP connection is having problems with TLS 1.0 and 1.1 that are not supported by your duck life organization. It should be noted that the error message originates from the Outlook.com mail server.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.