Testez d’abord votre configuration en utilisant l’outil openssl
- Encodez votre utilisateur Office365
echo -n "votre email ici " | openssl enc -base64
xxx_encoded_email_xxx
- Encodez votre mot de passe
echo -n "votre mot de passe ici" | openssl enc -base64
xxx_encoded_password_xxx
- Ouvrez une connexion
openssl s_client -connect SMTP.office365.com:587 -starttls smtp -quiet -crlf
- 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