forked from evolix/ansible-roles
28 lines
650 B
YAML
28 lines
650 B
YAML
---
|
|
- name: slow transport is defined in master.cf
|
|
ansible.builtin.lineinfile:
|
|
dest: /etc/postfix/master.cf
|
|
regexp: "^slow "
|
|
line: "slow unix - - n - - smtp"
|
|
notify: restart postfix
|
|
tags:
|
|
- postfix
|
|
|
|
- name: list of providers for slow transport
|
|
ansible.builtin.lineinfile:
|
|
dest: /etc/postfix/transport
|
|
line: "{{ item }}"
|
|
create: yes
|
|
loop:
|
|
- "orange.fr slow:"
|
|
- "wanadoo.fr slow:"
|
|
- "voila.fr slow:"
|
|
- "laposte slow:"
|
|
- "yahoo.fr slow:"
|
|
- "yahoo.com slow:"
|
|
- "hotmail.fr slow:"
|
|
- "hotmail.com slow:"
|
|
notify: postmap transport
|
|
tags:
|
|
- postfix
|