diff --git a/templates/etc/opendkim.conf.j2 b/templates/etc/opendkim.conf.j2 index 990a7d6..376dfcf 100644 --- a/templates/etc/opendkim.conf.j2 +++ b/templates/etc/opendkim.conf.j2 @@ -36,7 +36,7 @@ AutoRestartRate 10/1h ## Specifies the path to the process ID file. {% if ansible_os_family == "RedHat" and ansible_distribution_major_version == '7' %} PidFile /var/run/opendkim/opendkim.pid -{% elif ansible_os_family == "RedHat" and ansible_distribution_major_version == '8' %} +{% elif ansible_os_family == "RedHat" and ansible_distribution_major_version >= '8' %} PidFile /run/opendkim/opendkim.pid {% endif %} @@ -60,6 +60,7 @@ LogWhy yes UserID opendkim:opendkim ## Create a socket through which your MTA can communicate. +#Socket local:/run/opendkim/opendkim.sock Socket inet:8891@localhost ## Required to use local socket with MTAs that access the socket as a non-