Browse Source

Merge pull request #48 from lukecyca/rbl-check

Cron job to monitor RBL listings
Alex Payne 11 years ago
parent
commit
aae5fa90e7
2 changed files with 10 additions and 0 deletions
  1. 9
    0
      roles/mailserver/tasks/checkrbl.yml
  2. 1
    0
      roles/mailserver/tasks/main.yml

+ 9
- 0
roles/mailserver/tasks/checkrbl.yml View File

@@ -0,0 +1,9 @@
1
+- name: What is our IP address?
2
+  command: dig ${mail_server_hostname} +short
3
+  register: dig_command
4
+
5
+- name: Download check-rbl
6
+  get_url: url=https://raw.github.com/lukecyca/check-rbl/f6b222b0ca/check-rbl.pl dest=/opt/check-rbl.pl
7
+
8
+- name: Install nightly check-rbl cronjob
9
+  cron: name="check-rbl" hour="2" minute="0" job="perl /opt/check-rbl.pl -i ${dig_command.stdout}"

+ 1
- 0
roles/mailserver/tasks/main.yml View File

@@ -3,3 +3,4 @@
3 3
 - include: opendkim.yml tags=opendkim
4 4
 - include: dspam.yml tags=dspam
5 5
 - include: solr.yml tags=solr
6
+- include: checkrbl.yml tags=checkrbl

Loading…
Cancel
Save