X-Git-Url: https://git.ralfj.de/ansible.git/blobdiff_plain/7fe5eee7ca65689e40bef73522cc87ef2ce19c9c..0ee5381d8969827d4b2387315625148495907c33:/roles/postfix/files/mailman-check 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" <