From: Ralf Jung Date: Thu, 10 May 2018 22:41:37 +0000 (+0200) Subject: add mailman-check cronjob X-Git-Url: https://git.ralfj.de/ansible.git/commitdiff_plain/0ee5381d8969827d4b2387315625148495907c33?ds=sidebyside add mailman-check cronjob --- diff --git a/roles/postfix/files/mailman-check b/roles/postfix/files/mailman-check new file mode 100755 index 0000000..595b28c --- /dev/null +++ b/roles/postfix/files/mailman-check @@ -0,0 +1,20 @@ +#!/bin/bash +set -e +## Usage: +## ./mailman-check +## Checks all the mailman lists for bad configuration, and prints further details if it finds one. + +if ! test -d /var/lib/mailman; then + # nothing to do + exit 0 +fi + +cd /var/lib/mailman/lists +for list in *; do + /usr/sbin/config_list -i /dev/stdin "$list" <