Setting up SMTP SugarCRM 14.0.0 Build 233 Sell Advanced cloud hosted

Good day,

My SugarCRM has recently been moved from onsite to the cloud and I am having issues getting the email setup with Microsoft Office 365.

I have setup the required Entra ID App and setup the SMTP settings but SugarCRM fails to connect to the server.

I have done some research and think its because Authenticated SMTP is turned off on my Office 365, I can't enable this so what can I do to send email to Office 365?

Parents
  • Error

    Fri Jun 28 07:50:05 2024 [11095][1][FATAL] PHPMailer: debug level 4; message: SMTP INBOUND: "535 5.7.139 Authentication unsuccessful, SmtpClientAuthentication is disabled for the Tenant. Visit aka.ms/smtp_auth_disabled for more information. [LO4P123CA0448.GBRP123.PROD.OUTLOOK.COM 2024-06-28T07:50:05.935Z 08DC970EF5D871BE]"

    Fri Jun 28 07:50:05 2024 [11095][1][FATAL] PHPMailer: debug level 2; message: SERVER -> CLIENT: 535 5.7.139 Authentication unsuccessful, SmtpClientAuthentication is disabled for the Tenant. Visit aka.ms/smtp_auth_disabled for more information. [LO4P123CA0448.GBRP123.PROD.OUTLOOK.COM 2024-06-28T07:50:05.935Z 08DC970EF5D871BE]

    Fri Jun 28 07:50:05 2024 [11095][1][FATAL] SMTP -> ERROR: AUTH command failed. Reply: 5.7.139 Authentication unsuccessful, SmtpClientAuthentication is disabled for the Tenant. Visit aka.ms/smtp_auth_disabled for more information. [LO4P123CA0448.GBRP123.PROD.OUTLOOK.COM 2024-06-28T07:50:05.935Z 08DC970EF5D871BE]
    Code: 535
    Fri Jun 28 07:50:05 2024 [11095][1][FATAL] PHPMailer: debug level 1; message: SMTP ERROR: AUTH command failed: 535 5.7.139 Authentication unsuccessful, SmtpClientAuthentication is disabled for the Tenant. Visit aka.ms/smtp_auth_disabled for more information. [LO4P123CA0448.GBRP123.PROD.OUTLOOK.COM 2024-06-28T07:50:05.935Z 08DC970EF5D871BE]

    Fri Jun 28 07:50:05 2024 [11095][1][FATAL] PHPMailer: debug level 4; message: SMTP Error: Could not authenticate.
    Fri Jun 28 07:50:05 2024 [11095][1][FATAL] PHPMailer: debug level 1; message: CLIENT -> SERVER: QUIT

    Fri Jun 28 07:50:05 2024 [11095][1][FATAL] PHPMailer: debug level 4; message: SMTP INBOUND: "221 2.0.0 Service closing transmission channel"
    Fri Jun 28 07:50:05 2024 [11095][1][FATAL] PHPMailer: debug level 2; message: SERVER -> CLIENT: 221 2.0.0 Service closing transmission channel

    Fri Jun 28 07:50:05 2024 [11095][1][FATAL] PHPMailer: debug level 3; message: Connection: closed
    Fri Jun 28 07:50:05 2024 [11095][1][FATAL] MailerException - @(SmtpMailer.php:287 [6]) - Failed to connect to outbound SMTP Mail Server: The outbound mail server selected for the mail account you are using is invalid. Check the settings or select a different mail server for the mail account.

  • Hi  ,

    You are correct that SMTP Auth needs to be enabled. For clients of ours where they want to configure Sugar with Microsoft 365, they have a specific MS account dedicated for sending email from Sugar. All normal users have SMTP Auth disabled but the tenant and dedicated account have it enabled. 

    Chris

Reply Children