Tipo di autenticazione SMTP non riconosciuto con Office 365

Prova prima la tua configurazione utilizzando lo strumento openssl

  1. Codifica il tuo utente Office365
echo -n "la tua email qui " | openssl enc -base64
xxx_encoded_email_xxx
  1. Codifica la tua password
echo -n "la tua password qui" | openssl enc -base64
xxx_encoded_password_xxx
  1. Apri una connessione
openssl s_client -connect SMTP.office365.com:587 -starttls smtp -quiet -crlf
  1. Testa l’autenticazione
  • attendi il messaggio 250 SMTPUTF8
  • invia EHLO SMTP.office365.com
  • attendi la risposta
    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
    
  • invia AUTH LOGIN
  • attendi 334 VXNlcm5hbWU6
  • invia il tuo login utente codificato xxx_encoded_email_xxx
  • attendi 334 UGFzc3dvcmQ6
  • invia la tua password codificata xxx_encoded_password_xxx
  • attendi la risposta 235 2.7.0 Authentication successful