Wietse: Thanks for repley, but in docu mysql_table manpage hosts = 10.10.10.1, 10.10.10.2
is not simle HA but "roundrobin" style W dniu 26.11.2021 o 13:43, Wietse Venema pisze: > natan: > [ text/html is unsupported, treating like TEXT/PLAIN ] sorry > >> Hi >> Is it possible to use two hosts entries in the map in case of failure of the >> first one, the second server will be asked >> >> I know I can use haproxy but is there anything simpler? >> >> Ile: >> # virtual_domain_maps.cf >> user = postfix >> password = $password >> dbname = postfix >> hosts = 10.10.10.1 >> hosts = 10.10.10.2 > hosts = 10.10.10.1, 10.10.10.2 > > As documented in the mysql_table manpage. > >> query = SELECT domain FROM vmail WHERE ..... > Wietse --
