opendkim.service.j2 664 B

123456789101112131415161718192021
  1. {% if ansible_controlled is defined and ansible_controlled != "" %}
  2. #
  3. # {{ ansible_controlled }}
  4. #
  5. {% endif %}
  6. [Unit]
  7. Description=OpenDKIM DomainKeys Identified Mail (DKIM) Milter
  8. 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
  9. After=network.target nss-lookup.target
  10. [Service]
  11. Type=forking
  12. PIDFile=/var/run/opendkim/opendkim.pid
  13. User=opendkim
  14. UMask=0007
  15. ExecStart=/usr/sbin/opendkim -P /var/run/opendkim/opendkim.pid -p inet:8891@127.0.0.1
  16. Restart=on-failure
  17. ExecReload=/bin/kill -USR1 $MAINPID
  18. [Install]
  19. WantedBy=multi-user.target