✨: add postgrey, treat spamd as milter
This commit is contained in:
12
roles/postgrey/files/postgrey
Normal file
12
roles/postgrey/files/postgrey
Normal file
@@ -0,0 +1,12 @@
|
||||
# postgrey startup options, created for Debian
|
||||
|
||||
# you may want to set
|
||||
# --delay=N how long to greylist, seconds (default: 300)
|
||||
# --max-age=N delete old entries after N days (default: 35)
|
||||
# see also the postgrey(8) manpage
|
||||
|
||||
POSTGREY_OPTS="--inet=10023 --delay=300 --max-age=365"
|
||||
|
||||
# the --greylist-text commandline argument can not be easily passed through
|
||||
# POSTGREY_OPTS when it contains spaces. So, insert your text here:
|
||||
#POSTGREY_TEXT="Your customized rejection message here"
|
6
roles/postgrey/handlers/main.yml
Normal file
6
roles/postgrey/handlers/main.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
|
||||
- name: Restart postgrey
|
||||
ansible.builtin.service:
|
||||
name: postgrey
|
||||
state: restarted
|
14
roles/postgrey/tasks/main.yml
Normal file
14
roles/postgrey/tasks/main.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
|
||||
- name: Install postgrey
|
||||
ansible.builtin.package:
|
||||
name: postgrey
|
||||
state: present
|
||||
|
||||
- name: Put main configuration files
|
||||
ansible.builtin.copy:
|
||||
src: files/postgrey
|
||||
dest: /etc/default/postgrey
|
||||
mode: 0644
|
||||
notify:
|
||||
- Restart postgrey
|
Reference in New Issue
Block a user