microsoft 365 smtp wont authenticate but imap works
Posted: Mon Jul 08, 2024 3:26 am
Version of script: 3.4.5
Hosting company: ovh
What terms did you try when SEARCHING for a solution:
SMTP ERROR: Password command failed: 535 Incorrect authentication data
Write your message below:
I've followed this guide https://www.hesk.com/knowledgebase/?article=110
I am trying to setup OAuth for microsoft 365 and connecting fine over IMAP. When I set hesk to use SMTP server, and use the following I get an auth error:
SMTP Host: smtp.office365.com
SMTP Port: 587
Encryption: TLS
Do not validate server certificates: checked
Authentication method: OAuth
Username: my email
Hosting company: ovh
What terms did you try when SEARCHING for a solution:
SMTP ERROR: Password command failed: 535 Incorrect authentication data
Write your message below:
I've followed this guide https://www.hesk.com/knowledgebase/?article=110
I am trying to setup OAuth for microsoft 365 and connecting fine over IMAP. When I set hesk to use SMTP server, and use the following I get an auth error:
SMTP Host: smtp.office365.com
SMTP Port: 587
Encryption: TLS
Do not validate server certificates: checked
Authentication method: OAuth
Username: my email
Code: Select all
2024-07-08 03:19:27 SERVER -> CLIENT: 220------.com ESMTP Exim 4.97.1 #2 Sun, 07 Jul 2024 22:19:27 -0500
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.
2024-07-08 03:19:27 CLIENT -> SERVER: EHLO --------.com
2024-07-08 03:19:27 SERVER -> CLIENT: ----------.com Hello -----vps.ovh.us [15.----]
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-PIPECONNECT
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP
2024-07-08 03:19:27 CLIENT -> SERVER: STARTTLS
2024-07-08 03:19:27 SERVER -> CLIENT: 220 TLS go ahead
2024-07-08 03:19:27 CLIENT -> SERVER: EHLO -------.com
2024-07-08 03:19:27 SERVER -> CLIENT: -------.com Hello -----.vps.ovh.us [15.----]
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-PIPECONNECT
250-AUTH PLAIN LOGIN
250 HELP
2024-07-08 03:19:27 CLIENT -> SERVER: AUTH LOGIN
2024-07-08 03:19:27 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2024-07-08 03:19:27 CLIENT -> SERVER: [credentials hidden]
2024-07-08 03:19:27 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2024-07-08 03:19:27 CLIENT -> SERVER: [credentials hidden]
2024-07-08 03:19:29 SERVER -> CLIENT: 535 Incorrect authentication data
2024-07-08 03:19:29 SMTP ERROR: Password command failed: 535 Incorrect authentication data