2024-12-12 18:49:56 +01:00
|
|
|
- name: postfix | copy configuration
|
2024-12-06 11:04:10 +01:00
|
|
|
template:
|
|
|
|
src: main.cf.j2
|
|
|
|
dest: /etc/postfix/main.cf
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
notify: restart postfix
|
|
|
|
|
2024-12-12 18:49:56 +01:00
|
|
|
- name: postfix | create /etc/aliases
|
2024-12-06 11:04:10 +01:00
|
|
|
template:
|
|
|
|
src: aliases.j2
|
|
|
|
dest: /etc/aliases
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
notify: newaliases
|
|
|
|
|
|
|
|
- name: postfix | create /etc/mailname
|
|
|
|
template:
|
|
|
|
src: mailname.j2
|
|
|
|
dest: /etc/mailname
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
notify: restart postfix
|
|
|
|
|
|
|
|
- name: postfix | sender relay
|
|
|
|
template:
|
|
|
|
src: sender_relay.j2
|
|
|
|
dest: /etc/postfix/sender_relay
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
2024-12-12 16:44:49 +01:00
|
|
|
notify:
|
|
|
|
- postmap sender relay
|
|
|
|
- restart postfix
|
2024-12-06 11:04:10 +01:00
|
|
|
when: postfix_sender_relay is defined
|
|
|
|
|
2024-12-20 15:52:04 +01:00
|
|
|
- name: postfix | transport maps
|
|
|
|
template:
|
|
|
|
src: transport.j2
|
|
|
|
dest: /etc/postfix/transport
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
notify:
|
|
|
|
- postmap transport
|
|
|
|
- restart postfix
|
|
|
|
when: postfix_transport_maps is defined
|
|
|
|
|
2024-12-10 10:09:45 +01:00
|
|
|
- name: postfix | sasl passwd
|
2024-12-06 11:04:10 +01:00
|
|
|
template:
|
|
|
|
src: sasl_passwd.j2
|
|
|
|
dest: /etc/postfix/sasl_passwd
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
2024-12-12 16:44:49 +01:00
|
|
|
notify:
|
|
|
|
- postmap sasl passwd
|
|
|
|
- restart postfix
|
2024-12-12 17:53:57 +01:00
|
|
|
when: postfix_sasl_password_map is defined
|
2024-12-06 11:04:10 +01:00
|
|
|
|