Skip to content

Instantly share code, notes, and snippets.

@zhoreeq
Created December 8, 2020 14:56
Show Gist options
  • Save zhoreeq/235ea1fe47e24315b47f7be1c7950020 to your computer and use it in GitHub Desktop.
Save zhoreeq/235ea1fe47e24315b47f7be1c7950020 to your computer and use it in GitHub Desktop.
Example postfix config for meshname mail
smtpd_banner = $myhostname ESMTP $mail_name (Raspbian)
biff = no
append_dot_mydomain = no
readme_directory = no
compatibility_level = 2
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = mail.[CHANGE_ME].meshname
mydomain = mail.[CHANGE_ME].meshname
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = $mydomain
mydestination = $myhostname, raspberrypi, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment