Should we mark this as solved now?
]]>EDIT: The service file provided doesn't work, I had to change override it with the following in /etc/systemd/system/postgrey.service. Note I have a inet type connection, if you use a socket you will need to change it a bit.
[Unit]
Description=Postfix Greylisting Service
Before=postfix.service
[Service]
Type=forking
EnvironmentFile=-/etc/conf.d/postgrey
ExecStartPre=-/bin/rm -f /var/run/postgrey.pid
PIDFile=/var/run/postgrey.pid
ExecStart=/usr/sbin/postgrey --daemonize --${POSTGREY_TYPE}=${POSTGREY_HOST}:${POSTGREY_PORT} \
--group=postgrey --user=postgrey ${POSTGREY_OPTS} --pidfile=/var/run/postgrey.pid \
--greylist-text="${POSTGREY_TEXT}"
Restart=always
RestartSec=1
[Install]
WantedBy=multi-user.target
I experimented converting my VPS over to systemd this weekend, including postgrey. I sadly wasn't able to get postgrey to work properly with the systemd files from Redhat that I linked to above. I since converted back to using sysvinit, and will try again in a few months.
I would have more leeway to experiment if I tried on a test system rather than my web / mail server though
]]>