summarylogtreecommitdiffstats
path: root/courier-esmtpd.service
diff options
context:
space:
mode:
Diffstat (limited to 'courier-esmtpd.service')
-rw-r--r--courier-esmtpd.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/courier-esmtpd.service b/courier-esmtpd.service
new file mode 100644
index 00000000000..c085b6b205b
--- /dev/null
+++ b/courier-esmtpd.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Courier ESMTP Daemon
+Requires=authdaemond.service
+After=authdaemond.service, courier-courierfilter.service
+
+[Service]
+Type=forking
+ExecStartPre=[ -d /var/run/courier ] || mkdir -p /var/run/courier && chown courier:courier /var/run/courier
+ExecStart=/usr/sbin/esmtpd start
+ExecStop=/usr/sbin/esmtpd stop
+PIDFile=/var/run/courier/esmtpd.pid
+
+[Install]
+WantedBy=multi-user.target