Last active
December 12, 2015 03:08
-
-
Save Gipetto/4704578 to your computer and use it in GitHub Desktop.
"Fix" postfix on OS X 10.8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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