Skip to content

Instantly share code, notes, and snippets.

Last active Jul 16, 2018
What would you like to do?
MacOS X postfix relyhost mail setup
# append to /etc/postfix/
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "">
<plist version="1.0">
</plist> [email]:[password]
# create empty file
sudo touch /etc/postfix/sasl_passwd
# set permissions before entering credentials
sudo chmod go-rwx /etc/postfix/sasl_passwd
# setup credentials
sudi vi /etc/postfix/sasl_passwd
# create lookup table
sudo postmap /etc/postfix/sasl_passwd
# for extra security, remove file once lookup table is created
sudo rm /etc/postfix/sasl_passwd
# create a backup copy
sudo cp /etc/postfix/ /etc/postfix/
# append config
sudo vi /etc/postfix/
# create service config
sudo vi /Library/LaunchDaemons/org.postfix.custom.plist
# add mac os service service (be sure correct permissions are set; root:wheel)
sudo launchctl load /Library/LaunchDaemons/org.postfix.custom.plist
# restart macOS to confirm auto loading on boot
# confirm postfix process is running
ps -A | grep postfix

This comment has been minimized.

Copy link
Owner Author

@farinspace farinspace commented Jul 16, 2018

tested macOS High Sierra 10.13.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment