summarylogtreecommitdiffstats
path: root/postfix.service
diff options
context:
space:
mode:
Diffstat (limited to 'postfix.service')
-rw-r--r--postfix.service18
1 files changed, 18 insertions, 0 deletions
diff --git a/postfix.service b/postfix.service
new file mode 100644
index 000000000000..2c972d8d1a31
--- /dev/null
+++ b/postfix.service
@@ -0,0 +1,18 @@
+[Unit]
+Description=Postfix Mail Transport Agent
+After=network.target
+
+[Service]
+CapabilityBoundingSet=~ CAP_NET_ADMIN CAP_SYS_ADMIN CAP_SYS_BOOT CAP_SYS_MODULE
+ExecReload=/usr/bin/postfix reload
+ExecStart=/usr/bin/postfix start
+ExecStop=/usr/bin/postfix stop
+PIDFile=/var/spool/postfix/pid/master.pid
+PrivateDevices=true
+PrivateTmp=true
+ProtectSystem=true
+Restart=always
+Type=forking
+
+[Install]
+WantedBy=multi-user.target