summaryrefslogtreecommitdiff
path: root/postfix/mkpostfixconfig.sh
blob: 682f89b927575485c1aa9dbe584153c326c9c1ab (plain)
  1. #!/bin/sh
  2. set -e
  3. basedir="/etc/local-REDPILL"
  4. domains="$(cat "$basedir/realms" | sed 's/#.*//')"
  5. echo '' > "$basedir/postfix/permit_mx_backup_networks"
  6. for domain in $domains; do
  7. cat "$basedir/$domain/mailnetworks" >> "$basedir/postfix/permit_mx_backup_networks"
  8. done