Skip to content

Instantly share code, notes, and snippets.

@heartshare
Forked from robinsmidsrod/postconf_diff.sh
Created March 11, 2013 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heartshare/5136057 to your computer and use it in GitHub Desktop.
Save heartshare/5136057 to your computer and use it in GitHub Desktop.
#!/bin/bash
postconf -d >/root/postfix.defaults
postconf >/root/postfix.conf
diff -u /root/postfix.defaults /root/postfix.conf | grep -v '^ '|grep -v '^@' |grep -v '^---' | grep -v '^+++'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment