commit inicial

This commit is contained in:
Mauro Torrez
2019-06-02 18:35:36 -03:00
commit 16c2f29f06
8 changed files with 1169 additions and 0 deletions

32
handlers/main.yml Normal file
View File

@@ -0,0 +1,32 @@
---
- name: restart postfix
service: name=postfix state=restarted
- name: reload postfix
service: name=postfix state=restarted
- name: newaliases
command: newaliases
- name: postmap hash aliases
command: "postmap hash:{{ dc[item]['alias_lookup']['file'] }}"
when:
- "dc[item]['alias_lookup']['provider'] == 'file'"
with_items: "{{ postfix_mail_domains|belist }}"
- name: postmap hash users
command: "postmap hash:{{ dc[item]['user_lookup']['file'] }}"
when:
- "dc[item]['user_lookup']['provider'] == 'file'"
with_items: "{{ postfix_mail_domains|belist }}"
- name: postmap no reply aliases
command: "postmap hash:{{ dc[item]['noreply_file'] }}"
with_items: "{{ postfix_mail_domains|belist }}"
- name: postmap access lists
command: postmap {{item}}
with_items:
- "{{ postfix_rules_dir }}/helo_access_list"
- "{{ postfix_rules_dir }}/recipient_access_list"
- "{{ postfix_rules_dir }}/sender_access_list"