浏览代码

Merge pull request #48 from lukecyca/rbl-check

Cron job to monitor RBL listings
Alex Payne 11 年前
父节点
当前提交
aae5fa90e7
共有 2 个文件被更改,包括 10 次插入0 次删除
  1. 9
    0
      roles/mailserver/tasks/checkrbl.yml
  2. 1
    0
      roles/mailserver/tasks/main.yml

+ 9
- 0
roles/mailserver/tasks/checkrbl.yml 查看文件

@@ -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 查看文件

@@ -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

正在加载...
取消
保存