Hi
I have questions about "high ability" in postfix

For example setup
1)postfix + external mysql (klaster) like

main.cf:
...
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql_sender_login_maps.cf
smtpd_proxy_timeout=60s
...

For example I have a mysql maps - mysql_sender_login_maps.cf:
----
user = sql_postfix
password = ********
hosts = 127.0.0.1:3307
dbname = vmail
query =....
----

In this maps I connect to local haproxy 127.0.0.1:3307

haproxy.cfg
...
local haproxy have:
bind 127.0.0.1:3307
default_backend mysql-backend

backend mysql-backend
mode tcp
 server galera1 192.168.0.1:3306 check inter 12000 rise 3 fall 3
 server galera2 192.168.0.2:3306 check inter 12000 rise 3 fall 3
 server galera3 192.168.0.3:3306 check inter 12000 rise 3 fall 3
 ...

All works fine...but
If galera3 go away (like reboot, or network connect) - haproxy turn off galera3 from cluster (check inter 12000 rise 3 fall 3)
but postfix try connect (establish connections) "old connections" and I get
warning: proxy:mysql:/etc/postfix/mysql_sender_bcc_maps_user.cf-new lookup error for u...@test.lt
thats ok because thats works proxy:mysql

New connections is correct

My questions:
If i set smtpd_proxy_timeout=60s I "terminating" (timeout) all old connections who get "warning: proxy:mysql:/etc/postfix/mysql_sender_bcc_maps_user.cf-new lookup error for u...@test.lt"
after 60s ?

I understand that this may be a stupid question and I am aware of that - but I am looking for a solution

--
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to