Good day,
Dovecot includes nice unit files for systemd, but I've noticed that
"systemctl enable dovecot.service" fails because service file does not
include Install section.
I assume that is because there's a .socket file, but there might be
reasons when you want to enable it as a service.
In my case it's one of the main services on the machine, so I'd like to
see whether it's started correctly in systemctl after boot. And of
course I don't want it to be killed due to "no connections timeout" at
any given time.
Plus, it provides authentication info for postfix daemon running on the
same machine, and dovecot.socket does not handle this case.
Following patch allows dovecot.service to be enabled via usual
systemctl command.
From e04611738edcc9245ca2a7c30587ed13a1cdb1aa Mon Sep 17 00:00:00 2001
From: Mike Kazantsev (sacrilege)