hello wietse,

---
Mitten drin statt nur Datei!

Am 2020-10-01 00:06, schrieb Wietse Venema:
Wietse:
sender_dependent_relayhost_maps requires HOST syntax.
sender_dependent_default_transport_maps requires TRANSPORT:HOST syntax.

Marko Horn:
thanks for showing me the mistake in my configuration.
with 'sender_dependent_default_transport_maps it works.

is it possible with postfix to use the the 3 mailgateways with 'round
robin'?

sender_dependent_default_transport_maps =
        randmap:{xxx, yyy, zzz}

with xxx, yyy, zzz in TRANSPORT:HOST form. Each will be selected
with probability 1/3. If one should get more load, repeat the name.

        Wietse

sorry to bother you again..

is it the right i am doing it?:


sender_dependent_relayhost_maps = hash:/etc/postfix/lookups/relayhost/sender_relay

sender_relay:
-------------
@testdomain.de     fsmtp:



main.cf:
--------
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.

do i have to set the following settings to get it better distributed?

smtp_connection_reuse_count_limit = 2
smtp_connection_reuse_time_limit = 2s
smtp_connection_cache_on_demand = no

Reply via email to