Debian Codegraph @

debian/msmtp-mta.msmtpd.service

raw
1 [Unit]
2 Description=msmtp daemon
3 Documentation=man:msmtpd(1)
4
5 [Service]
6 DynamicUser=true
7 AmbientCapabilities=CAP_NET_BIND_SERVICE
8 CapabilityBoundingSet=CAP_NET_BIND_SERVICE
9 NoNewPrivileges=true
10 # NoNewPrivileges prevents the setgid mechanism from working
11 # so since msmtp is setgid in order to read /etc/msmtprc, the
12 # msmtp group need to be added in a different way
13 SupplementaryGroups=msmtp
14
15 Environment=INTERFACE=127.0.0.1 PORT=25
16 EnvironmentFile=-/etc/default/msmtpd
17
18 Type=simple
19 ExecStart=/usr/bin/msmtpd --interface=${INTERFACE} --port=${PORT}
20
21 Restart=always
22 RestartSec=60
23
24 ProtectHome=true
25 PrivateTmp=true
26
27 [Install]
28 WantedBy=multi-user.target