On accessing the webmail address on a Hestia server, I’m immediately shown
SnappyMail can not access the data folder “/var/lib/snappymail/data/”
I’ve checked and reset the ownership as per previous posts. chown -R hestiamail:www-data /etc/snappymail/data
When that didn’t work I tried to set sensible permissions find /var/lib/snappymail/data/ -type d -exec chmod 755 {} + find /var/lib/snappymail/data/ -type f -exec chmod 644 {} +
That’s also not working. I’ve temporarily set the webmail client back to roundcube. If anyone has a fix, please share. Will keep looking myself too.
Not sure if its related, but v-add-sys-snappymail is also timing out at this command. wget ``https://snappymail.eu/repository/latest.tar.gz`` --retry-connrefused --quiet -O /var/lib/snappymail/snappymail-latest.tar.gz
Was trying to install on a separate server to verify if it was broken on all of them.
Specifically, ProtectSystem=full mounts /usr, /boot, /efi, and /etc as read-only for invoked processes, and in this case the issue is /etc.
I’ve created a script to add an exception for /etc/snappymail/data/. Basically, the script creates an override conf for the default PHP version and adds the following directive:
Wow, nice detective work. I would not have found that. I figured it must have been a recent update, but as snappymail hasn’t updated since 2024, I couldn’t figure it out.
I’ve always been a bit sceptical of how snappymail put the data file in /etc/ … for me that should just be config, so the sury decision actually seems correct. But as that’s a symlink to /var/lib/snappymail/data maybe we could use that path instead?
Might even be time to look for a replacement to snappymail as its development seems to have stalled. cypht?
Implementing it in Hestia will require a few extra steps: modifying the add/delete scripts and other places that reference /etc/snappymail/, as well as creating a migration script during Hestia update for existing configs. It’s not difficult, but it needs to be done… unless we use the workaround for the phpX.Y-fpm systemd service.
Cypht looks good, and so does Nexmail, but I haven’t checked whether it’s easy to automate the installation or include the password change plugin.