❦ 14 août 2017 09:24 +0300, Dag Nygren dag@newtech.fi :
Have been using Fedora as my dovecot server for some time and am struggling with systemd at every update. Fedora insists on setting ProtectSystem=full in both dovecot.service and postfix.service at every update of the packages.
This makes my mailstore which is in /usr/local/var/mail Read-only.
And this makes the incoming emails delivered through dovecot-lda disappear into /dev/null until I notice the problem and we lose incoming emails.
My question is: Is there any way to set up a failback mailstore for these occasions?
PS! I really hate systemd - Destroys the UNIX way of doing things with a heavy axe....
In /etc/systemd/system/dovecot.service.d/10-mailboxes.conf, put:
[Service] ReadWritePaths=/usr/local/var/mail
Same for Postfix. This won't be overwritten on updates.
Don't stop at one bug. - The Elements of Programming Style (Kernighan & Plauger)