152 lines
6.0 KiB
YAML
152 lines
6.0 KiB
YAML
---
|
|
# vars file for ensure_postfix
|
|
milter_list:
|
|
- description: OpenDKIM
|
|
hostname: localhost
|
|
port: '8891'
|
|
protocol: inet
|
|
- description: OpenDMARC
|
|
hostname: localhost
|
|
port: '8893'
|
|
protocol: inet
|
|
- description: SpamAssassin
|
|
hostname: localhost
|
|
port: '8894'
|
|
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
|
|
- name: spamass-milter
|
|
state: present
|
|
- name: spamassassin
|
|
state: present
|
|
firewalld_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
|
|
- enabled: 'yes'
|
|
name: postfix-copytls.service
|
|
state: started
|
|
- enabled: 'yes'
|
|
name: postfix-copytls.timer
|
|
state: started
|
|
- enabled: 'yes'
|
|
name: spamassassin.service
|
|
state: started
|
|
- enabled: 'yes'
|
|
name: spamass-milter.service
|
|
state: started
|
|
template_list:
|
|
- dest: /etc/postfix/dynamicmaps.cf.d/ldap
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/etc/postfix/dynamicmaps.cf.d/ldap'
|
|
- dest: /etc/postfix/dynamicmaps.cf.d/mysql
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/etc/postfix/dynamicmaps.cf.d/mysql'
|
|
- dest: /etc/postfix/dynamicmaps.cf.d/pcre
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/etc/postfix/dynamicmaps.cf.d/pcre'
|
|
- dest: /etc/postfix/postfix-files.d/ldap
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/etc/postfix/postfix-files.d/ldap'
|
|
- dest: /etc/postfix/postfix-files.d/mysql
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/etc/postfix/postfix-files.d/mysql'
|
|
- dest: /etc/postfix/postfix-files.d/pcre
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/etc/postfix/postfix-files.d/pcre'
|
|
- dest: /etc/postfix/access
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/etc/postfix/access'
|
|
- dest: /etc/postfix/canonical
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/etc/postfix/canonical'
|
|
- dest: /etc/postfix/dynamicmaps.cf
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/etc/postfix/dynamicmaps.cf'
|
|
- dest: /etc/postfix/generic
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/etc/postfix/generic'
|
|
- dest: /etc/postfix/header_checks
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/etc/postfix/header_checks'
|
|
- dest: /etc/postfix/main.cf
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/etc/postfix/main.cf'
|
|
- dest: /etc/postfix/main.cf.proto
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/etc/postfix/main.cf.proto'
|
|
- dest: /etc/postfix/master.cf
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/etc/postfix/master.cf'
|
|
- dest: /etc/postfix/master.cf.proto
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/etc/postfix/master.cf.proto'
|
|
- dest: /etc/postfix/postfix-files
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/etc/postfix/postfix-files'
|
|
- dest: /etc/postfix/relocated
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/etc/postfix/relocated'
|
|
- dest: /etc/postfix/transport
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/etc/postfix/transport'
|
|
- dest: /etc/postfix/virtual
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/etc/postfix/virtual'
|
|
- dest: /etc/opendkim/KeyTable
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/etc/opendkim/KeyTable'
|
|
- dest: /etc/opendkim/SigningTable
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/etc/opendkim/SigningTable'
|
|
- dest: /etc/opendkim/TrustedHosts
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/etc/opendkim/TrustedHosts'
|
|
- dest: /etc/opendkim.conf
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/etc/opendkim.conf'
|
|
- dest: /etc/opendmarc.conf
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/etc/opendmarc.conf'
|
|
- dest: /etc/opendmarc/ignore.hosts
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/etc/opendmarc/ignore.hosts'
|
|
- dest: /usr/lib/systemd/system/postfix-copytls.service
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/usr/lib/systemd/system/postfix-copytls.service'
|
|
- dest: /usr/lib/systemd/system/postfix-copytls.timer
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/usr/lib/systemd/system/postfix-copytls.timer'
|
|
- dest: /etc/sysconfig/spamass-milter
|
|
src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"]
|
|
}}/etc/sysconfig/spamass-milter'
|