container-postfix.service

This unit is provided by:

Options

  • [Install]
  • [Service]
    • Environment=PODMAN_SYSTEMD_UNIT=%n
    • EnvironmentFile=/usr/etc/default/container-postfix -/etc/default/container-postfix
    • ExecStart=/usr/bin/podman run --conmon-pidfile %t/%n.pid --cidfile %t/%n.ctr-id --cgroups=no-conmon --sdnotify=conmon --replace -d --rm $PODMAN_EXTRA_ARGS -v ${POSTFIX_SPOOL_DIR}:/var/spool/postfix:Z -v ${POSTFIX_VMAIL_DIR}:/var/spool/vmail:z -v ${EXTRA_PKI_DIR}:/etc/pki:z -v ${SECRETS_DIR}:/etc/postfix-secrets:Z -v ${POSTFIX_CERTS_DIR}:/etc/postfix/ssl/certs:z $POSTFIX_PORTS -e SERVER_HOSTNAME=${SERVER_HOSTNAME} -e SERVER_DOMAIN=${SERVER_DOMAIN} -e SMTP_TLS_SECURITY_LEVEL=${SMTP_TLS_SECURITY_LEVEL} -e SMTP_RELAYHOST=${SMTP_RELAYHOST} -e SMTP_PORT=${SMTP_PORT} -e NULLCLIENT=${NULLCLIENT} -e SMTP_USERNAME=${SMTP_USERNAME} -e SMTP_PASSWORD_FILE=${SMTP_PASSWORD_FILE} -e SMTP_NETWORKS=${SMTP_NETWORKS} -e MASQUERADE_DOMAINS=${MASQUERADE_DOMAINS} -e MYDESTINATION=${MYDESTINATION} -e SPAMASSASSIN_HOST=${SPAMASSASSIN_HOST} -e LMTP=${LMTP} -e VIRTUAL_MBOX=${VIRTUAL_MBOX} -e VMAIL_UID=${VMAIL_UID} -e VIRTUAL_DOMAINS=${VIRTUAL_DOMAINS} -e VIRTUAL_USERS=${VIRTUAL_USERS} -e USE_LDAP=${USE_LDAP} -e LDAP_BASE_DN=${LDAP_BASE_DN} -e LDAP_SERVER_URL=${LDAP_SERVER_URL} -e LDAP_BIND_DN=${LDAP_BIND_DN} -e LDAP_BIND_PASSWORD_FILE=${LDAP_BIND_PASSWORD_FILE} -e LDAP_USE_TLS=${LDAP_USE_TLS} -e LDAP_TLS_CA_CRT=${LDAP_TLS_CA_CRT} -e ENABLE_SUBMISSION=${ENABLE_SUBMISSION} -e ENABLE_SUBMISSIONS=${ENABLE_SUBMISSIONS} -e SMTPD_USE_TLS=${SMTPD_USE_TLS} -e SMTPD_TLS_CRT=${SMTPD_TLS_CRT} -e SMTPD_TLS_KEY=${SMTPD_TLS_KEY} -e TZ=${TZ} -e DEBUG=${DEBUG} --name postfix ${POSTFIX_IMAGE_PATH}
    • ExecStartPre=-/usr/bin/mkdir -p ${POSTFIX_SPOOL_DIR} ${POSTFIX_VMAIL_DIR} ${POSTFIX_CERTS_DIR} ${EXTRA_PKI_DIR} /bin/rm -f %t/%n.pid %t/%n.ctr-id -/usr/bin/podman pull ${POSTFIX_IMAGE_PATH}
    • ExecStop=/usr/bin/podman stop --ignore --cidfile %t/%n.ctr-id -t 10
    • ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/%n.ctr-id
    • NotifyAccess=all
    • Restart=on-failure
    • RestartSec=1s
    • TimeoutStopSec
      Introduced in systemd 188
      =70
    • Type=notify
  • [Unit]

Additionnal notes

Nothing here.