Type d'authentification SMTP non reconnu avec Office 365

Testez d’abord votre configuration en utilisant l’outil openssl

  1. Encodez votre utilisateur Office365
echo -n "votre email ici " | openssl enc -base64
xxx_encoded_email_xxx
  1. Encodez votre mot de passe
echo -n "votre mot de passe ici" | openssl enc -base64
xxx_encoded_password_xxx
  1. Ouvrez une connexion
openssl s_client -connect SMTP.office365.com:587 -starttls smtp -quiet -crlf
  1. Testez l’authentification
  • Attendez le message 250 SMTPUTF8
  • Envoyez EHLO SMTP.office365.com
  • Attendez la réponse
    250-PR3P189CA0029.outlook.office365.com Hello [88.138.0.68]
    250-SIZE 157286400
    250-PIPELINING
    250-DSN
    250-ENHANCEDSTATUSCODES
    250-AUTH LOGIN XOAUTH2
    250-8BITMIME
    250-BINARYMIME
    250-CHUNKING
    250 SMTPUTF8
    
  • Envoyez AUTH LOGIN
  • Attendez 334 VXNlcm5hbWU6
  • Envoyez votre identifiant utilisateur encodé xxx_encoded_email_xxx
  • Attendez 334 UGFzc3dvcmQ6
  • Envoyez votre mot de passe encodé xxx_encoded_password_xxx
  • Attendez la réponse 235 2.7.0 Authentication successful