javanile / php-imap2

PHP IMAP with OAUTH2
https://php-imap2.javanile.org/
GNU General Public License v3.0
48 stars 28 forks source link

Missing Auth_SASL package -> Issue connecting IMAP #59

Closed nick-filmriss closed 8 months ago

nick-filmriss commented 8 months ago

I am using SuiteCRM (https://github.com/salesagility/SuiteCRM-Core) which is based on the php-imap2 library and I get the following error message when I try to set up an IMAP account:

[DEBUG] Using imap handler class: Imap2Handler [DEBUG] ImapHandlerFactory will using a Imap2Handler [WARN] incorrect service given: [DEBUG] ---------------STARTING FINDOPTIMUMS LOOP---------------- [DEBUG] 1: I-E testing string: {xxxx:993/service=imap/ssl/tls/validate-cert/secure}INBOX [WARN] ImapHandler trying to set a non valid resource az stream. [FATAL] An Imap error detected: "IMAP open error: Can not authenticate to IMAP server: The Auth_SASL package is required for DIGEST-MD5 authentication" [FATAL] An Imap error detected: "IMAP open error | debug data" [FATAL] An Imap error detected: "ImapHandler:open: {xxxx:993\/service=imap\/ssl\/tls\/validate-cert\/secure}INBOX" [FATAL] An Imap error detected: "ImapHandler:open: xxxx@xxxx" [FATAL] An Imap error detected: "ImapHandler:open: password is empty: no" [FATAL] An Imap error detected: "ImapHandler:open: 0" [FATAL] An Imap error detected: "IMAP open error | debug data end " [FATAL] ImapHandler trying to use a non valid resource stream. [FATAL] An Imap error detected: "IMAP open error:Can not authenticate to IMAP server: The Auth_SASL package is required for DIGEST-MD5 authentication" [FATAL] ImapHandler trying to use a non valid resource stream. [FATAL] ImapHandler trying to use a non valid resource stream. [FATAL] An Imap error detected: "Can not authenticate to IMAP server: The Auth_SASL package is required for DIGEST-MD5 authentication" [DEBUG] 1: I-E failed using [{***:993/service=imap/ssl/tls/validate-cert/secure}INBOX] - error: Can not authenticate to IMAP server: The Auth_SASL package is required for DIGEST-MD5 authentication

The mail server is provided by a German Internet service provider (netcup). When using a different mail server, everything works as expected:

[DEBUG] Using imap handler class: Imap2Handler [DEBUG] ImapHandlerFactory will using a Imap2Handler [WARN] incorrect service given: [DEBUG] ---------------STARTING FINDOPTIMUMS LOOP---------------- [DEBUG] 1: I-E testing string: {xxxx:993/service=imap/ssl/tls/validate-cert/secure}INBOX [DEBUG] 1: I-E found good connect using [{xxxx:993/service=imap/ssl/tls/validate-cert/secure}INBOX] [DEBUG] 1: I-E clearing error and alert stacks. [DEBUG] ---------------end FINDOPTIMUMS LOOP---------------- [DEBUG] Localization: translating [{xxxx:993/service=imap/ssl/tls/validate-cert/secure}Trash] from UTF7-IMAP into UTF8 [DEBUG] Localization: translating [{xxxx:993/service=imap/ssl/tls/validate-cert/secure}Sent Items] from UTF7-IMAP into UTF8 [DEBUG] Localization: translating [{xxxx:993/service=imap/ssl/tls/validate-cert/secure}Sent] from UTF7-IMAP into UTF8 [DEBUG] Localization: translating [{xxxx:993/service=imap/ssl/tls/validate-cert/secure}Junk] from UTF7-IMAP into UTF8 [DEBUG] Localization: translating [{xxxx:993/service=imap/ssl/tls/validate-cert/secure}Drafts] from UTF7-IMAP into UTF8 [DEBUG] Localization: translating [{xxxx:993/service=imap/ssl/tls/validate-cert/secure}Deleted Items] from UTF7-IMAP into UTF8 [DEBUG] Localization: translating [{xxxx:993/service=imap/ssl/tls/validate-cert/secure}Archives] from UTF7-IMAP into UTF8 [DEBUG] Localization: translating [{xxxx:993/service=imap/ssl/tls/validate-cert/secure}INBOX] from UTF7-IMAP into UTF8

I have not been able to install an Auth_Sasl package that fixes the error. Is this a bug, or are there any instructions on how to fix the error?

I would be very happy about support.

nick-filmriss commented 8 months ago

fixed by: https://github.com/salesagility/SuiteCRM-Core/issues/419#issuecomment-1891085233