crpb
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 http://www.postfix.org/COMPATIBILITY_README.html -- default to 2 on
# fresh installs.
compatibility_level = 2
# 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_tls_security_level=may
smtp_tls_CApath=/etc/ssl/certs
smtp_tls_security_level=may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay
smtp_sender_dependent_authentication = yes
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = test2.xyz-software.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = $myhostname, ******xyz-software.com, localhost
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128, 192.168.24.0/22,
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
header_checks = regexp:/etc/postfix/header_checks
# Test specific sender domains
smtpd_sender_restrictions = check_sender_access regexp:/etc/postfix/allowed_senders
# transport would overwrite sender_relay when transport = sender realy
transport_maps = regexp:/etc/postfix/discard
/etc/postfix/sender_relay
@service.com in-v3.mailjet.com
@xyz-software.com test1.xyz-software.com
/etc/postfix/transport
xyz-software.com smtp:smtp-int.xyz-software.com
service.com smtp:in-v3.mailjet.com