Email et création de ticket
Merci d'indiquer la configuration de votre tâche planifiée ?
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.59 | MariaDB: 11.5.2 | PHP: 8.3.12 | https://doc.gestsup.fr/
Pour automatiser la relève de la BAL, une tâche planifiée sur le système d'exploitation doit être créer :
Votre serveur est il publié sur Internet ?
Code : Tout sélectionner
more /etc/crontab
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.59 | MariaDB: 11.5.2 | PHP: 8.3.12 | https://doc.gestsup.fr/
Alors déja modifier la fréquence de relève à 5 minutes
remplacer :
par :
puis recharger la configuration
remplacer :
Code : Tout sélectionner
*/1
Code : Tout sélectionner
*/5
Code : Tout sélectionner
service cron restart
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.59 | MariaDB: 11.5.2 | PHP: 8.3.12 | https://doc.gestsup.fr/
Ensuite exécuter la commande suivante et indiquer le résultat :
Code : Tout sélectionner
php /var/www/html/mail2ticket.php
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.59 | MariaDB: 11.5.2 | PHP: 8.3.12 | https://doc.gestsup.fr/
GESTSUP IMAP CONNECTOR v3.2.38
DATE : 2023-10-12 14:17:43
SERVER : outlook.office365.com
MODE : single
AUTHENTICATION TYPE : oauth_azure
MAILBOX : support@westlink.fr
OAUTH SINGLE GENERATE ACCESS TOKEN : eyJ0eXAiOiJKV1QiLCJub25j*****************
OAUTH SINGLE UPDATE REFRESH TOKEN : 0.ARAAjgmwVtAcm0WHUvGYly*****************
CONNEXION : OK
UNSEEN MAIL : 1
[support@westlink.fr] [mail 1] mail data : subject="test ok ?" from="alexis.dardot@techcity.fr" date="2023-10-12 14:16:26" body_type="html"
[support@westlink.fr] [mail 1] find gestsup user id : find 39 for address alexis.dardot@techcity.fr
[support@westlink.fr] [mail 1] create new ticket
[support@westlink.fr] [mail 1] ticket created : #2079
SMTP SERVER :
DEBUG : Images base64 detected conversion (gestsup_logo)
2023-10-12 14:17:44 Connection: opening to smtp.office365.com:587, timeout=30, options=array()
2023-10-12 14:17:44 Connection: opened
2023-10-12 14:17:44 SMTP INBOUND: "220 PR1P264CA0116.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 12 Oct 2023 14:17:43 +0000"
2023-10-12 14:17:44 SERVER -> CLIENT: 220 PR1P264CA0116.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 12 Oct 2023 14:17:43 +0000
2023-10-12 14:17:44 CLIENT -> SERVER: EHLO 192.168.1.36
2023-10-12 14:17:44 SMTP INBOUND: "250-PR1P264CA0116.outlook.office365.com Hello [80.11.26.112]"
2023-10-12 14:17:44 SMTP INBOUND: "250-SIZE 157286400"
2023-10-12 14:17:44 SMTP INBOUND: "250-PIPELINING"
2023-10-12 14:17:44 SMTP INBOUND: "250-DSN"
2023-10-12 14:17:44 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2023-10-12 14:17:44 SMTP INBOUND: "250-STARTTLS"
2023-10-12 14:17:44 SMTP INBOUND: "250-8BITMIME"
2023-10-12 14:17:44 SMTP INBOUND: "250-BINARYMIME"
2023-10-12 14:17:44 SMTP INBOUND: "250-CHUNKING"
2023-10-12 14:17:44 SMTP INBOUND: "250 SMTPUTF8"
2023-10-12 14:17:44 SERVER -> CLIENT: 250-PR1P264CA0116.outlook.office365.com Hello [80.11.26.112]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2023-10-12 14:17:44 CLIENT -> SERVER: STARTTLS
2023-10-12 14:17:44 SMTP INBOUND: "220 2.0.0 SMTP server ready"
2023-10-12 14:17:44 SERVER -> CLIENT: 220 2.0.0 SMTP server ready
2023-10-12 14:17:44 CLIENT -> SERVER: EHLO 192.168.1.36
2023-10-12 14:17:44 SMTP INBOUND: "250-PR1P264CA0116.outlook.office365.com Hello [80.11.26.112]"
2023-10-12 14:17:44 SMTP INBOUND: "250-SIZE 157286400"
2023-10-12 14:17:44 SMTP INBOUND: "250-PIPELINING"
2023-10-12 14:17:44 SMTP INBOUND: "250-DSN"
2023-10-12 14:17:44 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2023-10-12 14:17:44 SMTP INBOUND: "250-AUTH LOGIN XOAUTH2"
2023-10-12 14:17:44 SMTP INBOUND: "250-8BITMIME"
2023-10-12 14:17:44 SMTP INBOUND: "250-BINARYMIME"
2023-10-12 14:17:44 SMTP INBOUND: "250-CHUNKING"
2023-10-12 14:17:44 SMTP INBOUND: "250 SMTPUTF8"
2023-10-12 14:17:44 SERVER -> CLIENT: 250-PR1P264CA0116.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:17:44 Auth method requested: XOAUTH2
2023-10-12 14:17:44 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/vendor/phpmailer/phpmailer/src/PHPMailer.php(2019): PHPMailer\PHPMailer\PHPMailer->smtpConnect() #7 /var/www/html/vendor/phpmailer/phpmailer/src/PHPMailer.php(1678): PHPMailer\PHPMailer\PHPMailer->smtpSend() #8 /var/www/html/vendor/phpmailer/phpmailer/src/PHPMailer.php(1516): PHPMailer\PHPMailer\PHPMailer->postSend() #9 /var/www/html/core/mail.php(909): PHPMailer\PHPMailer\PHPMailer->send() #10 /var/www/html/core/imap_oauth.php(659): include('...') #11 /var/www/html/mail2ticket.php(165): require('...') #12 {main} thrown in /var/www/html/vendor/greew/oauth2-azure-provider/src/Provider/Azure.php on line 89
2023-10-12 14:17:44 CLIENT -> SERVER: QUIT
2023-10-12 14:17:44 SMTP INBOUND: "221 2.0.0 Service closing transmission channel"
2023-10-12 14:17:44 SERVER -> CLIENT: 221 2.0.0 Service closing transmission channel
2023-10-12 14:17:44 Connection: closed
DATE : 2023-10-12 14:17:43
SERVER : outlook.office365.com
MODE : single
AUTHENTICATION TYPE : oauth_azure
MAILBOX : support@westlink.fr
OAUTH SINGLE GENERATE ACCESS TOKEN : eyJ0eXAiOiJKV1QiLCJub25j*****************
OAUTH SINGLE UPDATE REFRESH TOKEN : 0.ARAAjgmwVtAcm0WHUvGYly*****************
CONNEXION : OK
UNSEEN MAIL : 1
[support@westlink.fr] [mail 1] mail data : subject="test ok ?" from="alexis.dardot@techcity.fr" date="2023-10-12 14:16:26" body_type="html"
[support@westlink.fr] [mail 1] find gestsup user id : find 39 for address alexis.dardot@techcity.fr
[support@westlink.fr] [mail 1] create new ticket
[support@westlink.fr] [mail 1] ticket created : #2079
SMTP SERVER :
DEBUG : Images base64 detected conversion (gestsup_logo)
2023-10-12 14:17:44 Connection: opening to smtp.office365.com:587, timeout=30, options=array()
2023-10-12 14:17:44 Connection: opened
2023-10-12 14:17:44 SMTP INBOUND: "220 PR1P264CA0116.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 12 Oct 2023 14:17:43 +0000"
2023-10-12 14:17:44 SERVER -> CLIENT: 220 PR1P264CA0116.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 12 Oct 2023 14:17:43 +0000
2023-10-12 14:17:44 CLIENT -> SERVER: EHLO 192.168.1.36
2023-10-12 14:17:44 SMTP INBOUND: "250-PR1P264CA0116.outlook.office365.com Hello [80.11.26.112]"
2023-10-12 14:17:44 SMTP INBOUND: "250-SIZE 157286400"
2023-10-12 14:17:44 SMTP INBOUND: "250-PIPELINING"
2023-10-12 14:17:44 SMTP INBOUND: "250-DSN"
2023-10-12 14:17:44 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2023-10-12 14:17:44 SMTP INBOUND: "250-STARTTLS"
2023-10-12 14:17:44 SMTP INBOUND: "250-8BITMIME"
2023-10-12 14:17:44 SMTP INBOUND: "250-BINARYMIME"
2023-10-12 14:17:44 SMTP INBOUND: "250-CHUNKING"
2023-10-12 14:17:44 SMTP INBOUND: "250 SMTPUTF8"
2023-10-12 14:17:44 SERVER -> CLIENT: 250-PR1P264CA0116.outlook.office365.com Hello [80.11.26.112]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2023-10-12 14:17:44 CLIENT -> SERVER: STARTTLS
2023-10-12 14:17:44 SMTP INBOUND: "220 2.0.0 SMTP server ready"
2023-10-12 14:17:44 SERVER -> CLIENT: 220 2.0.0 SMTP server ready
2023-10-12 14:17:44 CLIENT -> SERVER: EHLO 192.168.1.36
2023-10-12 14:17:44 SMTP INBOUND: "250-PR1P264CA0116.outlook.office365.com Hello [80.11.26.112]"
2023-10-12 14:17:44 SMTP INBOUND: "250-SIZE 157286400"
2023-10-12 14:17:44 SMTP INBOUND: "250-PIPELINING"
2023-10-12 14:17:44 SMTP INBOUND: "250-DSN"
2023-10-12 14:17:44 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2023-10-12 14:17:44 SMTP INBOUND: "250-AUTH LOGIN XOAUTH2"
2023-10-12 14:17:44 SMTP INBOUND: "250-8BITMIME"
2023-10-12 14:17:44 SMTP INBOUND: "250-BINARYMIME"
2023-10-12 14:17:44 SMTP INBOUND: "250-CHUNKING"
2023-10-12 14:17:44 SMTP INBOUND: "250 SMTPUTF8"
2023-10-12 14:17:44 SERVER -> CLIENT: 250-PR1P264CA0116.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:17:44 Auth method requested: XOAUTH2
2023-10-12 14:17:44 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/vendor/phpmailer/phpmailer/src/PHPMailer.php(2019): PHPMailer\PHPMailer\PHPMailer->smtpConnect() #7 /var/www/html/vendor/phpmailer/phpmailer/src/PHPMailer.php(1678): PHPMailer\PHPMailer\PHPMailer->smtpSend() #8 /var/www/html/vendor/phpmailer/phpmailer/src/PHPMailer.php(1516): PHPMailer\PHPMailer\PHPMailer->postSend() #9 /var/www/html/core/mail.php(909): PHPMailer\PHPMailer\PHPMailer->send() #10 /var/www/html/core/imap_oauth.php(659): include('...') #11 /var/www/html/mail2ticket.php(165): require('...') #12 {main} thrown in /var/www/html/vendor/greew/oauth2-azure-provider/src/Provider/Azure.php on line 89
2023-10-12 14:17:44 CLIENT -> SERVER: QUIT
2023-10-12 14:17:44 SMTP INBOUND: "221 2.0.0 Service closing transmission channel"
2023-10-12 14:17:44 SERVER -> CLIENT: 221 2.0.0 Service closing transmission channel
2023-10-12 14:17:44 Connection: closed
Pouvez-vous indiquer si votre connecteur SMTP est fonctionnel ?
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.59 | MariaDB: 11.5.2 | PHP: 8.3.12 | https://doc.gestsup.fr/