|
root / services / examples / sendmail.toml
sendmail.toml TOML 31 lines 547 B
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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