summaryrefslogtreecommitdiff
path: root/http2lmtp.service
diff options
context:
space:
mode:
Diffstat (limited to 'http2lmtp.service')
-rw-r--r--http2lmtp.service30
1 files changed, 30 insertions, 0 deletions
diff --git a/http2lmtp.service b/http2lmtp.service
new file mode 100644
index 0000000..87e07e0
--- /dev/null
+++ b/http2lmtp.service
@@ -0,0 +1,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 \ No newline at end of file