Ajout de ce qu’il faut pour DMARC/DKIM

This commit is contained in:
VC
2019-12-01 11:07:52 +01:00
parent a3fa0e1162
commit 72cd967a79
6 changed files with 29 additions and 3 deletions

View File

@@ -7,8 +7,8 @@
- opendkim-tools
- name: main configuration files
copy:
src: ./files/opendkim.conf
template:
src: opendkim.conf
dest: /etc/opendkim.conf
notify:
- restart opendkim

View File

@@ -4,7 +4,8 @@ MilterDebug 1
Syslog yes
UMask 002
OversignHeaders From
Mode sv
KeyTable /etc/dkim/KeyTable
SigningTable /etc/dkim/SigningTable
PidFile /var/run/opendkim/opendkim.pid
Nameservers {{ ansible_facts['dns']['nameservers']|join(',') }}

View File

@@ -0,0 +1,9 @@
Socket inet:8892@localhost
FailureReports false
PidFile /var/run/opendmarc/opendmarc.pid
PublicSuffixList /usr/share/publicsuffix
RejectFailures false
Syslog true
SyslogFacility mail
UMask 0002
UserID opendmarc

View File

@@ -0,0 +1,4 @@
- name: restart opendmarc
service:
name: opendmarc
state: restarted

View File

@@ -0,0 +1,11 @@
- name: install opendmarc
package:
name: opendmarc
state: present
- name: opendmarc config file
copy:
src: ./files/opendmarc.conf
dest: /etc/opendmarc.conf
notify:
- restart opendmarc