Distroname and release: Linux / Unix

Update relay domains on postfix backup mx server

A very simple script to update relay domains and recipient server for an postfix backup mx host.
updateRelayDomains.sh
#!/bin/sh
echo "running postmap"
postmap /etc/postfix/relaydomains
postmap /etc/postfix/transportmaps
echo "restarting postfix, to accept changes"
/etc/init.d/postfix restart
echo "done"

Do not trust the authors words! POC, tests and experience is key

Copyright LinuxLasse.net 2009 - 2024 All Rights Reserved.

Valid HTML 4.01 Strict Valid CSS!