#!/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" <