Email et création de ticket

Installation & Configuration du logiciel
Nobodix
Gsup LEVEL 1
Messages : 19
Enregistré le : jeu. 12 oct. 2023 15:19

Voici la réponse du test du smtp


2023-10-12 14:19:28 Connection: opening to smtp.office365.com:587, timeout=30, options=array()
2023-10-12 14:19:28 Connection: opened
2023-10-12 14:19:28 SMTP INBOUND: "220 PR1P264CA0026.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 12 Oct 2023 14:19:27 +0000"
2023-10-12 14:19:28 SERVER -> CLIENT: 220 PR1P264CA0026.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 12 Oct 2023 14:19:27 +0000
2023-10-12 14:19:28 CLIENT -> SERVER: EHLO 192.168.1.36
2023-10-12 14:19:28 SMTP INBOUND: "250-PR1P264CA0026.outlook.office365.com Hello [80.11.26.112]"
2023-10-12 14:19:28 SMTP INBOUND: "250-SIZE 157286400"
2023-10-12 14:19:28 SMTP INBOUND: "250-PIPELINING"
2023-10-12 14:19:28 SMTP INBOUND: "250-DSN"
2023-10-12 14:19:28 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2023-10-12 14:19:28 SMTP INBOUND: "250-STARTTLS"
2023-10-12 14:19:28 SMTP INBOUND: "250-8BITMIME"
2023-10-12 14:19:28 SMTP INBOUND: "250-BINARYMIME"
2023-10-12 14:19:28 SMTP INBOUND: "250-CHUNKING"
2023-10-12 14:19:28 SMTP INBOUND: "250 SMTPUTF8"
2023-10-12 14:19:28 SERVER -> CLIENT: 250-PR1P264CA0026.outlook.office365.com Hello [80.11.26.112]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2023-10-12 14:19:28 CLIENT -> SERVER: STARTTLS
2023-10-12 14:19:28 SMTP INBOUND: "220 2.0.0 SMTP server ready"
2023-10-12 14:19:28 SERVER -> CLIENT: 220 2.0.0 SMTP server ready
2023-10-12 14:19:28 CLIENT -> SERVER: EHLO 192.168.1.36
2023-10-12 14:19:28 SMTP INBOUND: "250-PR1P264CA0026.outlook.office365.com Hello [80.11.26.112]"
2023-10-12 14:19:28 SMTP INBOUND: "250-SIZE 157286400"
2023-10-12 14:19:28 SMTP INBOUND: "250-PIPELINING"
2023-10-12 14:19:28 SMTP INBOUND: "250-DSN"
2023-10-12 14:19:28 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2023-10-12 14:19:28 SMTP INBOUND: "250-AUTH LOGIN XOAUTH2"
2023-10-12 14:19:28 SMTP INBOUND: "250-8BITMIME"
2023-10-12 14:19:28 SMTP INBOUND: "250-BINARYMIME"
2023-10-12 14:19:28 SMTP INBOUND: "250-CHUNKING"
2023-10-12 14:19:28 SMTP INBOUND: "250 SMTPUTF8"
2023-10-12 14:19:28 SERVER -> CLIENT: 250-PR1P264CA0026.outlook.office365.com Hello [80.11.26.112]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH LOGIN XOAUTH2250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2023-10-12 14:19:28 Auth method requested: XOAUTH2
2023-10-12 14:19:28 Auth methods available on the server: LOGIN,XOAUTH2

Fatal error: Uncaught League\OAuth2\Client\Provider\Exception\IdentityProviderException: Bad Request in /var/www/html/vendor/greew/oauth2-azure-provider/src/Provider/Azure.php:89 Stack trace: #0 /var/www/html/vendor/league/oauth2-client/src/Provider/AbstractProvider.php(726): Greew\OAuth2\Client\Provider\Azure->checkResponse() #1 /var/www/html/vendor/league/oauth2-client/src/Provider/AbstractProvider.php(635): League\OAuth2\Client\Provider\AbstractProvider->getParsedResponse() #2 /var/www/html/vendor/phpmailer/phpmailer/src/OAuth.php(113): League\OAuth2\Client\Provider\AbstractProvider->getAccessToken() #3 /var/www/html/vendor/phpmailer/phpmailer/src/OAuth.php(128): PHPMailer\PHPMailer\OAuth->getToken() #4 /var/www/html/vendor/phpmailer/phpmailer/src/SMTP.php(606): PHPMailer\PHPMailer\OAuth->getOauth64() #5 /var/www/html/vendor/phpmailer/phpmailer/src/PHPMailer.php(2205): PHPMailer\PHPMailer\SMTP->authenticate() #6 /var/www/html/admin/parameters/connector.php(544): PHPMailer\PHPMailer\PHPMailer->smtpConnect() #7 /var/www/html/admin/parameters.php(94): require('...') #8 /var/www/html/admin.php(22): include('...') #9 /var/www/html/main.php(494): include('...') #10 /var/www/html/index.php(413): require('...') #11 {main} thrown in /var/www/html/vendor/greew/oauth2-azure-provider/src/Provider/Azure.php on line 89
2023-10-12 14:19:28 CLIENT -> SERVER: QUIT
2023-10-12 14:19:28 SMTP INBOUND: "221 2.0.0 Service closing transmission channel"
2023-10-12 14:19:28 SERVER -> CLIENT: 221 2.0.0 Service closing transmission channel
2023-10-12 14:19:28 Connection: closed
Avatar du membre
Flox
Administrateur du site
Messages : 9049
Enregistré le : jeu. 21 juin 2012 19:00

L'origine du problème viens du connecteur SMTP, reprenez la documentation pour configurer votre connecteur :

https://doc.gestsup.fr/faq/#comment-con ... ar-xoauth2
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.58 | MariaDB: 11.3.2 | PHP: 8.3.6 | https://doc.gestsup.fr/
Nobodix
Gsup LEVEL 1
Messages : 19
Enregistré le : jeu. 12 oct. 2023 15:19

j'ai refait entièrement le SMTP via le tuto et voici la réponse :

2023-10-12 14:36:22 Connection: opening to smtp.office365.com:587, timeout=30, options=array()
2023-10-12 14:36:22 Connection: opened
2023-10-12 14:36:22 SMTP INBOUND: "220 PR1P264CA0024.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 12 Oct 2023 14:36:21 +0000"
2023-10-12 14:36:22 SERVER -> CLIENT: 220 PR1P264CA0024.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 12 Oct 2023 14:36:21 +0000
2023-10-12 14:36:22 CLIENT -> SERVER: EHLO 192.168.1.36
2023-10-12 14:36:22 SMTP INBOUND: "250-PR1P264CA0024.outlook.office365.com Hello [80.11.26.112]"
2023-10-12 14:36:22 SMTP INBOUND: "250-SIZE 157286400"
2023-10-12 14:36:22 SMTP INBOUND: "250-PIPELINING"
2023-10-12 14:36:22 SMTP INBOUND: "250-DSN"
2023-10-12 14:36:22 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2023-10-12 14:36:22 SMTP INBOUND: "250-STARTTLS"
2023-10-12 14:36:22 SMTP INBOUND: "250-8BITMIME"
2023-10-12 14:36:22 SMTP INBOUND: "250-BINARYMIME"
2023-10-12 14:36:22 SMTP INBOUND: "250-CHUNKING"
2023-10-12 14:36:22 SMTP INBOUND: "250 SMTPUTF8"
2023-10-12 14:36:22 SERVER -> CLIENT: 250-PR1P264CA0024.outlook.office365.com Hello [80.11.26.112]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2023-10-12 14:36:22 CLIENT -> SERVER: STARTTLS
2023-10-12 14:36:22 SMTP INBOUND: "220 2.0.0 SMTP server ready"
2023-10-12 14:36:22 SERVER -> CLIENT: 220 2.0.0 SMTP server ready
2023-10-12 14:36:22 CLIENT -> SERVER: EHLO 192.168.1.36
2023-10-12 14:36:22 SMTP INBOUND: "250-PR1P264CA0024.outlook.office365.com Hello [80.11.26.112]"
2023-10-12 14:36:22 SMTP INBOUND: "250-SIZE 157286400"
2023-10-12 14:36:22 SMTP INBOUND: "250-PIPELINING"
2023-10-12 14:36:22 SMTP INBOUND: "250-DSN"
2023-10-12 14:36:22 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2023-10-12 14:36:22 SMTP INBOUND: "250-AUTH LOGIN XOAUTH2"
2023-10-12 14:36:22 SMTP INBOUND: "250-8BITMIME"
2023-10-12 14:36:22 SMTP INBOUND: "250-BINARYMIME"
2023-10-12 14:36:22 SMTP INBOUND: "250-CHUNKING"
2023-10-12 14:36:22 SMTP INBOUND: "250 SMTPUTF8"
2023-10-12 14:36:22 SERVER -> CLIENT: 250-PR1P264CA0024.outlook.office365.com Hello [80.11.26.112]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH LOGIN XOAUTH2250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2023-10-12 14:36:22 Auth method requested: XOAUTH2
2023-10-12 14:36:22 Auth methods available on the server: LOGIN,XOAUTH2

Fatal error: Uncaught League\OAuth2\Client\Provider\Exception\IdentityProviderException: Bad Request in /var/www/html/vendor/greew/oauth2-azure-provider/src/Provider/Azure.php:89 Stack trace: #0 /var/www/html/vendor/league/oauth2-client/src/Provider/AbstractProvider.php(726): Greew\OAuth2\Client\Provider\Azure->checkResponse() #1 /var/www/html/vendor/league/oauth2-client/src/Provider/AbstractProvider.php(635): League\OAuth2\Client\Provider\AbstractProvider->getParsedResponse() #2 /var/www/html/vendor/phpmailer/phpmailer/src/OAuth.php(113): League\OAuth2\Client\Provider\AbstractProvider->getAccessToken() #3 /var/www/html/vendor/phpmailer/phpmailer/src/OAuth.php(128): PHPMailer\PHPMailer\OAuth->getToken() #4 /var/www/html/vendor/phpmailer/phpmailer/src/SMTP.php(606): PHPMailer\PHPMailer\OAuth->getOauth64() #5 /var/www/html/vendor/phpmailer/phpmailer/src/PHPMailer.php(2205): PHPMailer\PHPMailer\SMTP->authenticate() #6 /var/www/html/admin/parameters/connector.php(544): PHPMailer\PHPMailer\PHPMailer->smtpConnect() #7 /var/www/html/admin/parameters.php(94): require('...') #8 /var/www/html/admin.php(22): include('...') #9 /var/www/html/main.php(494): include('...') #10 /var/www/html/index.php(413): require('...') #11 {main} thrown in /var/www/html/vendor/greew/oauth2-azure-provider/src/Provider/Azure.php on line 89
2023-10-12 14:36:22 CLIENT -> SERVER: QUIT
2023-10-12 14:36:22 SMTP INBOUND: "221 2.0.0 Service closing transmission channel"
2023-10-12 14:36:22 SERVER -> CLIENT: 221 2.0.0 Service closing transmission channel
2023-10-12 14:36:22 Connection: closed
Avatar du membre
Flox
Administrateur du site
Messages : 9049
Enregistré le : jeu. 21 juin 2012 19:00

Vous pouvez désactiver temporairement les notifications automatique par mail via les paramètres généraux afin d'éviter le problème.

Ensuite pour l'Oauth2 merci de transmettre une impression écran de la configuration de votre connecteur SMTP et me donner accès en MP a la BAL configurée sur le connecteur SMTP.
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.58 | MariaDB: 11.3.2 | PHP: 8.3.6 | https://doc.gestsup.fr/
Avatar du membre
Flox
Administrateur du site
Messages : 9049
Enregistré le : jeu. 21 juin 2012 19:00

Pour désactiver les émissions de mails automatiques aller dans :

Administration > Paramètres > Généraux > Mail, puis décocher toutes les notifications automatiques.

Lorsque le problème avec connecteur SMTP sera résolu, vous pourrez de nouveau activer les notification automatiques.

Pour l'accès avec votre messagerie, j'attend votre MP avec l'adresse mail et le mot de passe.
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.58 | MariaDB: 11.3.2 | PHP: 8.3.6 | https://doc.gestsup.fr/
Avatar du membre
Flox
Administrateur du site
Messages : 9049
Enregistré le : jeu. 21 juin 2012 19:00

Pouvez-vous indiquer l'URL d'accès au serveur depuis votre navigateur sur votre poste ?
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.58 | MariaDB: 11.3.2 | PHP: 8.3.6 | https://doc.gestsup.fr/
Nobodix
Gsup LEVEL 1
Messages : 19
Enregistré le : jeu. 12 oct. 2023 15:19

C'est good pour moi.
Vous avez reçu par MP.

http://192.168.1.36/index.php?page=admi ... parameters

Est-ce ceci ?

Sinon êtes vous disponible par téléphone ? :?:
Avatar du membre
Flox
Administrateur du site
Messages : 9049
Enregistré le : jeu. 21 juin 2012 19:00

Pouvez-vous :

- vous connecter sur l'interface graphique du serveur
- puis lancer un navigateur
- puis se connecter sur portal.azure.com avec l'adresse mail a définir sur le connecteur
- puis se connecter sur l'application GestSup avec l'adresse http://localhost, toujours sur le serveur GestSup
- puis regénérer le token depuis le connecteur de l'application GestSup
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.58 | MariaDB: 11.3.2 | PHP: 8.3.6 | https://doc.gestsup.fr/
Nobodix
Gsup LEVEL 1
Messages : 19
Enregistré le : jeu. 12 oct. 2023 15:19

Sur l'application ? désolé je suis vraiment novice
Avatar du membre
Flox
Administrateur du site
Messages : 9049
Enregistré le : jeu. 21 juin 2012 19:00

J'ai mis a jour le post
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.58 | MariaDB: 11.3.2 | PHP: 8.3.6 | https://doc.gestsup.fr/
Répondre