--- # 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: - name: 'opendkim' state: 'present' - name: 'opendkim-tools' state: 'present' - name: 'opendmarc' state: 'present' - name: 'postfix' state: 'present' - name: 'postfix-ldap' state: 'present' - name: 'postfix-mysql' state: 'present' - name: 'postfix-pcre' state: 'present' firewall_list: - permanent: 'yes' service: 'smtp' state: 'enabled' - permanent: 'yes' service: 'smtps' state: 'enabled' - permanent: 'yes' service: 'smtp-submission' state: 'enabled' service_list: - enabled: 'yes' name: 'opendkim.service' state: 'started' - enabled: 'yes' name: 'opendmarc.service' state: 'started' - enabled: 'yes' name: 'postfix.service' state: 'started' template_list: - dest: '/etc/postfix/dynamicmaps.cf.d/ldap' src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/postfix/dynamicmaps.cf.d/ldap' - dest: '/etc/postfix/dynamicmaps.cf.d/mysql' src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/postfix/dynamicmaps.cf.d/mysql' - dest: '/etc/postfix/dynamicmaps.cf.d/pcre' src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/postfix/dynamicmaps.cf.d/pcre' - dest: '/etc/postfix/postfix-files.d/ldap' src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/postfix/postfix-files.d/ldap' - dest: '/etc/postfix/postfix-files.d/mysql' src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/postfix/postfix-files.d/mysql' - dest: '/etc/postfix/postfix-files.d/pcre' src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/postfix/postfix-files.d/pcre' - dest: '/etc/postfix/access' src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/postfix/access' - dest: '/etc/postfix/canonical' src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/postfix/canonical' - dest: '/etc/postfix/dynamicmaps.cf' src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/postfix/dynamicmaps.cf' - dest: '/etc/postfix/generic' src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/postfix/generic' - dest: '/etc/postfix/header_checks' src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/postfix/header_checks' - dest: '/etc/postfix/main.cf' src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/postfix/main.cf' - dest: '/etc/postfix/main.cf.proto' src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/postfix/main.cf.proto' - dest: '/etc/postfix/master.cf' src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/postfix/master.cf' - dest: '/etc/postfix/master.cf.proto' src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/postfix/master.cf.proto' - dest: '/etc/postfix/postfix-files' src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/postfix/postfix-files' - dest: '/etc/postfix/relocated' src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/postfix/relocated' - dest: '/etc/postfix/transport' src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/postfix/transport' - dest: '/etc/postfix/virtual' src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/postfix/virtual' - dest: '/etc/opendkim/KeyTable' src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/opendkim/KeyTable' - dest: '/etc/opendkim/SigningTable' src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/opendkim/SigningTable' - dest: '/etc/opendkim/TrustedHosts' src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/opendkim/TrustedHosts' - dest: '/etc/opendkim.conf' src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/opendkim.conf' - dest: '/etc/opendmarc.conf' src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/opendmarc.conf'