Wietse Venema via Postfix-users: > Stephan Seitz via Postfix-users: > > Hello! > > > > According to the manpage relayhost can have more than one host. > > > > If you have more than one, how is the host chosen? Always the first > > until it fails? Or always randomly? > > In the specified order. Using multiple relayhosts is rare, using > them randomly even rarer. > > > Can I configure Postfix to use the relay hosts randomly? > > Perhaps you can mis-use sender_dependent_default_transport_maps: > > /etc/postfix/main.cf: > sender_dependent_default_transport_maps = > # Put real sender-dependent lookup tables before > # the randmap hack. > randmap:{smtp:[host1]:port1, smtp:[host2]:port2} > > If you need a weighted distribution use something like: > > /etc/postfix/main.cf: > sender_dependent_default_transport_maps = > # Put real sender-dependent lookup tables before > # the randmap hack. > randmap:{smtp:[host1]:port1, smtp:[host1]:port1, smtp:[host2]:port2}
The same using sender_dependent_relayhost_maps: /etc/postfix/main.cf: sender_dependent_relayhost_maps = # Put real sender-dependent lookup tables before # the randmap hack. randmap:{[host1]:port1, [host2]:port2} Wietse Wietse _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org