Création ticket impossible

Installation & Configuration du logiciel
Répondre
okba6z
Gsup LEVEL 3
Messages : 88
Enregistré le : ven. 14 déc. 2018 16:38

Bonjour,
VOila j'ai installé gestsup, configuré le connecteur smtp/ldap/imap vers un serveur ad et exchange 2013

Par contre impossible de crée un ticket, en mode debug:

Code : Tout sélectionner

DEBUG MODE:
VAR: save= post_modify=modify post_quit= post_mail= post_upload= post_send= post_action= get_action='new' post_category=2 post_subcat=2 post_technician=5 globalrow_technician= post_u_service= globalrow_u_service= post_u_agency= globalrow_u_agency= post_asset_id= globalrow[asset_id]= post_sender_service= globalrow_sender_service= post_priority=6 post_title=test
post_u_service=
AUTO MAIL SENDER: user detected
AUTO MAIL VAR: SESSION[profile_id]=4 mail_auto_user_modify=1 _POST[resolution]= _POST[private]=
AUTO MAIL DETECT: FROM system TO tech (Reason: mail_auto_tech_attribution ticket technician attribution is detected)
2018-12-24 14:00:14 Connection: opening to 10.x2.XX.XX5:25, timeout=300, options=array ( 'ssl' => array ( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true, ),)
2018-12-24 14:00:14 Connection: opened
2018-12-24 14:00:14 SMTP INBOUND: "220 exch1.vd.local Microsoft ESMTP MAIL Service ready at Mon, 24 Dec 2018 15:00:13 +0100"
2018-12-24 14:00:14 SERVER -> CLIENT: 220 exch1.vd.local Microsoft ESMTP MAIL Service ready at Mon, 24 Dec 2018 15:00:13 +0100
2018-12-24 14:00:14 CLIENT -> SERVER: EHLO 10.x2.xx.x72
2018-12-24 14:00:14 SMTP INBOUND: "250-exch1.vd.local Hello [10.x2.xx.x72]"
2018-12-24 14:00:14 SMTP INBOUND: "250-SIZE 36700160"
2018-12-24 14:00:14 SMTP INBOUND: "250-PIPELINING"
2018-12-24 14:00:14 SMTP INBOUND: "250-DSN"
2018-12-24 14:00:14 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2018-12-24 14:00:14 SMTP INBOUND: "250-STARTTLS"
2018-12-24 14:00:14 SMTP INBOUND: "250-X-ANONYMOUSTLS"
2018-12-24 14:00:14 SMTP INBOUND: "250-AUTH NTLM LOGIN"
2018-12-24 14:00:14 SMTP INBOUND: "250-X-EXPS GSSAPI NTLM"
2018-12-24 14:00:14 SMTP INBOUND: "250-8BITMIME"
2018-12-24 14:00:14 SMTP INBOUND: "250-BINARYMIME"
2018-12-24 14:00:14 SMTP INBOUND: "250-CHUNKING"
2018-12-24 14:00:14 SMTP INBOUND: "250 XRDST"
2018-12-24 14:00:14 SERVER -> CLIENT: 250-exch1.vd.local Hello [10.x2.xx0.x72]250-SIZE 36700160250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-X-ANONYMOUSTLS250-AUTH NTLM LOGIN250-X-EXPS GSSAPI NTLM250-8BITMIME250-BINARYMIME250-CHUNKING250 XRDST
2018-12-24 14:00:14 CLIENT -> SERVER: STARTTLS
2018-12-24 14:00:14 SMTP INBOUND: "220 2.0.0 SMTP server ready"
2018-12-24 14:00:14 SERVER -> CLIENT: 220 2.0.0 SMTP server ready
2018-12-24 14:00:14 CLIENT -> SERVER: EHLO 10.x2.xx.x72
2018-12-24 14:00:14 SMTP INBOUND: "250-exch1.vd.local Hello [10.x2.xx.x72]"
2018-12-24 14:00:14 SMTP INBOUND: "250-SIZE 36700160"
2018-12-24 14:00:14 SMTP INBOUND: "250-PIPELINING"
2018-12-24 14:00:14 SMTP INBOUND: "250-DSN"
2018-12-24 14:00:14 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2018-12-24 14:00:14 SMTP INBOUND: "250-AUTH NTLM LOGIN"
2018-12-24 14:00:14 SMTP INBOUND: "250-X-EXPS GSSAPI NTLM"
2018-12-24 14:00:14 SMTP INBOUND: "250-8BITMIME"
2018-12-24 14:00:14 SMTP INBOUND: "250-BINARYMIME"
2018-12-24 14:00:14 SMTP INBOUND: "250-CHUNKING"
2018-12-24 14:00:14 SMTP INBOUND: "250 XRDST"
2018-12-24 14:00:14 SERVER -> CLIENT: 250-exch1.vd.local Hello [10.x2.xx.x72]250-SIZE 36700160250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH NTLM LOGIN250-X-EXPS GSSAPI NTLM250-8BITMIME250-BINARYMIME250-CHUNKING250 XRDST
2018-12-24 14:00:14 Auth method requested: UNSPECIFIED
2018-12-24 14:00:14 Auth methods available on the server: NTLM,LOGIN
2018-12-24 14:00:14 Requested auth method not available:
2018-12-24 14:00:14 Auth method selected: LOGIN
2018-12-24 14:00:14 CLIENT -> SERVER: AUTH LOGIN
2018-12-24 14:00:14 SMTP INBOUND: "334 VXNlcm5hbWU6"
2018-12-24 14:00:14 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2018-12-24 14:00:14 CLIENT -> SERVER: c3VwcG9ydC5pbmZvcm1hdGlxdWVAbWFpcmllLWNyZWlsLmZy
2018-12-24 14:00:14 SMTP INBOUND: "334 UGFzc3dvcmQ6"
2018-12-24 14:00:14 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2018-12-24 14:00:14 CLIENT -> SERVER: KjYwc2lydDA1Iw==
2018-12-24 14:00:19 SMTP INBOUND: "535 5.7.3 Authentication unsuccessful"
2018-12-24 14:00:19 SERVER -> CLIENT: 535 5.7.3 Authentication unsuccessful
2018-12-24 14:00:19 SMTP ERROR: Password command failed: 535 5.7.3 Authentication unsuccessful
SMTP Error: Could not authenticate.
2018-12-24 14:00:19 CLIENT -> SERVER: QUIT
2018-12-24 14:00:19 SMTP INBOUND: "221 2.0.0 Service closing transmission channel"
2018-12-24 14:00:19 SERVER -> CLIENT: 221 2.0.0 Service closing transmission channel
2018-12-24 14:00:19 Connection: closed

Fatal error: Uncaught PHPMailer\PHPMailer\Exception: SMTP Error: Could not authenticate. in /var/www/html/gestsup/components/PHPMailer/src/PHPMailer.php:1911 Stack trace: #0 /var/www/html/gestsup/core/message.php(46): PHPMailer\PHPMailer\PHPMailer->smtpConnect(Array) #1 /var/www/html/gestsup/core/auto_mail.php(90): require('/var/www/html/g...') #2 /var/www/html/gestsup/core/ticket.php(590): include('/var/www/html/g...') #3 /var/www/html/gestsup/ticket.php(88): include('/var/www/html/g...') #4 /var/www/html/gestsup/index.php(918): include('/var/www/html/g...') #5 {main} thrown in /var/www/html/gestsup/components/PHPMailer/src/PHPMailer.php on line 1911
Merci de votre aide
GestSup : 3.1.47 | Debian: 9.8 | NGINX & MARIADB
Avatar du membre
Flox
Administrateur du site
Messages : 9048
Enregistré le : jeu. 21 juin 2012 19:00

Bonjour,

merci de donner votre version de l'application, et vous avez une erreurs avec votre identifiant et mot de passe sur le compte d'accès sur le connecteur essayer le login Windows a la place de l'adresse mail.

cdt
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.58 | MariaDB: 11.3.2 | PHP: 8.3.6 | https://doc.gestsup.fr/
okba6z
Gsup LEVEL 3
Messages : 88
Enregistré le : ven. 14 déc. 2018 16:38

Bonjour,

La version est la 3.1.35.
Pas possible de crée des tickets même avec ce problème de connecteur?
Voila le mode debug avec login windows:

Code : Tout sélectionner

VAR: save= post_modify=modify post_quit= post_mail= post_upload= post_send= post_action= get_action='new' post_category=1 post_subcat= post_technician=5 globalrow_technician= post_u_service= globalrow_u_service= post_u_agency= globalrow_u_agency= post_asset_id= globalrow[asset_id]= post_sender_service= globalrow_sender_service= post_priority=6 post_title=test
post_u_service=
AUTO MAIL SENDER: user detected 
AUTO MAIL VAR: SESSION[profile_id]=4 mail_auto_user_modify=1 _POST[resolution]= _POST[private]= 
AUTO MAIL DETECT: FROM system TO tech (Reason: mail_auto_tech_attribution ticket technician attribution is detected)
2018-12-26 09:05:12 Connection: opening to 10.x2.xx.x35:25, timeout=300, options=array ( 'ssl' => array ( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true, ),)
2018-12-26 09:05:12 Connection: opened
2018-12-26 09:05:12 SMTP INBOUND: "220 exch1.vd.local Microsoft ESMTP MAIL Service ready at Wed, 26 Dec 2018 10:05:12 +0100"
2018-12-26 09:05:12 SERVER -> CLIENT: 220 exch1.vd.local Microsoft ESMTP MAIL Service ready at Wed, 26 Dec 2018 10:05:12 +0100
2018-12-26 09:05:12 CLIENT -> SERVER: EHLO10.x2.xx.x72
2018-12-26 09:05:12 SMTP INBOUND: "250-exch1.vd.local Hello [10.x2.xx.x72]"
2018-12-26 09:05:12 SMTP INBOUND: "250-SIZE 36700160"
2018-12-26 09:05:12 SMTP INBOUND: "250-PIPELINING"
2018-12-26 09:05:12 SMTP INBOUND: "250-DSN"
2018-12-26 09:05:12 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2018-12-26 09:05:12 SMTP INBOUND: "250-STARTTLS"
2018-12-26 09:05:12 SMTP INBOUND: "250-X-ANONYMOUSTLS"

2018-12-26 09:05:12 SMTP INBOUND: "250-AUTH NTLM LOGIN"
2018-12-26 09:05:12 SMTP INBOUND: "250-X-EXPS GSSAPI NTLM"
2018-12-26 09:05:12 SMTP INBOUND: "250-8BITMIME"
2018-12-26 09:05:12 SMTP INBOUND: "250-BINARYMIME"
2018-12-26 09:05:12 SMTP INBOUND: "250-CHUNKING"
2018-12-26 09:05:12 SMTP INBOUND: "250 XRDST"
2018-12-26 09:05:12 SERVER -> CLIENT: 250-exch1.vd.local Hello [10.x2.xx.x72]250-SIZE 36700160250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-X-ANONYMOUSTLS250-AUTH NTLM LOGIN250-X-EXPS GSSAPI NTLM250-8BITMIME250-BINARYMIME250-CHUNKING250 XRDST
2018-12-26 09:05:12 CLIENT -> SERVER: STARTTLS
2018-12-26 09:05:12 SMTP INBOUND: "220 2.0.0 SMTP server ready"
2018-12-26 09:05:12 SERVER -> CLIENT: 220 2.0.0 SMTP server ready
2018-12-26 09:05:12 CLIENT -> SERVER: EHLO 10.x2.xx.x72
2018-12-26 09:05:12 SMTP INBOUND: "250-exch1.vd.local Hello [10.x2.xx.x72]"
2018-12-26 09:05:12 SMTP INBOUND: "250-SIZE 36700160"
2018-12-26 09:05:12 SMTP INBOUND: "250-PIPELINING"
2018-12-26 09:05:12 SMTP INBOUND: "250-DSN"
2018-12-26 09:05:12 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2018-12-26 09:05:12 SMTP INBOUND: "250-AUTH NTLM LOGIN"
2018-12-26 09:05:12 SMTP INBOUND: "250-X-EXPS GSSAPI NTLM"
2018-12-26 09:05:12 SMTP INBOUND: "250-8BITMIME"
2018-12-26 09:05:12 SMTP INBOUND: "250-BINARYMIME"
2018-12-26 09:05:12 SMTP INBOUND: "250-CHUNKING"
2018-12-26 09:05:12 SMTP INBOUND: "250 XRDST"
2018-12-26 09:05:12 SERVER -> CLIENT: 250-exch1.vd.local Hello [10.x2.xx.x72]250-SIZE 36700160250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH NTLM LOGIN250-X-EXPS GSSAPI NTLM250-8BITMIME250-BINARYMIME250-CHUNKING250 XRDST
2018-12-26 09:05:12 Auth method requested: UNSPECIFIED
2018-12-26 09:05:12 Auth methods available on the server: NTLM,LOGIN
2018-12-26 09:05:12 Requested auth method not available: 
2018-12-26 09:05:12 Auth method selected: LOGIN
2018-12-26 09:05:12 CLIENT -> SERVER: AUTH LOGIN
2018-12-26 09:05:12 SMTP INBOUND: "334 VXNlcm5hbWU6"
2018-12-26 09:05:12 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2018-12-26 09:05:12 CLIENT -> SERVER: dmRjcmVpbFxzdXBwb3J0ZHNpdA==
2018-12-26 09:05:12 SMTP INBOUND: "334 UGFzc3dvcmQ6"
2018-12-26 09:05:12 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2018-12-26 09:05:12 CLIENT -> SERVER: KjYwc2lydDA1Iw==
2018-12-26 09:05:13 SMTP INBOUND: "235 2.7.0 Authentication successful"
2018-12-26 09:05:13 SERVER -> CLIENT: 235 2.7.0 Authentication successful
2018-12-26 09:05:13 CLIENT -> SERVER: MAIL FROM:<support.dsit@vd.fr>
2018-12-26 09:05:13 SMTP INBOUND: "250 2.1.0 Sender OK"
2018-12-26 09:05:13 SERVER -> CLIENT: 250 2.1.0 Sender OK
2018-12-26 09:05:13 CLIENT -> SERVER: RCPT TO:<tech@exemple.fr>
2018-12-26 09:05:13 SMTP INBOUND: "250 2.1.5 Recipient OK"
2018-12-26 09:05:13 SERVER -> CLIENT: 250 2.1.5 Recipient OK
2018-12-26 09:05:13 CLIENT -> SERVER: DATA
2018-12-26 09:05:13 SMTP INBOUND: "354 Start mail input; end with <CRLF>.<CRLF>"
2018-12-26 09:05:13 SERVER -> CLIENT: 354 Start mail input; end with <CRLF>.<CRLF>
2018-12-26 09:05:13 CLIENT -> SERVER: Date: Wed, 26 Dec 2018 10:05:13 +0100
2018-12-26 09:05:13 CLIENT -> SERVER: To: tech@exemple.fr
2018-12-26 09:05:13 CLIENT -> SERVER: From: "support.dsit@vd.fr" <support.dsit@vd.fr>
2018-12-26 09:05:13 CLIENT -> SERVER: Reply-To: support.dsit@vd.fr
2018-12-26 09:05:13 CLIENT -> SERVER: Subject: =?UTF-8?Q?Le_ticket_n=C2=B07:_test_vous_=C3=A0_=C3=A9t=C3=A9_attribu?=
2018-12-26 09:05:13 CLIENT -> SERVER: =?UTF-8?Q?=C3=A9?=
2018-12-26 09:05:13 CLIENT -> SERVER: Message-ID: <M44tiYatsnNVr7IZzuzGPP8j694EZ9OcvMn9WV7w@10.x2.xx.x72>
2018-12-26 09:05:13 CLIENT -> SERVER: X-Mailer: PHPMailer 6.0.5 (https://github.com/PHPMailer/PHPMailer)
2018-12-26 09:05:13 CLIENT -> SERVER: MIME-Version: 1.0
2018-12-26 09:05:13 CLIENT -> SERVER: Content-Type: text/html; charset=UTF-8
2018-12-26 09:05:13 CLIENT -> SERVER: Content-Transfer-Encoding: 8bit
2018-12-26 09:05:13 CLIENT -> SERVER: 
2018-12-26 09:05:13 CLIENT -> SERVER: 
2018-12-26 09:05:13 CLIENT -> SERVER: Le ticket n°7 vous à été attribué <br />
2018-12-26 09:05:13 CLIENT -> SERVER: <br />
2018-12-26 09:05:13 CLIENT -> SERVER: <u>Objet:</u><br />
2018-12-26 09:05:13 CLIENT -> SERVER: test<br />	
2018-12-26 09:05:13 CLIENT -> SERVER: <br />	
2018-12-26 09:05:13 CLIENT -> SERVER: <u>Description:</u><br />
2018-12-26 09:05:13 CLIENT -> SERVER: test<br />
2018-12-26 09:05:13 CLIENT -> SERVER: <br />
2018-12-26 09:05:13 CLIENT -> SERVER: Pour plus d'informations vous pouvez consulter le ticket sur <a href="http://gestsup/index.php?page=ticket&id=7">http://gestsup/index.php?page=ticket&id=7</a>.
2018-12-26 09:05:13 CLIENT -> SERVER: 
2018-12-26 09:05:13 CLIENT -> SERVER: 
2018-12-26 09:05:13 CLIENT -> SERVER: .
2018-12-26 09:05:13 SMTP INBOUND: "550 5.7.1 Client does not have permissions to send as this sender"
2018-12-26 09:05:13 SERVER -> CLIENT: 550 5.7.1 Client does not have permissions to send as this sender
2018-12-26 09:05:13 SMTP ERROR: DATA END command failed: 550 5.7.1 Client does not have permissions to send as this sender
SMTP Error: data not accepted.

Fatal error: Uncaught PHPMailer\PHPMailer\Exception: SMTP Error: data not accepted. in /var/www/html/gestsup/components/PHPMailer/src/PHPMailer.php:1757 Stack trace: #0 /var/www/html/gestsup/components/PHPMailer/src/PHPMailer.php(1481): PHPMailer\PHPMailer\PHPMailer->smtpSend('Date: Wed, 26 D...', '\r\n\t\t\tLe ticket ...') #1 /var/www/html/gestsup/components/PHPMailer/src/PHPMailer.php(1320): PHPMailer\PHPMailer\PHPMailer->postSend() #2 /var/www/html/gestsup/core/message.php(54): PHPMailer\PHPMailer\PHPMailer->send() #3 /var/www/html/gestsup/core/auto_mail.php(90): require('/var/www/html/g...') #4 /var/www/html/gestsup/core/ticket.php(590): include('/var/www/html/g...') #5 /var/www/html/gestsup/ticket.php(88): include('/var/www/html/g...') #6 /var/www/html/gestsup/index.php(918): include('/var/www/html/g...') #7 {main} thrown in /var/www/html/gestsup/components/PHPMailer/src/PHPMailer.php on line 1757

Pour le SMTP:
serveur: 10.x2.xxx.x72
port: smtp
vérif ssl: desactivé
préfixe smtp: aucun
classe smtp: isSMTP
user: vd\supportdsit
mdp: xxxxxxxxx

Pour le LDAP, la liaison est OK, import des utilisateurs OK


J'ai voulu configuré le IMAP, pour le mail 2 ticket:
serveur: exch1.vd.local
protocole: imap 993
vérif ssl: activé
dossier racine: aucun
adresse: support.dsit@vd.fr
mdp: xxxxxx

J'ai sa:

Code : Tout sélectionner


IMAP server: 10.x2.xxx.x35
IMAP port: 993/imap/ssl
IMAP connection string: {10.x2.xxx.x35:993/imap/ssl}
IMAP connector mode: SINGLE


Fatal error: Uncaught PhpImap\ConnectionException: IMAP method imap_open() failed with error: TLS/SSL failure for 10.x2.xxx.x35: SSL negotiation failed in /var/www/html/gestsup/components/PhpImap/Mailbox.php:866 Stack trace: #0 /var/www/html/gestsup/components/PhpImap/Mailbox.php(148): PhpImap\Mailbox->imap('open', Array, false, 'PhpImap\\Connect...') #1 /var/www/html/gestsup/components/PhpImap/Mailbox.php(134): PhpImap\Mailbox->initImapStream() #2 /var/www/html/gestsup/components/PhpImap/Mailbox.php(112): PhpImap\Mailbox->initImapStreamWithRetry() #3 /var/www/html/gestsup/components/PhpImap/Mailbox.php(856): PhpImap\Mailbox->getImapStream() #4 /var/www/html/gestsup/components/PhpImap/Mailbox.php(244): PhpImap\Mailbox->imap('search', Array) #5 /var/www/html/gestsup/mail2ticket.php(209): PhpImap\Mailbox->searchMailbox('ALL') #6 {main} thrown in /var/www/html/gestsup/components/PhpImap/Mailbox.php on line 866
GestSup : 3.1.47 | Debian: 9.8 | NGINX & MARIADB
okba6z
Gsup LEVEL 3
Messages : 88
Enregistré le : ven. 14 déc. 2018 16:38

Même avec mon compte gmail pareil!

Code : Tout sélectionner

MTP SERVER:
2018-12-27 11:20:24 Connection: opening to ssl://smtp.gmail.com:465, timeout=300, options=array ( 'ssl' => array ( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true, ),)
2018-12-27 11:20:24 Connection: opened
2018-12-27 11:20:24 SMTP INBOUND: "220 smtp.gmail.com ESMTP 49sm11324399edz.59 - gsmtp"
2018-12-27 11:20:24 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP 49sm11324399edz.59 - gsmtp
2018-12-27 11:20:24 CLIENT -> SERVER: EHLO 10.2.100.72
2018-12-27 11:20:24 SMTP INBOUND: "250-smtp.gmail.com at your service, [89.87.170.161]"
2018-12-27 11:20:24 SMTP INBOUND: "250-SIZE 35882577"
2018-12-27 11:20:24 SMTP INBOUND: "250-8BITMIME"
2018-12-27 11:20:24 SMTP INBOUND: "250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH"
2018-12-27 11:20:24 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2018-12-27 11:20:24 SMTP INBOUND: "250-PIPELINING"
2018-12-27 11:20:24 SMTP INBOUND: "250-CHUNKING"
2018-12-27 11:20:24 SMTP INBOUND: "250 SMTPUTF8"
2018-12-27 11:20:24 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [89.87.170.161]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
2018-12-27 11:20:24 Auth method requested: UNSPECIFIED
2018-12-27 11:20:24 Auth methods available on the server: LOGIN,PLAIN,XOAUTH2,PLAIN-CLIENTTOKEN,OAUTHBEARER,XOAUTH
2018-12-27 11:20:24 Requested auth method not available: 
2018-12-27 11:20:24 Auth method selected: LOGIN
2018-12-27 11:20:24 CLIENT -> SERVER: AUTH LOGIN
2018-12-27 11:20:24 SMTP INBOUND: "334 VXNlcm5hbWU6"
2018-12-27 11:20:24 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2018-12-27 11:20:24 CLIENT -> SERVER: b2tiYS5tZXNiYXRAZ21haWwuY29t
2018-12-27 11:20:24 SMTP INBOUND: "334 UGFzc3dvcmQ6"
2018-12-27 11:20:24 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2018-12-27 11:20:24 CLIENT -> SERVER: b1t1eiw9flFbI2cxJi45
2018-12-27 11:20:24 SMTP INBOUND: "535-5.7.8 Username and Password not accepted. Learn more at"
2018-12-27 11:20:24 SMTP INBOUND: "535 5.7.8 https://support.google.com/mail/?p=BadCredentials 49sm11324399edz.59 - gsmtp"
2018-12-27 11:20:24 SERVER -> CLIENT: 535-5.7.8 Username and Password not accepted. Learn more at535 5.7.8 https://support.google.com/mail/?p=BadCredentials 49sm11324399edz.59 - gsmtp
2018-12-27 11:20:24 SMTP ERROR: Password command failed: 535-5.7.8 Username and Password not accepted. Learn more at535 5.7.8 https://support.google.com/mail/?p=BadCredentials 49sm11324399edz.59 - gsmtp
SMTP Error: Could not authenticate.
2018-12-27 11:20:24 CLIENT -> SERVER: QUIT
2018-12-27 11:20:24 SMTP INBOUND: "221 2.0.0 closing connection 49sm11324399edz.59 - gsmtp"
2018-12-27 11:20:24 SERVER -> CLIENT: 221 2.0.0 closing connection 49sm11324399edz.59 - gsmtp
2018-12-27 11:20:24 Connection: closed

Fatal error: Uncaught PHPMailer\PHPMailer\Exception: SMTP Error: Could not authenticate. in /var/www/html/gestsup/components/PHPMailer/src/PHPMailer.php:1911 Stack trace: #0 /var/www/html/gestsup/core/mail.php(535): PHPMailer\PHPMailer\PHPMailer->smtpConnect(Array) #1 /var/www/html/gestsup/preview_mail.php(27): require('/var/www/html/g...') #2 /var/www/html/gestsup/index.php(918): include('/var/www/html/g...') #3 {main} thrown in /var/www/html/gestsup/components/PHPMailer/src/PHPMailer.php on line 1911
ou pour l'import:

Code : Tout sélectionner

IMAP server: imap.gmail.com
IMAP port: 993/imap/ssl
IMAP connection string: {imap.gmail.com:993/imap/ssl}INBOX
IMAP connector mode: SINGLE


Fatal error: Uncaught PhpImap\ConnectionException: IMAP method imap_open() failed with error: Can not authenticate to IMAP server: [AUTHENTICATIONFAILED] Invalid credentials (Failure) in /var/www/html/gestsup/components/PhpImap/Mailbox.php:866 Stack trace: #0 /var/www/html/gestsup/components/PhpImap/Mailbox.php(148): PhpImap\Mailbox->imap('open', Array, false, 'PhpImap\\Connect...') #1 /var/www/html/gestsup/components/PhpImap/Mailbox.php(134): PhpImap\Mailbox->initImapStream() #2 /var/www/html/gestsup/components/PhpImap/Mailbox.php(112): PhpImap\Mailbox->initImapStreamWithRetry() #3 /var/www/html/gestsup/components/PhpImap/Mailbox.php(856): PhpImap\Mailbox->getImapStream() #4 /var/www/html/gestsup/components/PhpImap/Mailbox.php(244): PhpImap\Mailbox->imap('search', Array) #5 /var/www/html/gestsup/mail2ticket.php(209): PhpImap\Mailbox->searchMailbox('ALL') #6 {main} thrown in /var/www/html/gestsup/components/PhpImap/Mailbox.php on line 866
GestSup : 3.1.47 | Debian: 9.8 | NGINX & MARIADB
Avatar du membre
Flox
Administrateur du site
Messages : 9048
Enregistré le : jeu. 21 juin 2012 19:00

Bonjour,

Pour Gmail une procédure particulière est a réaliser que vous trouverez dans la FAQ du site.

Cdt
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.58 | MariaDB: 11.3.2 | PHP: 8.3.6 | https://doc.gestsup.fr/
okba6z
Gsup LEVEL 3
Messages : 88
Enregistré le : ven. 14 déc. 2018 16:38

J'ai bien suivi la procédure à la lettre!
J'ai d'ailleurs lu tout les topics en rapport avec les connecteurs et j'ai testé toutes les solutions trouvés....
L'envoi des mail fonctionne mais pas la collecte avec mon compte gmail, avec exchange pour l'instant même l'envoi des mails sa ne marches pas!

J'ai tester le connecteur imap sur la webdemo:

Code : Tout sélectionner

IMAP server: imap.google.com
IMAP port: 993/imap/ssl
IMAP connection string: {imap.google.com:993/imap/ssl}INBOX
IMAP connector mode: SINGLE
Rien n'est importer!

Et sur ma prod en smtp OK mais imap:

Code : Tout sélectionner

IMAP server: imap.gmail.com
IMAP port: 993/imap/ssl
IMAP connection string: {imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX
IMAP connector mode: SINGLE


Fatal error: Uncaught PhpImap\ConnectionException: IMAP method imap_open() failed with error: Can not authenticate to IMAP server: [AUTHENTICATIONFAILED] Invalid credentials (Failure) in /var/www/html/gestsup/components/PhpImap/Mailbox.php:866 Stack trace: #0 /var/www/html/gestsup/components/PhpImap/Mailbox.php(148): PhpImap\Mailbox->imap('open', Array, false, 'PhpImap\\Connect...') #1 /var/www/html/gestsup/components/PhpImap/Mailbox.php(134): PhpImap\Mailbox->initImapStream() #2 /var/www/html/gestsup/components/PhpImap/Mailbox.php(112): PhpImap\Mailbox->initImapStreamWithRetry() #3 /var/www/html/gestsup/components/PhpImap/Mailbox.php(856): PhpImap\Mailbox->getImapStream() #4 /var/www/html/gestsup/components/PhpImap/Mailbox.php(244): PhpImap\Mailbox->imap('search', Array) #5 /var/www/html/gestsup/mail2ticket.php(209): PhpImap\Mailbox->searchMailbox('ALL') #6 {main} thrown in /var/www/html/gestsup/components/PhpImap/Mailbox.php on line 866
GestSup : 3.1.47 | Debian: 9.8 | NGINX & MARIADB
Avatar du membre
Flox
Administrateur du site
Messages : 9048
Enregistré le : jeu. 21 juin 2012 19:00

Bonjour,


Sur la webdemo le connecteur imap n'est pas autorisé. Si vous souhaitez faire un test depuis votre serveur vérifié votre identifiant et mot de passe, votre firewall, et le niveau de sécurité du compte Google.

Reposter le message d'erreur apres ces vérifications.

Cdt
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.58 | MariaDB: 11.3.2 | PHP: 8.3.6 | https://doc.gestsup.fr/
okba6z
Gsup LEVEL 3
Messages : 88
Enregistré le : ven. 14 déc. 2018 16:38

SUr mon serveur l'envoi de mail en SMTP avec mon compte GMAIL marche, je reçois bien les mails!
Le IMAP avec le même compte non!
Le niveau de sécurité de mon compte est ok vu que j'ai suivi la procédure de la FAQ.

Le message d'erreur est le suivant:

Code : Tout sélectionner

IMAP server: imap.gmail.com
IMAP port: 993/imap/ssl
IMAP connection string: {imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX
IMAP connector mode: SINGLE


Fatal error: Uncaught PhpImap\ConnectionException: IMAP method imap_open() failed with error: Can not authenticate to IMAP server: [AUTHENTICATIONFAILED] Invalid credentials (Failure) in /var/www/html/gestsup/components/PhpImap/Mailbox.php:866 Stack trace: #0 /var/www/html/gestsup/components/PhpImap/Mailbox.php(148): PhpImap\Mailbox->imap('open', Array, false, 'PhpImap\\Connect...') #1 /var/www/html/gestsup/components/PhpImap/Mailbox.php(134): PhpImap\Mailbox->initImapStream() #2 /var/www/html/gestsup/components/PhpImap/Mailbox.php(112): PhpImap\Mailbox->initImapStreamWithRetry() #3 /var/www/html/gestsup/components/PhpImap/Mailbox.php(856): PhpImap\Mailbox->getImapStream() #4 /var/www/html/gestsup/components/PhpImap/Mailbox.php(244): PhpImap\Mailbox->imap('search', Array) #5 /var/www/html/gestsup/mail2ticket.php(209): PhpImap\Mailbox->searchMailbox('ALL') #6 {main} thrown in /var/www/html/gestsup/components/PhpImap/Mailbox.php on line 866
J'ai réussi à configurer le SMTP avec mon serveur exchange, je ne passe plus par le local mais en utilisant l'adresse du webmail, la l'envoi des mails se fait bien et je les reçois!
Par contre le connecteur IMAP en 143 ou 993 la même erreur:

Code : Tout sélectionner

Fatal error: Uncaught PhpImap\ConnectionException: IMAP method imap_open() failed with error: Can't connect to webmail.xxx.fr,993: Connection refused in /var/www/html/gestsup/components/PhpImap/Mailbox.php:866 Stack trace: #0 /var/www/html/gestsup/components/PhpImap/Mailbox.php(148): PhpImap\Mailbox->imap('open', Array, false, 'PhpImap\\Connect...') #1 /var/www/html/gestsup/components/PhpImap/Mailbox.php(134): PhpImap\Mailbox->initImapStream() #2 /var/www/html/gestsup/components/PhpImap/Mailbox.php(112): PhpImap\Mailbox->initImapStreamWithRetry() #3 /var/www/html/gestsup/components/PhpImap/Mailbox.php(856): PhpImap\Mailbox->getImapStream() #4 /var/www/html/gestsup/components/PhpImap/Mailbox.php(244): PhpImap\Mailbox->imap('search', Array) #5 /var/www/html/gestsup/mail2ticket.php(209): PhpImap\Mailbox->searchMailbox('ALL') #6 {main} thrown in /var/www/html/gestsup/components/PhpImap/Mailbox.php on line 866
GestSup : 3.1.47 | Debian: 9.8 | NGINX & MARIADB
Avatar du membre
Flox
Administrateur du site
Messages : 9048
Enregistré le : jeu. 21 juin 2012 19:00

Bonjour,

Pour échange est ce que vous avez vérifié les parfeux serveur.

Pouvez vous indiquer l'état du service exchange imap ?
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.58 | MariaDB: 11.3.2 | PHP: 8.3.6 | https://doc.gestsup.fr/
okba6z
Gsup LEVEL 3
Messages : 88
Enregistré le : ven. 14 déc. 2018 16:38

Bonjour,

C'est bon résolu!

C'était bien un problème sur notre serveur exchange!
GestSup : 3.1.47 | Debian: 9.8 | NGINX & MARIADB
Répondre