# See /usr/share/postfix/main.cf.dist for a commented, more complete version # 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 readme_directory = no # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for # information on enabling SSL in the smtp client. mydomain = MAIL_DOMAIN myhostname = MAIL_HOSTNAME alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = $mydomain mydestination = localhost relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all recipient_bcc_maps = pgsql:/etc/postfix/pgsql_recipient_bcc.cf transport_maps = pgsql:/etc/postfix/pgsql_transport.cf virtual_mailbox_domains = pgsql:/etc/postfix/pgsql_virtual_mailbox_domains.cf virtual_mailbox_maps = pgsql:/etc/postfix/pgsql_virtual_mailbox_maps.cf virtual_alias_maps = pgsql:/etc/postfix/pgsql_virtual_alias_maps.cf, pgsql:/etc/postfix/pgsql_virtual_alias_maps_regexp.cf, pgsql:/etc/postfix/pgsql_virtual_alias_domain_maps.cf, pgsql:/etc/postfix/pgsql_virtual_alias_maps_alias.cf relay_domains = pgsql:/etc/postfix/pgsql_relay_domains.cf virtual_minimum_uid=100 virtual_uid_maps=static:7788 virtual_gid_maps=static:7788 virtual_transport=lmtp:inet:DOVECOT_HOST:DOVECOT_LMTP_PORT dovecot_destination_recipient_limit = 1 smtpd_tls_cert_file=/etc/ssl/private/mail.crt smtpd_tls_key_file=/etc/ssl/private/mail.key smtpd_tls_CAfile=/etc/ssl/private/mail-chain.crt smtp_tls_CAfile=/etc/ssl/private/mail-chain.crt smtp_use_tls=yes smtpd_use_tls=yes smtpd_tls_loglevel=1 smtpd_tls_received_header=yes tls_random_source=dev:/dev/urandom smtp_tls_note_starttls_offer=no smtpd_tls_session_cache_timeout=3600s smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache queue_directory=/var/spool/postfix smtpd_sasl_type=dovecot smtpd_sasl_path=inet:DOVECOT_HOST:DOVECOT_SASL_PORT smtpd_sasl_auth_enable=yes broken_sasl_auth_clients=yes smtpd_sasl_security_options=noanonymous smtpd_sasl_tls_security_options=$smtpd_sasl_security_options smtpd_sasl_local_domain=$myhostname smtpd_helo_required=yes smtpd_helo_restrictions=reject_invalid_helo_hostname smtpd_recipient_restrictions=permit_mynetworks, permit_sasl_authenticated, reject_unknown_recipient_domain, reject_unauth_pipelining, reject_unauth_destination message_size_limit = 0 milter_default_action = accept milter_protocol = 6 smtpd_milters = inet:MILTER_SASL_HOST:MILTER_SASL_PORT, inet:OPENDKIM_HOST:OPENDKIM_PORT non_smtpd_milters = inet:OPENDKIM_HOST:OPENDKIM_PORT smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unknown_recipient_domain, reject_unauth_pipelining, reject_unauth_destination