Skip to content

Instantly share code, notes, and snippets.

@Aketzu
Created January 9, 2020 17:50
Show Gist options
  • Save Aketzu/9c4212468c2fe17d368d9a8bc8a250b3 to your computer and use it in GitHub Desktop.
Save Aketzu/9c4212468c2fe17d368d9a8bc8a250b3 to your computer and use it in GitHub Desktop.
Postfix sender specific smtp with auth
sender_dependent_default_transport_maps = hash:/etc/postfix/sender_transport
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_use_tls = yes
smtp_sasl_security_options = noanonymous
outsmtps unix y - y - - smtp
-o smtp_tls_wrappermode=yes
-o smtp_tls_security_level=encrypt
outsmtp unix y - y - - smtp
-o smtp_tls_wrappermode=no
-o smtp_tls_security_level=encrypt
[sakataki.ext.b2.fi]:465 aketzu:foobar
[smtp.iki.fi]:465 aketzu:foobar
#TLS wrapping
@iki.fi outsmtps:[smtp.iki.fi]:465
#STARTTLS
@tracon.fi outsmtp:[sakataki.ext.b2.fi]:465
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment