hello wietse,
---
Mitten drin statt nur Datei!
Am 2020-10-08 21:28, schrieb Wietse Venema:
Marko Horn:
sender_dependent_relayhost_maps =
hash:/etc/postfix/lookups/relayhost/sender_relay
sender_relay:
-------------
@testdomain.de fsmtp:
sender_dependent_relayhost_maps requires a HOST, not a TRANSPORT.
But it does not matter, because the postconf(5) manpage says:
This information is overruled with relay_transport,
SENDER_DEPENDENT_DEFAULT_TRANSPORT_MAPS, default_transport and
with the transport(5) table.
sender_dependent_default_transport_maps =
randmap:{fsmtp:[192.168.100.186]:26,fsmtp:[192.168.100.186]:26,fsmtp:[192.168.100.186]:26,fsmtp:[192.168.100.188]:26,fsmtp:[192.168.100.188]:26,fsmtp:[192.168.100.188]:26,fsmtp:[192.168.100.190]:26,fsmtp:[192.168.100.190]:26,fsmtp:[192.168.100.190]:26}
master.cf:
----------
fsmtp unix - - n - - smtp
# -o
smtp_fallback_relay=[192.168.100.186]:26,[192.168.100.188]:26,[192.168.100.190]:26
but the mails are not really going out in round robin. mostly 10-12
times thru same mailgateway.
Which gateway?
And if you send 20 messages, will 10-12 be sent to the
same gateway? Where do the other messages go to?
Wietse
at teh beginning,
sorry to get on nervs ....
i was a time not able to work further on the mail project but restarting
now.
when look at the last posts to this topic i realized , i have overseen
the little but important difference between two config varaibles:
SENDER_DEPENDENT_DEFAULT_TRANSPORT_MAPS &
sender_dependent_relayhost_maps
better i start at the beginning:
on my psotfix machine at example i have 2 domains = test-1.de &
test-2.de
i setup for test 3 Mailout-Gateways.
test-1.de should NOT go thru these 3 mailout-gateways
test-2.de should GO thru these 3 mailout-gateways...
BUT, i want to distribute the test-2.de mail to the 3 mailout-gateways
by round robin.
(there you told me from randmap)
IF, one of these mailout-gateway is down postfix should recognize this
and use the left 2 mailout-gateways.
i dont get it at all how to do this. is it possible to do so?
kind regards
marko