On 10/29/2013 2:24 AM, Eric Shubert wrote:
I think Amit's talking about outbound emails here. MX records only apply to inbound emails (from external domains). There's no mechanism built-in that I know of which can do this. It shouldn't be too difficult to write a script that does it though. The script would run periodically via cron. It would simply try to telnet to the smarthost, and if the connection fails, have it modify your smtproutes file appropriately, and restart qmail.
have you tried HAProxy script ? HAProxy is load-balance transparant proxy and it's said it can be with any protocol example: this it the config of smtproutes w/ HAProxy gotoserverA.com:via.haproxybox.net and on haproxybox, you list multiple smtp ip address you can see it on http://blog.secaserver.com/2012/02/high-availability-mysql-cluster-galera-haproxy/ see on haproxy section, on this blog haproxy is load-balancing mysql connection ps: I haven't tested it, it just my idea --------------------------------------------------------------------- To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com