Skip to content

Instantly share code, notes, and snippets.

@lfalanga
Last active December 16, 2015 18:59
Show Gist options
  • Save lfalanga/5481923 to your computer and use it in GitHub Desktop.
Save lfalanga/5481923 to your computer and use it in GitHub Desktop.
Most useful postfix commands.
# Start - Stop - Restart postfix server.
/etc/init.d/postfix start|stop|restart
# Postfix restart in Mac OS X 10.8 Mountain Lion
sudo launchctl unload /System/Library/LaunchDaemons/org.postfix.master.plist
sudo launchctl load /System/Library/LaunchDaemons/org.postfix.master.plist
# Delete mail queue in MacOSX
sudo postsuper -d ALL
# Test postfix configuration
date | mail -s testing [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment