- # See /usr/share/postfix/main.cf.dist for a commented, more complete version
- broken_sasl_auth_clients=yes
- recipient_bcc_maps = hash:/etc/postfix/recipient_bcc
- # Debian specific: Specifying a file name will cause the first
- # line of that file to be used as the name. The Debian default
- # is /etc/mailname.
- #myorigin = /etc/mailname
- smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
- biff = no
- # appending .domain is the MUA's job.
- append_dot_mydomain = no
- # Uncomment the next line to generate "delayed mail" warnings
- #delay_warning_time = 4h
- # TLS parameters
- #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:${queue_directory}/smtpd_scache
- #smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
- # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
- # information on enabling SSL in the smtp client.
- myhostname = mail.bogus.com
- alias_maps = hash:/etc/aliases
- alias_database = hash:/etc/aliases
- virtual_alias_maps = proxy:pgsql:/etc/postfix/postgresql-virtual_forwardings.cf proxy:pgsql:/etc/postfix/postgresql-virtual_email2email.cf
- virtual_mailbox_domains = proxy:pgsql:/etc/postfix/postgresql-virtual_domains.cf
- virtual_mailbox_maps = pgsql:/etc/postfix/postgresql-virtual_mailboxes.cf
- virtual_mailbox_base = /home/vmail/
- virtual_uid_maps = static:1004
- virtual_gid_maps = static:1004
- myorigin = /etc/mailname
- mydestination = mail.bogus.com, ftp.bogus.com, localhost.bogus.com, localhost
- relayhost =
- mynetworks = $config_directory/mynetworks
- mailbox_size_limit = 0
- recipient_delimiter = +
- inet_interfaces = all
- smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_recipient_access regexp:/etc/postfix/recipient_filter_table, reject_unauth_destination
- smtpd_sasl_auth_enable = yes
- smtpd_sasl_local_domain = $mydomain
- transport_maps = hash:/etc/postfix/transport_map
- smtpd_tls_auth_only = no
- smtp_use_tls = yes
- smtpd_use_tls = yes
- smtp_tls_note_starttls_offer = yes
- smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
- smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
- smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
- smtpd_tls_loglevel = 1
- smtpd_tls_received_header = yes
- smtpd_tls_session_cache_timeout = 3600s
- tls_random_source = dev:/dev/urandom
- message_size_limit = 0
- virtual_mailbox_limit = 0
- #message_size_limit = 314572800
- #virtual_mailbox_limit = 3145728000