Echec connexion SMTP XOauth2 Azure

Installation & Configuration du logiciel
massivity
Gsup LEVEL 2
Messages : 35
Enregistré le : mar. 27 sept. 2016 15:23

Bonjour,

Je me retrouve dans l'impossibilité de faire fonctionner le connecteur SMTP Xoauth2 Azure alors que l'IMAP xoauth2 Azure fonctionne parfaitement bien.

procédure suivi point par point, voici le retour log :

2023-01-26 12:19:21 Connection: opening to smtp.office365.com:587, timeout=5, options=array ( 'ssl' => array ( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true, ),)
2023-01-26 12:19:21 Connection: opened
2023-01-26 12:19:21 SMTP INBOUND: "220 FR3P281CA0098.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 26 Jan 2023 12:19:21 +0000"
2023-01-26 12:19:21 SERVER -> CLIENT: 220 FR3P281CA0098.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 26 Jan 2023 12:19:21 +0000
2023-01-26 12:19:21 CLIENT -> SERVER: EHLO hotline-helpdesk.support.ada.fr
2023-01-26 12:19:21 SMTP INBOUND: "250-FR3P281CA0098.outlook.office365.com Hello [91.121.33.213]"
2023-01-26 12:19:21 SMTP INBOUND: "250-SIZE 157286400"
2023-01-26 12:19:21 SMTP INBOUND: "250-PIPELINING"
2023-01-26 12:19:21 SMTP INBOUND: "250-DSN"
2023-01-26 12:19:21 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2023-01-26 12:19:21 SMTP INBOUND: "250-STARTTLS"
2023-01-26 12:19:21 SMTP INBOUND: "250-8BITMIME"
2023-01-26 12:19:21 SMTP INBOUND: "250-BINARYMIME"
2023-01-26 12:19:21 SMTP INBOUND: "250-CHUNKING"
2023-01-26 12:19:21 SMTP INBOUND: "250 SMTPUTF8"
2023-01-26 12:19:21 SERVER -> CLIENT: 250-FR3P281CA0098.outlook.office365.com Hello [91.121.33.213]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2023-01-26 12:19:21 CLIENT -> SERVER: STARTTLS
2023-01-26 12:19:21 SMTP INBOUND: "220 2.0.0 SMTP server ready"
2023-01-26 12:19:21 SERVER -> CLIENT: 220 2.0.0 SMTP server ready
2023-01-26 12:19:21 CLIENT -> SERVER: EHLO hotline-helpdesk.support.ada.fr
2023-01-26 12:19:21 SMTP INBOUND: "250-FR3P281CA0098.outlook.office365.com Hello [91.121.33.213]"
2023-01-26 12:19:21 SMTP INBOUND: "250-SIZE 157286400"
2023-01-26 12:19:21 SMTP INBOUND: "250-PIPELINING"
2023-01-26 12:19:21 SMTP INBOUND: "250-DSN"
2023-01-26 12:19:21 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2023-01-26 12:19:21 SMTP INBOUND: "250-AUTH LOGIN XOAUTH2"
2023-01-26 12:19:21 SMTP INBOUND: "250-8BITMIME"
2023-01-26 12:19:21 SMTP INBOUND: "250-BINARYMIME"
2023-01-26 12:19:21 SMTP INBOUND: "250-CHUNKING"
2023-01-26 12:19:21 SMTP INBOUND: "250 SMTPUTF8"
2023-01-26 12:19:21 SERVER -> CLIENT: 250-FR3P281CA0098.outlook.office365.com Hello [91.121.33.213]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH LOGIN XOAUTH2250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2023-01-26 12:19:21 Auth method requested: XOAUTH2
2023-01-26 12:19:21 Auth methods available on the server: LOGIN,XOAUTH2
2023-01-26 12:19:21 CLIENT -> SERVER: AUTH XOAUTH2 "SECRETICI"
2023-01-26 12:19:26 SMTP -> get_lines(): select timed-out in (5 sec)
2023-01-26 12:19:26 SERVER -> CLIENT:
2023-01-26 12:19:26 SMTP ERROR: AUTH command failed:
SMTP Error: Could not authenticate.
2023-01-26 12:19:26 CLIENT -> SERVER: QUIT
2023-01-26 12:19:28 SMTP INBOUND: "535 5.7.3 Authentication unsuccessful [FR3P281CA0098.DEUP281.PROD.OUTLOOK.COM 2023-01-26T12:19:28.710Z 08DAFF0E3EB8F3A8]"
2023-01-26 12:19:28 SERVER -> CLIENT: 535 5.7.3 Authentication unsuccessful [FR3P281CA0098.DEUP281.PROD.OUTLOOK.COM 2023-01-26T12:19:28.710Z 08DAFF0E3EB8F3A8]
2023-01-26 12:19:28 SMTP ERROR: QUIT command failed: 535 5.7.3 Authentication unsuccessful [FR3P281CA0098.DEUP281.PROD.OUTLOOK.COM 2023-01-26T12:19:28.710Z 08DAFF0E3EB8F3A8]
2023-01-26 12:19:28 Connection: closed
2023-01-26 12:19:28 Connection: opening to smtp.office365.com:587, timeout=5, options=array()
2023-01-26 12:19:28 Connection: opened
2023-01-26 12:19:28 SMTP INBOUND: "220 FR0P281CA0102.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 26 Jan 2023 12:19:28 +0000"
2023-01-26 12:19:28 SERVER -> CLIENT: 220 FR0P281CA0102.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 26 Jan 2023 12:19:28 +0000
2023-01-26 12:19:28 CLIENT -> SERVER: EHLO hotline-helpdesk.support.ada.fr
2023-01-26 12:19:28 SMTP INBOUND: "250-FR0P281CA0102.outlook.office365.com Hello [91.121.33.213]"
2023-01-26 12:19:28 SMTP INBOUND: "250-SIZE 157286400"
2023-01-26 12:19:28 SMTP INBOUND: "250-PIPELINING"
2023-01-26 12:19:28 SMTP INBOUND: "250-DSN"
2023-01-26 12:19:28 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2023-01-26 12:19:28 SMTP INBOUND: "250-STARTTLS"
2023-01-26 12:19:28 SMTP INBOUND: "250-8BITMIME"
2023-01-26 12:19:28 SMTP INBOUND: "250-BINARYMIME"
2023-01-26 12:19:28 SMTP INBOUND: "250-CHUNKING"
2023-01-26 12:19:28 SMTP INBOUND: "250 SMTPUTF8"
2023-01-26 12:19:28 SERVER -> CLIENT: 250-FR0P281CA0102.outlook.office365.com Hello [91.121.33.213]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2023-01-26 12:19:28 CLIENT -> SERVER: STARTTLS
2023-01-26 12:19:28 SMTP INBOUND: "220 2.0.0 SMTP server ready"
2023-01-26 12:19:28 SERVER -> CLIENT: 220 2.0.0 SMTP server ready
2023-01-26 12:19:28 CLIENT -> SERVER: EHLO hotline-helpdesk.support.ada.fr
2023-01-26 12:19:28 SMTP INBOUND: "250-FR0P281CA0102.outlook.office365.com Hello [91.121.33.213]"
2023-01-26 12:19:28 SMTP INBOUND: "250-SIZE 157286400"
2023-01-26 12:19:28 SMTP INBOUND: "250-PIPELINING"
2023-01-26 12:19:28 SMTP INBOUND: "250-DSN"
2023-01-26 12:19:28 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2023-01-26 12:19:28 SMTP INBOUND: "250-AUTH LOGIN XOAUTH2"
2023-01-26 12:19:28 SMTP INBOUND: "250-8BITMIME"
2023-01-26 12:19:28 SMTP INBOUND: "250-BINARYMIME"
2023-01-26 12:19:28 SMTP INBOUND: "250-CHUNKING"
2023-01-26 12:19:28 SMTP INBOUND: "250 SMTPUTF8"
2023-01-26 12:19:28 SERVER -> CLIENT: 250-FR0P281CA0102.outlook.office365.com Hello [91.121.33.213]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH LOGIN XOAUTH2250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2023-01-26 12:19:28 Auth method requested: XOAUTH2
2023-01-26 12:19:28 Auth methods available on the server: LOGIN,XOAUTH2
2023-01-26 12:19:28 CLIENT -> SERVER: AUTH XOAUTH2 "SECRETICI"
2023-01-26 12:19:33 SMTP -> get_lines(): select timed-out in (5 sec)
2023-01-26 12:19:33 SERVER -> CLIENT:
2023-01-26 12:19:33 SMTP ERROR: AUTH command failed:
SMTP Error: Could not authenticate.
2023-01-26 12:19:33 CLIENT -> SERVER: QUIT
2023-01-26 12:19:35 SMTP INBOUND: "535 5.7.3 Authentication unsuccessful [FR0P281CA0102.DEUP281.PROD.OUTLOOK.COM 2023-01-26T12:19:35.213Z 08DAFEF06252ED65]"
2023-01-26 12:19:35 SERVER -> CLIENT: 535 5.7.3 Authentication unsuccessful [FR0P281CA0102.DEUP281.PROD.OUTLOOK.COM 2023-01-26T12:19:35.213Z 08DAFEF06252ED65]
2023-01-26 12:19:35 SMTP ERROR: QUIT command failed: 535 5.7.3 Authentication unsuccessful [FR0P281CA0102.DEUP281.PROD.OUTLOOK.COM 2023-01-26T12:19:35.213Z 08DAFEF06252ED65]
2023-01-26 12:19:35 Connection: closed
Serveur: GestSup: 3.2.31 | Nginx : 1.20.2 | MariaDB : 10.5.10 | PHP : 8.1.13
Avatar du membre
Flox
Administrateur du site
Messages : 9442
Enregistré le : jeu. 21 juin 2012 19:00

Bonjour,

pouvez transmettre une impression écran du connecteur SMTP et essayer de regénérer le token en vérifiant que le compte Microsoft connecté au navigateur est bien celui associé à l'adresse configurée sur le connecteur.

Cdt
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.59 | MariaDB: 11.5.2 | PHP: 8.3.12 | https://doc.gestsup.fr/
massivity
Gsup LEVEL 2
Messages : 35
Enregistré le : mar. 27 sept. 2016 15:23

Voici le connecteur en PJ et les boites mails correspondent.

Cordialement,
Darren
Fichiers joints
MicrosoftTeams-image (2).png
MicrosoftTeams-image (2).png (133.38 Kio) Vu 1812 fois
Serveur: GestSup: 3.2.31 | Nginx : 1.20.2 | MariaDB : 10.5.10 | PHP : 8.1.13
Avatar du membre
Flox
Administrateur du site
Messages : 9442
Enregistré le : jeu. 21 juin 2012 19:00

Pourrez-vous activer la vérification SSL puis valider et tester le connecteur.
Merci de transmettre également une impression écran de votre page système.

Cdt
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.59 | MariaDB: 11.5.2 | PHP: 8.3.12 | https://doc.gestsup.fr/
massivity
Gsup LEVEL 2
Messages : 35
Enregistré le : mar. 27 sept. 2016 15:23

Avec SSL activé :

2023-01-26 12:44:17 Connection: opening to smtp.office365.com:587, timeout=5, options=array()
2023-01-26 12:44:17 Connection: opened
2023-01-26 12:44:17 SMTP INBOUND: "220 FR3P281CA0098.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 26 Jan 2023 12:44:16 +0000"
2023-01-26 12:44:17 SERVER -> CLIENT: 220 FR3P281CA0098.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 26 Jan 2023 12:44:16 +0000
2023-01-26 12:44:17 CLIENT -> SERVER: EHLO hotline-helpdesk.support.ada.fr
2023-01-26 12:44:17 SMTP INBOUND: "250-FR3P281CA0098.outlook.office365.com Hello [91.121.33.213]"
2023-01-26 12:44:17 SMTP INBOUND: "250-SIZE 157286400"
2023-01-26 12:44:17 SMTP INBOUND: "250-PIPELINING"
2023-01-26 12:44:17 SMTP INBOUND: "250-DSN"
2023-01-26 12:44:17 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2023-01-26 12:44:17 SMTP INBOUND: "250-STARTTLS"
2023-01-26 12:44:17 SMTP INBOUND: "250-8BITMIME"
2023-01-26 12:44:17 SMTP INBOUND: "250-BINARYMIME"
2023-01-26 12:44:17 SMTP INBOUND: "250-CHUNKING"
2023-01-26 12:44:17 SMTP INBOUND: "250 SMTPUTF8"
2023-01-26 12:44:17 SERVER -> CLIENT: 250-FR3P281CA0098.outlook.office365.com Hello [91.121.33.213]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2023-01-26 12:44:17 CLIENT -> SERVER: STARTTLS
2023-01-26 12:44:17 SMTP INBOUND: "220 2.0.0 SMTP server ready"
2023-01-26 12:44:17 SERVER -> CLIENT: 220 2.0.0 SMTP server ready
2023-01-26 12:44:17 CLIENT -> SERVER: EHLO hotline-helpdesk.support.ada.fr
2023-01-26 12:44:17 SMTP INBOUND: "250-FR3P281CA0098.outlook.office365.com Hello [91.121.33.213]"
2023-01-26 12:44:17 SMTP INBOUND: "250-SIZE 157286400"
2023-01-26 12:44:17 SMTP INBOUND: "250-PIPELINING"
2023-01-26 12:44:17 SMTP INBOUND: "250-DSN"
2023-01-26 12:44:17 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2023-01-26 12:44:17 SMTP INBOUND: "250-AUTH LOGIN XOAUTH2"
2023-01-26 12:44:17 SMTP INBOUND: "250-8BITMIME"
2023-01-26 12:44:17 SMTP INBOUND: "250-BINARYMIME"
2023-01-26 12:44:17 SMTP INBOUND: "250-CHUNKING"
2023-01-26 12:44:17 SMTP INBOUND: "250 SMTPUTF8"
2023-01-26 12:44:17 SERVER -> CLIENT: 250-FR3P281CA0098.outlook.office365.com Hello [91.121.33.213]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH LOGIN XOAUTH2250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2023-01-26 12:44:17 Auth method requested: XOAUTH2
2023-01-26 12:44:17 Auth methods available on the server: LOGIN,XOAUTH2
2023-01-26 12:44:17 CLIENT -> SERVER: AUTH XOAUTH2 "SCRET ICI"
2023-01-26 12:44:22 SMTP -> get_lines(): select timed-out in (5 sec)
2023-01-26 12:44:22 SERVER -> CLIENT:
2023-01-26 12:44:22 SMTP ERROR: AUTH command failed:
SMTP Error: Could not authenticate.
2023-01-26 12:44:22 CLIENT -> SERVER: QUIT
2023-01-26 12:44:23 SMTP INBOUND: "535 5.7.3 Authentication unsuccessful [FR3P281CA0098.DEUP281.PROD.OUTLOOK.COM 2023-01-26T12:44:23.865Z 08DAFF0E3EBA63D3]"
2023-01-26 12:44:23 SERVER -> CLIENT: 535 5.7.3 Authentication unsuccessful [FR3P281CA0098.DEUP281.PROD.OUTLOOK.COM 2023-01-26T12:44:23.865Z 08DAFF0E3EBA63D3]
2023-01-26 12:44:23 SMTP ERROR: QUIT command failed: 535 5.7.3 Authentication unsuccessful [FR3P281CA0098.DEUP281.PROD.OUTLOOK.COM 2023-01-26T12:44:23.865Z 08DAFF0E3EBA63D3]
2023-01-26 12:44:23 Connection: closed



Voici le presse papier du system =


Server :
- OS : Linux doe.ada.fr 5.4.0-137-generic #154-Ubuntu SMP Thu Jan 5 17:03:22 UTC 2023 x86_64 (Votre distribution n'est pas compatible, migrer vers Debian)
- Web Server : Nginx : 1.20.2 (HTTP/2.0)
- Database : MariaDB : 10.5.10-MariaDB-log (hotline_helpdesk 145)
- PHP : 8.1.13
- GestSup : 3.2.31 (32828 tickets / 0 équipements)
- DateTime : 2023-01-26 13:45:00 (Europe/Paris)
- Uploaded files : 1274.94MB
Config error :
- Droit d'écriture : Répertoire "upload/ticket" verrouillé (Ajouter les droits d'écriture sur ce repertoire, afin de pouvoir charger des pièces jointes à un ticket). Droit d'écriture : Répertoire "upload/logo" verrouillé (Ajouter les droits d'écriture sur ce repertoire, afin de pouvoir charger un logo). !!!Client :
- Mobile : No
- Browser : Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
- IP : 194.177.53.10
PHP parameters :
- file_uploads : On
- memory_limit : 512M
- upload_max_filesize : 50M
- post_max_size : 50M
- max_execution_time : 480s
- date.timezone : Europe/Paris
PHP extensions :
- php_curl : On
- php_fileinfo : On
- php_ftp : On
- php_gd : On
- php_iconv : On
- php_imap : On
- php_json : On
- php_ldap : Off !!!
- php_mbstring : On
- php_mcrypt : Off !!!
- php_openssl : On
- php_pdo_mysql : On
- php_xml : On
- php_zip : On
Security :
- HTTPS : On
- Apache version : Off
- Session time : PHP=1440s GestSup=24m
- File write : writeable !!!
- Install directory : removed
- SMTP : secure port
- IMAP : secure port

- Password policy : disable !!!
- Log : On
- Restrict IP : On
- Apache directory listing : Off
Components :
- Ace : 3.1.1
- Bootbox : 6.0.0
- Bootstrap : 4.5.3
- Bootstrap colorpicker : 3.4.0
- Bootstrap wysiwyg : 2.0.1
- Selectize : 0.15.2
- Fontawesome : 6.2.1
- FullCalendar : 6.0.0
- Highcharts : 10.2.1
- jQuery : 3.6.2
- jQuery Hotkeys : 0.2.0
- Moment : 2.29.4
- PHPmailer : 6.7.1
- PHPimap : 5.0.1
- PHPgettext : 1.0.12
- PHPmysqldump : 2.9
- Tempus Dominus : 5.1.2
- WOL : 2.1
Serveur: GestSup: 3.2.31 | Nginx : 1.20.2 | MariaDB : 10.5.10 | PHP : 8.1.13
Avatar du membre
Flox
Administrateur du site
Messages : 9442
Enregistré le : jeu. 21 juin 2012 19:00

Pouvez-vous transmettre une impression écran des autorisations de l'application azure ?
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.59 | MariaDB: 11.5.2 | PHP: 8.3.12 | https://doc.gestsup.fr/
massivity
Gsup LEVEL 2
Messages : 35
Enregistré le : mar. 27 sept. 2016 15:23

Voici :
Fichiers joints
MicrosoftTeams-image (3).png
MicrosoftTeams-image (3).png (40.86 Kio) Vu 1805 fois
Serveur: GestSup: 3.2.31 | Nginx : 1.20.2 | MariaDB : 10.5.10 | PHP : 8.1.13
Avatar du membre
Flox
Administrateur du site
Messages : 9442
Enregistré le : jeu. 21 juin 2012 19:00

Pouvez-vous transmettre une impression écran des protocoles autorisés sur cette bal depuis le centre de contrôle office 365 ?
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.59 | MariaDB: 11.5.2 | PHP: 8.3.12 | https://doc.gestsup.fr/
massivity
Gsup LEVEL 2
Messages : 35
Enregistré le : mar. 27 sept. 2016 15:23

Ils sont tous activé, nous n'avons pas de restrictions sur les protocols pour l'heure.
Fichiers joints
MicrosoftTeams-image (4).png
MicrosoftTeams-image (4).png (20.27 Kio) Vu 1802 fois
Serveur: GestSup: 3.2.31 | Nginx : 1.20.2 | MariaDB : 10.5.10 | PHP : 8.1.13
Avatar du membre
Flox
Administrateur du site
Messages : 9442
Enregistré le : jeu. 21 juin 2012 19:00

Tous semble correct, est il possible de me donner accès à cette bal en mp ou me créer une bal de test ?
Cdt
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.59 | MariaDB: 11.5.2 | PHP: 8.3.12 | https://doc.gestsup.fr/
Répondre