Try to route outgoing messages through diff IPs depending on trust
[sysconfig/postfix.git] / main.cf
diff --git a/main.cf b/main.cf
index 704122a1e47cdf53cb4ab1254c4093e5be4b9454..5c8b27727cad451e1750fd15bd4b2ba6f92fdeda 100644 (file)
--- a/main.cf
+++ b/main.cf
@@ -278,6 +278,11 @@ smtpd_use_tls = yes
 smtpd_tls_auth_only = yes
 smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
 smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
+
+# Alex Dehnert, 2017-11-01
+# Based on https://serverfault.com/questions/663979/virtual-alias-domains-how-to-use-different-ip-addresses-when-forwarding-mail
+
+sender_dependent_default_transport_maps = hash:/etc/mail/sender-transport
     
 # The relay_domains parameter restricts what destinations this system will
 # relay mail to.  See the smtpd_recipient_restrictions description in