Skip to content

Instantly share code, notes, and snippets.

@affixalex
Created July 13, 2015 20:50
Show Gist options
  • Select an option

  • Save affixalex/50a9e878e876143b6ae6 to your computer and use it in GitHub Desktop.

Select an option

Save affixalex/50a9e878e876143b6ae6 to your computer and use it in GitHub Desktop.
Any reason why this is retarded?
# based on https://www.joyent.com/blog/configuring-an-infrastructure-container-to-send-email-using-postfix-and-sendgrid
pkgin up
pkgin install cy2-plain
cat <<EOF>>/opt/local/etc/postfix/main.cf
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = static:yourSendGridUsername:yourSendGridPassword
smtp_sasl_security_options = noanonymous
smtp_tls_security_level = encrypt
header_size_limit = 4096000
relayhost = [smtp.sendgrid.net]:587
EOF
svccfg -s myapp setnotify from-online mailto:admin@myapp.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment