Skip to content

Instantly share code, notes, and snippets.

@Gipetto
Last active December 12, 2015 03:08
Show Gist options
  • Save Gipetto/4704578 to your computer and use it in GitHub Desktop.
Save Gipetto/4704578 to your computer and use it in GitHub Desktop.
"Fix" postfix on OS X 10.8
#! /bin/bash
if [[ $EUID -ne 0 ]]; then
echo 'This script must be run as root'
exit 1
fi
launchctl unload -w /System/Library/LaunchDaemons/org.postfix.master.plist
mkdir -p /Library/Server/Mail/Data/spool/maildrop
/usr/sbin/postfix set-permissions
launchctl load -w /System/Library/LaunchDaemons/org.postfix.master.plist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment