coreos-home-server/service/postfix/quadlet/postfix.container

26 lines
650 B
Plaintext
Raw Normal View History

[Unit]
Description=Postfix SMTP server
Wants=container-build@%N.service dovecot.service
After=container-build@%N.service dovecot.service
[Container]
2023-11-05 17:58:29 +00:00
AutoUpdate=local
ContainerName=%N
EnvironmentFile=%E/coreos-home-server/%N/%N.env
2023-11-05 17:58:29 +00:00
HealthCmd=sh -c 'printf "EHLO healthcheck\r\n" | nc -q 1 localhost 587 | grep -qE "^220.+ESMTP Postfix"'
Image=localhost/%N:latest
2023-11-05 17:58:29 +00:00
PodmanArgs=--sdnotify=healthy
PublishPort=25:25
PublishPort=465:465
PublishPort=587:587
Network=internal
Volume=dovecot:/var/mail:z
Volume=letsencrypt:/etc/ssl/private:z,ro
[Service]
ExecReload=/bin/podman exec %N postfix reload
Restart=on-failure
[Install]
WantedBy=multi-user.target