[Unit] Description=Dovecot POP3/IMAP server Wants=container-build@%N.service mariadb.service rspamd.service After=container-build@%N.service mariadb.service rspamd.service [Service] Restart=always ExecStart=/bin/podman run --replace --pull never --name %N --net internal \ --env-file /etc/container-service/%N/%N.env \ --env-file /etc/container-service/rspamd/rspamd.env \ --publish 143:143 --publish 993:993 \ --volume %N:/var/mail:z \ --volume letsencrypt:/etc/ssl/private:z \ --volume /etc/container-service/%N/service/config:/etc/%N/conf.d:z \ localhost/%N:latest ExecStop=/bin/podman stop --time 10 %N ExecStopPost=/bin/podman rm --force %N [Install] WantedBy=multi-user.target