ansible-role-mail/files/systemd/system/opendkim.service

19 lines
660 B
INI

[Unit]
Description=OpenDKIM DomainKeys Identified Mail (DKIM) Milter
Documentation=man:opendkim(8) man:opendkim.conf(5) man:opendkim-genkey(8) man:opendkim-genzone(8) man:opendkim-testadsp(8) man:opendkim-testkey http://www.opendkim.org/docs.html
After=network.target nss-lookup.target
[Service]
Type=forking
PIDFile=/var/run/opendkim/opendkim.pid
User=opendkim
Group=milter
UMask=0007
ExecStartPre=/usr/sbin/opendkim -P /var/run/opendkim/opendkim.pid -x /etc/opendkim.conf -ln
ExecStart=/usr/sbin/opendkim -P /var/run/opendkim/opendkim.pid -x /etc/opendkim.conf -l
Restart=on-failure
ExecReload=/bin/kill -USR1 $MAINPID
[Install]
WantedBy=multi-user.target