Ajout de ce qu’il faut pour DMARC/DKIM
This commit is contained in:
@@ -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
|
||||
|
@@ -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(',') }}
|
9
roles/opendmarc/files/opendmarc.conf
Normal file
9
roles/opendmarc/files/opendmarc.conf
Normal 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
|
4
roles/opendmarc/handlers/main.yml
Normal file
4
roles/opendmarc/handlers/main.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
- name: restart opendmarc
|
||||
service:
|
||||
name: opendmarc
|
||||
state: restarted
|
11
roles/opendmarc/tasks/main.yml
Normal file
11
roles/opendmarc/tasks/main.yml
Normal 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
|
Reference in New Issue
Block a user