Skip to content

Instantly share code, notes, and snippets.

@mohd-akram
Last active October 31, 2020 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mohd-akram/eb3dc7fe6313522c42c4a875297005fc to your computer and use it in GitHub Desktop.
Save mohd-akram/eb3dc7fe6313522c42c4a875297005fc to your computer and use it in GitHub Desktop.
Postfix configuration for sending email via mail/mailx using an email service (eg. Outlook, Gmail)
user name@example.com
smtp_sasl_auth_enable = yes
smtp_sasl_tls_security_options = noanonymous
smtp_sender_dependent_authentication = yes
smtp_tls_security_level = secure
sender_dependent_relayhost_maps = hash:/home/user/.config/postfix/sender_relay
smtp_generic_maps = hash:/home/user/.config/postfix/generic
smtp_sasl_password_maps = hash:/home/user/.config/postfix/sasl_passwd
user name@example.com:password
user smtp.example.com:submission
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment