# Sendmail — Mail Transfer Agent
#
# Runs sendmail in daemon mode for local and remote mail delivery.
# Listens on port 25 for incoming mail.

[service]
name = "sendmail"
description = "Sendmail Mail Transfer Agent"
type = "daemon"

[exec]
start = "/usr/lib/sendmail -bd -q15m"

[stop]
method = "contract"
signal = "TERM"
timeout = 60

[dependencies]
requires = ["network", "filesystem"]
after = ["dns-client", "syslog"]

[contract]
param = ["inherit", "noorphan"]
fatal = ["empty", "hwerr"]

[restart]
on = "failure"
delay = 10
max_retries = 3
