Created
July 13, 2015 20:50
-
-
Save affixalex/50a9e878e876143b6ae6 to your computer and use it in GitHub Desktop.
Any reason why this is retarded?
This file contains hidden or 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
| # 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