Create spam filter map

This commit is contained in:
Antonio J. Delgado 2023-11-28 10:31:52 +02:00
parent f810867991
commit 0c86ab8660
2 changed files with 19 additions and 0 deletions

View file

@ -12,3 +12,6 @@
- name: Postmap blacklist
shell: /usr/sbin/postmap /etc/postfix/blacklist
- name: Postmap spam filter
shell: /usr/sbin/postmap /etc/postfix/maps/spam_filter_header_check.map

View file

@ -7,6 +7,14 @@
mode: '0644'
notify: Restart postfix
- name: Ensure maps folder exists
file:
state: directory
path: /etc/postfix/maps
owner: postfix
group: postfix
mode: 0644
# - name: Template file authmysqlrc
# template:
# src: templates/authmysqlrc.j2
@ -216,6 +224,14 @@
mode: 0644
notify: Postmap whitelist
- name: Ensure update spam filter map file exists
file:
state: touch
path: /etc/postfix/maps/spam_filter_header_check.map
owner: root
group: postfix
mode: 0644
notify: Postmap spam filter
- name: Create local aliases
ansible.builtin.lineinfile: