IMAP Et Exchange

Forum Général sur les questions que vous vous posez sur le logiciel.
AdrienGM
Gsup LEVEL 1
Messages : 19
Enregistré le : lun. 9 déc. 2019 14:19

Bonjour, je reviens au nouvelles car je n'ai toujours pas reussi a isoler le problème... J'ai tenter avec gmail, tout OK, import de mail fonctionne... cela devrait donc venir de mon exchange, pourtant, tout fonctionne avec l'ancien systeme de ticketing,
J'ai verifier l'etat de Imap4 sur exchange, il est bien activer
Voici ce que j'obtiens en faisant get-imapsettings | fl :

Code : Tout sélectionner

RunspaceId                        : 14c7effb-76e4-4d2a-a081-f293
ProtocolName                      : IMAP4
Name                              : 1
MaxCommandSize                    : 10240
ShowHiddenFoldersEnabled          : False
UnencryptedOrTLSBindings          : {[::]:143, 0.0.0.0:143}
SSLBindings                       : {[::]:993, 0.0.0.0:993}
InternalConnectionSettings        : {Exchange.XXX.local:993:SSL, Exchange.XXX.local:143:TLS}
ExternalConnectionSettings        : {exchange.XXX.com:143:TLS, exchange.XXX.com:993:SSL}
X509CertificateName               : Exchange
Banner                            : The Microsoft Exchange IMAP4 service is ready.
LoginType                         : SecureLogin
AuthenticatedConnectionTimeout    : 00:30:00
PreAuthenticatedConnectionTimeout : 00:01:00
MaxConnections                    : 2147483647
MaxConnectionFromSingleIP         : 2147483647
MaxConnectionsPerUser             : 16
MessageRetrievalMimeFormat        : BestBodyFormat
ProxyTargetPort                   : 9933
CalendarItemRetrievalOption       : iCalendar
OwaServerUrl                      :
EnableExactRFC822Size             : False
LiveIdBasicAuthReplacement        : False
SuppressReadReceipt               : False
ProtocolLogEnabled                : False
EnforceCertificateErrors          : False
LogFileLocation                   : C:\Program Files\Microsoft\Exchange Server\V15\Logging\Imap4
LogFileRollOverSettings           : Daily
LogPerFileSizeQuota               : 0 B (0 bytes)
ExtendedProtectionPolicy          : None
EnableGSSAPIAndNTLMAuth           : False
Server                            : EXCHANGE
AdminDisplayName                  :
ExchangeVersion                   : 0.10 (14.0.100.0)
DistinguishedName                 : CN=1,CN=IMAP4,CN=Protocols,CN=EXCHANGE,CN=Servers,CN=Exchange Administrative Gr
                                    (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=First Organization,CN=Microsoft
                                    Exchange,CN=Services,CN=Configuration,DC=XXX,DC=local
Identity                          : EXCHANGE\1
Guid                              : 9c4ee8a0-b2a1-432f-9443-2c9c5f982f18
ObjectCategory                    : XXX.local/Configuration/Schema/ms-Exch-Protocol-Cfg-IMAP-Server
ObjectClass                       : {top, protocolCfg, protocolCfgIMAP, protocolCfgIMAPServer}
WhenChanged                       : 21.01.2019 15:39:20
WhenCreated                       : 06.03.2015 16:06:28
WhenChangedUTC                    : 21.01.2019 14:39:20
WhenCreatedUTC                    : 06.03.2015 15:06:28
OrganizationId                    :
Id                                : EXCHANGE\1
OriginatingServer                 : XX.XXX.local
IsValid                           : True
ObjectState                       : Unchanged

Tout me semble ok... Je doit finir ce projet avant la fin de semaine, et cela fait deja une semaine que je suis bloquer sur ce problème de connection imap...
J'ai egalement renouveller les certificats, mais rien ne change. J'obtiens ce message avec gestsup

Code : Tout sélectionner

Fatal error: Uncaught PhpImap\ConnectionException: IMAP method imap_open() failed with error: TLS/SSL failure for exchange.xxx.local: SSL negotiation failed in /var/www/html/components/PhpImap/Mailbox.php:866 Stack trace: #0 /var/www/html/components/PhpImap/Mailbox.php(148): PhpImap\Mailbox->imap('open', Array, false, 'PhpImap\\Connect...') #1 /var/www/html/components/PhpImap/Mailbox.php(134): PhpImap\Mailbox->initImapStream() #2 /var/www/html/components/PhpImap/Mailbox.php(112): PhpImap\Mailbox->initImapStreamWithRetry() #3 /var/www/html/components/PhpImap/Mailbox.php(856): PhpImap\Mailbox->getImapStream() #4 /var/www/html/components/PhpImap/Mailbox.php(244): PhpImap\Mailbox->imap('search', Array) #5 /var/www/html/mail2ticket.php(249): PhpImap\Mailbox->searchMailbox('ALL') #6 {main} thrown in /var/www/html/components/PhpImap/Mailbox.php on line 866
Avatar du membre
Flox
Administrateur du site
Messages : 8973
Enregistré le : jeu. 21 juin 2012 19:00

avez-vous essayer de mettre "Exchange.XXX.local" dans le nom du serveur
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.58 | MariaDB: 11.3.2 | PHP: 8.3.4 | https://doc.gestsup.fr/
AdrienGM
Gsup LEVEL 1
Messages : 19
Enregistré le : lun. 9 déc. 2019 14:19

Oui j'ai essayer, j'obtiens exactement la meme erreur ...
AdrienGM
Gsup LEVEL 1
Messages : 19
Enregistré le : lun. 9 déc. 2019 14:19

Et en desactivant le SSL,TLS, j'obtiens cette erreur :

Code : Tout sélectionner

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

Pour le dernier message d'erreur il s'agit d'un défaut avec l'utilisateur ou mot de passe du connecteur.

Essayer de changer le mot de passe sans caractères spéciaux.

Essayez de remplacer l'adresse mail par le nom d'utilisateur Windows.

Cdt
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.58 | MariaDB: 11.3.2 | PHP: 8.3.4 | https://doc.gestsup.fr/
AdrienGM
Gsup LEVEL 1
Messages : 19
Enregistré le : lun. 9 déc. 2019 14:19

J'AI TROUVER !
Le soucis provenait tout simplement d'un défaut avec l'utilisateur du connecteur, J'avais mis Support@domaine.com au lieux de support@domain.local ... 1 semaine bloqué la dessus..
Merci Flox pour ces precieux renseignements qui m'ont permis d'isoler finalement le problème.
L'entreprise est ravis de voir un nouveaux systeme de ticketing flambant neuf ;)
Avatar du membre
Flox
Administrateur du site
Messages : 8973
Enregistré le : jeu. 21 juin 2012 19:00

très bien, pas simple à isoler comme problème...
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.58 | MariaDB: 11.3.2 | PHP: 8.3.4 | https://doc.gestsup.fr/
Avatar du membre
Flox
Administrateur du site
Messages : 8973
Enregistré le : jeu. 21 juin 2012 19:00

Aviez vous re-fait le test avec le port sécurisé ?
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.58 | MariaDB: 11.3.2 | PHP: 8.3.4 | https://doc.gestsup.fr/
AdrienGM
Gsup LEVEL 1
Messages : 19
Enregistré le : lun. 9 déc. 2019 14:19

Je viens de le faire apres avoir lu votre message,

Code : Tout sélectionner

Fatal error: Uncaught PhpImap\ConnectionException: IMAP method imap_open() failed with error: TLS/SSL failure for exchange.XXXX.com: SSL negotiation failed in /var/www/html/components/PhpImap/Mailbox.php:866 Stack trace: #0 /var/www/html/components/PhpImap/Mailbox.php(148): PhpImap\Mailbox->imap('open', Array, false, 'PhpImap\\Connect...') #1 /var/www/html/components/PhpImap/Mailbox.php(134): PhpImap\Mailbox->initImapStream() #2 /var/www/html/components/PhpImap/Mailbox.php(112): PhpImap\Mailbox->initImapStreamWithRetry() #3 /var/www/html/components/PhpImap/Mailbox.php(856): PhpImap\Mailbox->getImapStream() #4 /var/www/html/components/PhpImap/Mailbox.php(244): PhpImap\Mailbox->imap('search', Array) #5 /var/www/html/mail2ticket.php(249): PhpImap\Mailbox->searchMailbox('ALL') #6 {main} thrown in /var/www/html/components/PhpImap/Mailbox.php on line 866
Modifié en dernier par AdrienGM le lun. 16 déc. 2019 15:14, modifié 1 fois.
AdrienGM
Gsup LEVEL 1
Messages : 19
Enregistré le : lun. 9 déc. 2019 14:19

Mais ce n'est pas si grave... du moment que d'une maniere ou d'une autre il y a une remonter de mail
Répondre