Can not authenticate to IMAP server

Hi, a new fresh installation of latest release under Ubuntu 24.04. I cannot get it to make incoming mail to work. I always get

Can not authenticate to IMAP server: The Auth_SASL package is required for DIGEST-MD5 authentication

Whe testing the connection. I checked this thread ( Import of e-mail fail...πŸ™€ - #64 by rsp ) but could not make it work. Is there a known solution to this? If so, how do I apply it? If no, what combo OS + SuiteCRM + PHP version should I use? I find it frustrating at the first attempt to use SuiteCRM and finding such an important bug to begin with :-(.

Thanks in advance,

Jose

Hi @idiriasl Jose,

This is not a SuiteCRM bug. On Ubuntu 24.04, the required IMAP/SASL packages are missing by default.

Please install them and restart the web server:

sudo apt update
sudo apt install php-imap libsasl2-modules libsasl2-modules-db
sudo phpenmod imap
sudo systemctl restart apache2

Then re-test inbound email.

SuiteCRM 8.x works best with PHP 8.1 / 8.2.
If needed, switching IMAP auth from DIGEST-MD5 to PLAIN/LOGIN also helps.

Hope this resolves it :+1:

Check out the Compatibility Matrix:

Hi @idiriasl ,
The error is due to missing SASL support in PHP’s IMAP extension on Ubuntu 24.04.
You can fix it by installing the proper SASL libs before enabling PHP IMAP, or, simpler, by switching your mail server to use LOGIN/PLAIN authentication with SSL/TLS, which does not require SASL.
This isn’t a SuiteCRM bug; it’s an environment requirement for certain IMAP auth methods.