Skip to content

Instantly share code, notes, and snippets.

@jwr456
Created March 23, 2015 19:42
Show Gist options
  • Save jwr456/1df9dab6b378f70de25b to your computer and use it in GitHub Desktop.
Save jwr456/1df9dab6b378f70de25b to your computer and use it in GitHub Desktop.
#!/bin/bash
for x in `/usr/bin/dig +short servers.ik2.com`; do echo "$x OK"; done > /etc/postfix/client_access
/usr/sbin/postmap /etc/postfix/client_access
/etc/init.d/postfix reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment