*********@pass:/usr/share/php/passbolt/bin$ sudo ./cake passbolt send_test_email --recipient=*********@*********.com
[sudo] password for *********:
____ __ ____
/ __ \____ _____ ____/ /_ ____ / / /_
/ /_/ / __ `/ ___/ ___/ __ \/ __ \/ / __/
/ ____/ /_/ (__ |__ ) /_/ / /_/ / / /
/_/ \__,_/____/____/_.___/\____/_/\__/
Open source password manager for teams
-------------------------------------------------------------------------------
Debug email shell
-------------------------------------------------------------------------------
Email configuration
-------------------------------------------------------------------------------
Host: smtp.office365.com
Port: 587
Username: *********@*********.com
Password: *********
TLS: true
Sending email from: *********@*********.com
Sending email to: *********@*********.com
-------------------------------------------------------------------------------
Trace
[220] AM9P195CA0017.outlook.office365.com Microsoft ESMTP MAIL Service ready at Sat, 27 Dec 2025 17:03:18 +0000 [08DE42E7B51B0BB3]
EHLO localhost
[250] AM9P195CA0017.outlook.office365.com Hello [*********]
[250] SIZE 157286400
[250] PIPELINING
[250] DSN
[250] ENHANCEDSTATUSCODES
[250] STARTTLS
[250] 8BITMIME
[250] BINARYMIME
[250] CHUNKING
[250] SMTPUTF8
STARTTLS
[220] 2.0.0 SMTP server ready
EHLO localhost
[250] AM9P195CA0017.outlook.office365.com Hello [*********]
[250] SIZE 157286400
[250] PIPELINING
[250] DSN
[250] ENHANCEDSTATUSCODES
[250] AUTH LOGIN XOAUTH2
[250] 8BITMIME
[250] BINARYMIME
[250] CHUNKING
[250] SMTPUTF8
AUTH LOGIN
[334] VXNlcm5hbWU6
*****
[334] UGFzc3dvcmQ6
Could not send the test email.
Error: SMTP server did not accept the password.
I’m having trouble setting SMTP AUTH with our Exchange Online subscription. The password is correct, I can log on to outlook.com with the same password.
I’ve read multiple tutorials and tried most of the settings. Authenticated SMTP is enabled for the sending account in the admin panel. And I’ve set:
SmtpClientAuthenticationDisabled : False
Does anybody have a step-by-step guide on how to get this working with the new MS Policies? Seems to me MS really wants me to use OAuth2.0 but Passbolt doesn’t support it.
/edit:
I’m pretty sure this is because of the Exchange Online settings and not Passbolt, but I have no idea how to set this up and decided to start a topic here for future reference.