postgrey/postgrey.service
Christopher Meng 3fb603a837 Update to 1.36 (1.35 skipped)
- Refine release section of postgrey manpage.
- Refine configuration instructions.
2015-11-13 21:25:32 +08:00

26 lines
523 B
Desktop File

[Unit]
Description=Postfix Greylisting Service
Documentation=man:postgrey(8)
Before=postfix.service
[Service]
Type=forking
EnvironmentFile=-/etc/sysconfig/postgrey
ExecStartPre=-/bin/rm -f /var/run/postgrey.pid
PIDFile=/var/run/postgrey.pid
ExecStart=/usr/sbin/postgrey \
$POSTGREY_TYPE \
$POSTGREY_PID \
$POSTGREY_GROUP \
$POSTGREY_USER \
'--greylist-text=Greylisted for %%s seconds' \
--daemonize \
$POSTGREY_DELAY \
$POSTGREY_OPTS
Restart=always
RestartSec=1
TimeoutSec=5
[Install]
WantedBy=multi-user.target