Skip to content

Instantly share code, notes, and snippets.

@sfstpala
Created April 28, 2017 08:36
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 sfstpala/52d17072e7b742401e45f53885ef2e59 to your computer and use it in GitHub Desktop.
Save sfstpala/52d17072e7b742401e45f53885ef2e59 to your computer and use it in GitHub Desktop.
Postfix config
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
readme_directory = no
myorigin = /etc/mailname
mydestination = {{ mailname }}
relayhost =
mynetworks = {{ networks | join(' ') }} 127.0.0.0/8 [::1]/128 [fe80::]/64
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
virtual_alias_maps = regexp:/etc/postfix/virtual_alias
smtpd_tls_cert_file = /etc/letsencrypt/live/{{ hostname }}/cert.pem
smtpd_tls_key_file = /etc/letsencrypt/live/{{ hostname }}/privkey.pem
smtpd_tls_CAfile = /etc/letsencrypt/live/{{ hostname }}/chain.pem
smtpd_use_tls = yes
smtpd_tls_mandatory_protocols = !SSLv2,!SSLv3
smtp_tls_security_level = may
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment