Ajout de ce qu’il faut pour DMARC/DKIM
This commit is contained in:
1
mail.yml
1
mail.yml
@@ -3,5 +3,6 @@
|
|||||||
- postfix
|
- postfix
|
||||||
- dovecot
|
- dovecot
|
||||||
- opendkim
|
- opendkim
|
||||||
|
- opendmarc
|
||||||
- spamassassin
|
- spamassassin
|
||||||
- mailman
|
- mailman
|
||||||
|
@@ -7,8 +7,8 @@
|
|||||||
- opendkim-tools
|
- opendkim-tools
|
||||||
|
|
||||||
- name: main configuration files
|
- name: main configuration files
|
||||||
copy:
|
template:
|
||||||
src: ./files/opendkim.conf
|
src: opendkim.conf
|
||||||
dest: /etc/opendkim.conf
|
dest: /etc/opendkim.conf
|
||||||
notify:
|
notify:
|
||||||
- restart opendkim
|
- restart opendkim
|
||||||
|
@@ -4,7 +4,8 @@ MilterDebug 1
|
|||||||
Syslog yes
|
Syslog yes
|
||||||
UMask 002
|
UMask 002
|
||||||
OversignHeaders From
|
OversignHeaders From
|
||||||
|
Mode sv
|
||||||
KeyTable /etc/dkim/KeyTable
|
KeyTable /etc/dkim/KeyTable
|
||||||
SigningTable /etc/dkim/SigningTable
|
SigningTable /etc/dkim/SigningTable
|
||||||
PidFile /var/run/opendkim/opendkim.pid
|
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