Snappymail error at installation

I install hestia about a week ago and everything is working fine, less snappymail. Of course the first option in hestia, roundcube is working fine.

I install it normally

v-add-sys-snappymail
chown hestiamail:www-data -R /etc/snappymail

but I always get the error when I try to access (or without ?admin_xxxx):
https://webmail.domain.tld/?admin_f0e5a5a

[202] is_dir() failed

Any help is apreciated.
Thank you

Check the permissions of the data folder, this should solve the problem:

chown -R hestiamail:www-data /etc/snappymail/data/

I did it from the first time, without any luck.

I get the same error.

What appears in the Apache log after displaying the error?

cat /var/log/apache2/error.log

it seems indeed a permision error, but I don’t know to whom should I change:

Seems you did something more, the dirs doesn’t have the execution perms,

chmod 755 /etc/snappymail
chmod 700 /etc/snappymail/data/
chmod 700 /etc/snappymail/_data_/

And show also the output of these commands:

ls -la /var/lib/snappymail/
ls -la /var/lib/snappymail/snappymail/
ls -la /etc/snappymail/_data_/

Show the permissions of the directories that sahsanu mentioned.

Another alternative is to uninstall Snappymail and reinstall it:
To Uninstall:

rm -rf /var/lib/snappymail/
rm -rf /etc/snappymail/

Delete Snapymail database:

mysql -u root -p
DROP DATABASE snappymail;

Install again and assign only these permissions:

v-add-sys-snappymail
chown -R hestiamail:www-data /etc/snappymail/data/

After that check if it works.

Thank you very much both for your support.
I haven’t noticed the execution rights issue. It was installed direct as i showed you.

It is working now, after I give the execution rights like any other web app:
Screenshot from 2024-11-12 23-32-17

Thank you very much again.

3 Likes