summaryrefslogtreecommitdiff
path: root/http2lmtp.service
blob: 87e07e0a0906f5e50107489f93ff127fd414cc50 (plain)
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
[Unit]
Description=LMTP delivery daemon for HTTP-enveloped mail
After=network.target dovecot.service
Wants=dovecot.service

[Service]
Type=exec
ExecStart=/usr/local/bin/http2lmtp
EnvironmentFile=/etc/http2lmtp.env
Restart=on-failure
RestartSec=2

DynamicUser=yes
NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
ProtectSystem=strict
ProtectHome=yes
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectControlGroups=yes
RestrictAddressFamilies=AF_INET AF_UNIX
RestrictNamespaces=yes
LockPersonality=yes
MemoryDenyWriteExecute=yes
SystemCallFilter=@system-service
SystemCallArchitectures=native

[Install]
WantedBy=multi-user.target