coreos-home-server/config/service/dovecot/systemd/dovecot.service
Alex Palaistras 5367d2650e dovecot: Activate FTS, ManagedSieve plugins
This commit enables FTS via Xapian, and exposes the port required for
ManagedSieve integration with Dovecot; additionally, bugs in the
integration of LMTP with RSpamd have been fixed.

In support of these changes, configuration files that were previously
split into container-based and service-based are now consolidated, and
we now ensure that only our own container-based configuration is used
when running Dovecot.
2021-11-13 13:12:24 +00:00

25 lines
1009 B
Desktop File

[Unit]
Description=Dovecot POP3/IMAP Server
Wants=container-build@%N.service container-volume@%N.service mariadb.service rspamd.service
After=container-build@%N.service container-volume@%N.service mariadb.service rspamd.service
[Service]
Type=notify
NotifyAccess=all
SyslogIdentifier=%N
Restart=on-failure
Environment=PODMAN_SYSTEMD_UNIT=%n
ExecStart=/bin/podman run --replace --name %N --net internal --sdnotify=conmon \
--env-file %E/coreos-home-server/%N/%N.env \
--env-file %E/coreos-home-server/rspamd/rspamd.env \
--publish 143:143 --publish 993:993 --publish 4190:4190 \
--volume %N:/var/mail:z \
--volume letsencrypt:/etc/ssl/private:z,ro \
localhost/%N:latest
ExecStop=/bin/podman stop --ignore --time 10 %N
ExecStopPost=/bin/podman rm --ignore --force %N
ExecReload=/bin/podman exec %N doveadm -v reload
[Install]
WantedBy=multi-user.target