Mail app - cannot open mailbox


I am running NextCloud-server on RaspOS based on Debian Buster. It seems that the mail app can log into the mail server but has issues in showing the mail box.

Following entry is found in the logs:

[PHP] Error: PHP Startup: Unable to load dynamic library ‘’ (tried: /usr/lib/php/20180731/ (/usr/lib/aarch64-linux-gnu/ cannot allocate memory in static TLS block), /usr/lib/php/20180731/ (/usr/lib/php/20180731/ cannot open shared object file: No such file or directory)) at Unknown#0

I know that this is more or less a php issue but maybe someone here has a clue how to fix it.



Did you install php-imagick?

Yes, imagick is installed.

In the meanwhile I updated NC to 21.0.5 and the mail app worked. But only for a short time. After making some settings about my email accounts I got the same messages again.

doing a brings the mail app back to live.