Skip to content

Instantly share code, notes, and snippets.

@tgallant
Created February 3, 2015 04:21
Show Gist options
  • Save tgallant/259c6de120175d88e3e8 to your computer and use it in GitHub Desktop.
Save tgallant/259c6de120175d88e3e8 to your computer and use it in GitHub Desktop.
Postfix main.cf
smtpd_banner = $myhostname ESMTP $mail_name (FreeBSD)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
readme_directory = no
smtpd_tls_cert_file=/etc/ssl/certs/dovecot.pem
smtpd_tls_key_file=/etc/ssl/private/dovecot.pem
smtpd_use_tls=yes
smtpd_tls_auth_only = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination
myhostname = your.domain.here
alias_maps = hash:/usr/local/etc/aliases
alias_database = hash:/usr/local/etc/aliases
myorigin = /etc/hostname
mydestination = 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
virtual_transport = lmtp:unix:private/dovecot-lmtp
virtual_mailbox_domains = pgsql:/etc/postfix/pgsql-virtual-mailbox-domains.cf
virtual_mailbox_maps = pgsql:/usr/local/etc/postfix/pgsql-virtual-mailbox-maps.cf
virtual_alias_maps = pgsql:/usr/local/etc/postfix/pgsql-virtual-alias-maps.cf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment