Enable OpenDKIM and OpenDMARC as MILTER

This commit is contained in:
Jason Rothstein 2022-01-02 19:55:17 -06:00
parent a65428816e
commit 29bf5948f1
2 changed files with 14 additions and 0 deletions

View File

@ -736,3 +736,8 @@ smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
smtp_tls_security_level = may smtp_tls_security_level = may
meta_directory = /etc/postfix meta_directory = /etc/postfix
shlib_directory = /usr/lib64/postfix shlib_directory = /usr/lib64/postfix
{% if ensure_postfix.milter_list is defined and ensure_postfix.milter_list is iterable %}
# The MILTER Configuration
smtpd_milters = {% for milter in ensure_postfix.milter_list %}{{ milter.protocol }}:{{ milter.hostname }}:{{ milter:port }} {% endfor %}
{% endif %}

View File

@ -1,5 +1,14 @@
--- ---
# vars file for ensure_postfix # vars file for ensure_postfix
milter_list:
- description: 'OpenDKIM'
hostname: 'localhost'
port: '8891'
protocol: 'inet'
- description: 'OpenDMARC'
hostname: 'localhost'
port: '8893'
protocol: 'inet'
package_list: package_list:
- name: 'opendkim' - name: 'opendkim'
state: 'present' state: 'present'