Fix opendkim

This commit is contained in:
s3lph 2022-05-29 19:53:33 +02:00
parent be309480fa
commit a84beb24f6
3 changed files with 11 additions and 3 deletions
roles
opendkim
defaults
tasks
postfix/defaults/main

View file

@ -13,9 +13,8 @@ opendkim_oversign_headers: From
opendkim_selector: mail
opendkim_socket: "local:/var/spool/postfix/private/opendkim"
opendkim_socket: "local:/var/spool/postfix/opendkim/opendkim.sock"
opendkim_internal_hosts:
- "[::1]"
- 127.0.0.0/8
- 192.168.0.0/16
- 10.0.0.0/8

View file

@ -19,6 +19,15 @@
become_user: 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
ansible.builtin.template:
src: etc/opendkim.conf.j2

View file

@ -41,7 +41,7 @@ postfix_smtpd_client_restrictions:
postfix_non_smtpd_milters: []
postfix_smtpd_milters: []
postfix_spamassassin_milter: "unix:/spamass/spamass.sock"
postfix_opendkim_milter: "unix:private/opendkim"
postfix_opendkim_milter: "unix:/opendkim/opendkim.sock"
postfix_header_checks: []
postfix_body_checks: []