Commit 48a99ad5 authored by Kristian Klausen's avatar Kristian Klausen 🎉
Browse files

Remove postgrey role

It isn't used and Postfix was never configured to use it.
parent e12ece36
Pipeline #794 passed with stage
in 45 seconds
......@@ -12,7 +12,6 @@
- { role: opendkim, dkim_selector: orion, tags: ['mail'] }
- { role: dovecot }
- { role: spampd, tags: ["mail"] }
- { role: postgrey, tags: ["mail"] }
- { role: unbound, tags: ["mail"] }
- { role: postfwd, tags: ['mail'] }
- { role: postfix, postfix_server: true, postfix_smtpd_public: true, tags: ['mail'] }
......
# greylist for N seconds
postgrey_delay: 120
#delete entries older than N days since the last time that they have been seen
postgrey_max_age: 35
# allow only N days for the first retrial
# append 'h' if you want to specify it in hours
postgrey_retry_window: 24h
- name: restart postgrey
systemd:
unit: postgrey.service
enabled: yes
state: restarted
daemon_reload: yes
- name: install packages
package:
name: "postgrey"
state: "present"
- name: install local whitelist template
template:
src: "whitelist_clients.local.j2"
dest: "/etc/postfix/postgrey_whitelist_clients.local"
owner: "root"
group: "root"
mode: 0644
notify:
- restart postgrey
- name: create service unit override path
file:
path: "/etc/systemd/system/postgrey.service.d/"
state: "directory"
owner: "root"
group: "root"
mode: 0755
- name: install service unit override file
template:
src: "service-override.j2"
dest: "/etc/systemd/system/postgrey.service.d/override.conf"
owner: "root"
group: "root"
mode: 0644
notify:
- restart postgrey
#
# {{ansible_managed}}
#
[Service]
ExecStart=
ExecStart=/usr/bin/postgrey --inet=127.0.0.1:10030 \
--pidfile=/run/postgrey/postgrey.pid \
--group=postgrey --user=postgrey \
--daemonize \
--delay={{postgrey_delay}} \
--max-age={{postgrey_max_age}} \
--retry-window={{postgrey_retry_window}} \
--greylist-text="Greylisted for %%s seconds"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment