smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) biff = no # appending .domain is the MUA's job. append_dot_mydomain = no myorigin = {{ smtprelay_origin }} # Uncomment the next line to generate "delayed mail" warnings #delay_warning_time = 4h {% if smtprelay_origin not in ["mateu.be"] %} recipient_canonical_maps = regexp:/etc/postfix/recipient_canonical sender_canonical_classes = envelope_sender, header_sender sender_canonical_maps = regexp:/etc/postfix/sender_canonical_maps smtp_header_checks = regexp:/etc/postfix/header_check {% endif %} alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases mydestination = $myhostname, localhost.$mydomain, localhost ## sending email smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_use_tls = yes relayhost = [{{ smtprelay_host }}]:{{ smtprelay_port }} ## only accepts local relay mynetworks = 127.0.0.0/8 inet_interfaces = loopback-only smtpd_relay_restrictions = permit_mynetworks,defer_unauth_destination,reject