: add postgrey, treat spamd as milter

This commit is contained in:
VC
2024-07-05 11:53:49 +02:00
parent 66fc316071
commit 6eb1f4e470
9 changed files with 86 additions and 4 deletions

View 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"

View File

@@ -0,0 +1,6 @@
---
- name: Restart postgrey
ansible.builtin.service:
name: postgrey
state: restarted

View 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