Skip to content

Instantly share code, notes, and snippets.

@finger-berlin
Created March 5, 2012 10:22
Show Gist options
  • Save finger-berlin/1977765 to your computer and use it in GitHub Desktop.
Save finger-berlin/1977765 to your computer and use it in GitHub Desktop.
osx postfix relay email config hints...
$ sudo vim /etc/postfix/main.cf
myhostname = local.yourdomain.tld
mydomain = yourdomain.tld
myorigin = $mydomain
relayhost = [smtp.your-isp.tld]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_sasl_mechanism_filter = plain
smtp_use_tls = yes
smtp_tls_security_level = may
$ sudo vim /etc/postfix/sasl_passwd
[smtp.your-isp.tld]:587 USERNAME@DOMAIN:PASSWORD
$ sudo postmap /etc/postfix/sasl_passwd
$ sudo rm /etc/postfix/sasl_passwd
$ sudo launchctl unload -w /System/Library/LaunchDaemons/org.postfix.master.plist
$ sudo launchctl load -w /System/Library/LaunchDaemons/org.postfix.master.plist
check /var/log/mail.log if you encounter any problem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment