Import of e-mail fail...🙀

Dear pstevens, my main thing is that I have installed SuiteCRM 8.6 and I can’t get the inbound email to work. This is by the way the same in 7.14, therefore I now chose to do a fresh 7.11 installation where now everything works.

I noticed that if you put the php version back to 7.4 that the ‘Select Inbox’ popup appears, but the folder list is empty. All permissions are as wide open as they can.

I must have read practically every post on this topic, even tried to simplify the code and put echo’s to the error-log to check that I had the right login credentials, but nothing works. So if you have a clear workaround for this, I would appreciate a step-by-step guide, and many others with me I think.

This may help, my bet is it’s not a technical issue, as I have it working on multiple installations.

(this is the second time I’ve added this link today! Good thing I made this video last week).

We actually having exact that problem, that the authentication fails for sending mails (SMTP) - from the logs i would say it’s cause the Authentication isn’t correct.

I already tried to research but i cant find the configuration file where i have to set $mail->AuthType = 'CRAM-MD5';. Can anyone tell me where to set this configuration?

I already researched the code and from my understanding, when nothing else is set, it should automatically try all the authentication methods, including CRAM-MD5 as the first one.

The SMTP configuration is correct and works fine within other software/tools.

What email server/services are you using to set up your STMP connection in the SuiteCRM?

Well I can confirm there IS an issue and Im not entirely sure its a SuiteCRM issue.

I have been using the email in various forms of Suite for a while, however on a brand new Suite8.8 I was setting up a bounce account connected to an IMAP server and encountered the Auth/SASL issue.

This was on a shared server with no auth_sasl installed, I have downloaded in and then in config_override included the SASL.php file. Great you think this should fix it. However it doesnt, Suite is now using the javanile imap2 library to perform IMAP connections, I believe there is a bug in there.

in vendor/javanile/php-imap2/src/Roundcube/ImapClient.php near the top there is this:

use Javanile\Imap2\Auth_SASL;

further down there is a :

new Auth_SASL;

this errors with a “unable to find \Javanile\Imap2\Auth_SASL”

Changing “use Javanile\Imap2\Auth_SASL;” to “use \Auth_SASL;”

Fixes it (as long as you are including the SASL.php file)

I am assuming that the inconsistent nature of this is because the negotiation with the IMAP server includes determining the best connection strategy, and if it doesnt need the AUTH_SASL then it doesnt trigger.

Mark

2 Likes

From a Suite Perspective, Auth_SASL is available as a composer require option and I would think it would make sense to include it that way as a default to ensure its not needed at the server level.

I have tried running a composer require pear/Auth_SASL at the root level instead of the include in config_override.php and with the change above that also works.

Regards

Mark

From a Suite Perspective, Auth_SASL is available as a composer require option and I would think it would make sense to include it that way as a default to ensure its not needed at the server level.

Regards

Mark

You could create an issue on the GitHub and mentioned this.

SuiteCRM is in general a quite buggy system from my experience. Its a good system so do not get me wrong, but it has its share of annoying bugs like this one. But SalesAgility who is the maintainer is very slow to fix them if at all. Some bugs have been hangning there for years. So you need to figure it out yourself.

Have you read the latest announcement by the team?

No. But I was also just speaking in general terms. :smiley:

I’ve read it now!
Interesting change!
Thanks for making me aware of it! :+1:

@markbond Changing to use \Auth_SASL works! Finally, tnx!!

I use Plesk and also had to change the PHP open_basedir setting to include the pear dir.

{WEBSPACEROOT}{/}:{TMP}{/}:/opt/plesk/php/7.4/share/pear/

For now I will stay at version 7.14, maybe I will try to upgrade to version 8 later.