Fix opendkim
This commit is contained in:
parent
be309480fa
commit
a84beb24f6
3 changed files with 11 additions and 3 deletions
roles
|
@ -13,9 +13,8 @@ opendkim_oversign_headers: From
|
||||||
|
|
||||||
opendkim_selector: mail
|
opendkim_selector: mail
|
||||||
|
|
||||||
opendkim_socket: "local:/var/spool/postfix/private/opendkim"
|
opendkim_socket: "local:/var/spool/postfix/opendkim/opendkim.sock"
|
||||||
opendkim_internal_hosts:
|
opendkim_internal_hosts:
|
||||||
- "[::1]"
|
|
||||||
- 127.0.0.0/8
|
- 127.0.0.0/8
|
||||||
- 192.168.0.0/16
|
- 192.168.0.0/16
|
||||||
- 10.0.0.0/8
|
- 10.0.0.0/8
|
||||||
|
|
|
@ -19,6 +19,15 @@
|
||||||
become_user: opendkim
|
become_user: opendkim
|
||||||
notify: restart opendkim
|
notify: restart opendkim
|
||||||
|
|
||||||
|
- name: create postfix spool socket directory
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /var/spool/postfix/opendkim
|
||||||
|
state: directory
|
||||||
|
owner: opendkim
|
||||||
|
group: postfix
|
||||||
|
mode: 0770
|
||||||
|
notify: restart opendkim
|
||||||
|
|
||||||
- name: render /etc/opendkim.conf
|
- name: render /etc/opendkim.conf
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: etc/opendkim.conf.j2
|
src: etc/opendkim.conf.j2
|
||||||
|
|
|
@ -41,7 +41,7 @@ postfix_smtpd_client_restrictions:
|
||||||
postfix_non_smtpd_milters: []
|
postfix_non_smtpd_milters: []
|
||||||
postfix_smtpd_milters: []
|
postfix_smtpd_milters: []
|
||||||
postfix_spamassassin_milter: "unix:/spamass/spamass.sock"
|
postfix_spamassassin_milter: "unix:/spamass/spamass.sock"
|
||||||
postfix_opendkim_milter: "unix:private/opendkim"
|
postfix_opendkim_milter: "unix:/opendkim/opendkim.sock"
|
||||||
|
|
||||||
postfix_header_checks: []
|
postfix_header_checks: []
|
||||||
postfix_body_checks: []
|
postfix_body_checks: []
|
||||||
|
|
Loading…
Add table
Reference in a new issue