Marko Horn: > better i start at the beginning: > > on my psotfix machine at example i have 2 domains = test-1.de & > test-2.de
You are using one Postfx system to SEND email with a sender address in one of two domains. > i setup for test 3 Mailout-Gateways. > > test-1.de should NOT go thru these 3 mailout-gateways The Postfix machine should send that email directly to the recipient's mail server. > test-2.de should GO thru these 3 mailout-gateways... The same Postfix machine should send mail from the second domain through three gateways. > BUT, i want to distribute the test-2.de mail to the 3 mailout-gateways > by round robin. Unfortunately this cannot use sender_dependent_xxx_maps = randmap:{...} because that would send all messages through the three gateways. Solution 1: use a fake multi-address gateway: sender_dependent_default_transport_maps = inline:{{@test-2.de = smtp:gateways.example.com}} Where gateways.example.com has three IP addresses in DNS or in /etc/hosts (the second variant requires "smtp_host_lookup = dns, native"). The Postfix SMTP client will try all three IP addresses in random order, if the sender domain is test-2.de, otherwise it will use the default setting (default_transport = smtp) and send mail directly. Other solutions involve "sender_dependent_default_transport_maps = tcp_table:..." or "sender_dependent_default_transport_maps = socketmap:..." and are more painful to deploy, Wietse