|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
High availability AND load balancing of relayhosts
From: L B (bertignac
gmail.com)
Date: Fri Dec 02 2005 - 07:05:02 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
This is my architecture :
Internet ---- Postfix ------- Relayhost1(Antivirus) ----- Mail servers (IMAP)
Antispam \ /
Antivirus \----- Relayhost2(Antivirus) ---/
Relay
I have only one antispam/antivirus relay (maybe I will add another
soon). I would like to forward emails on Relayhost1 and Relayhost2
(one mail on relayhost1, another on relayhost2 and so on), but AFAIK,
I can't do that with relay_host parameter. The idea is to distribute
emails among relayhost1 and relayhost2 (to use both), and to make one
of them do all the job if the other one is down. So I would like load
balancing AND high availability.
I did it now with Round Robin DNS, which is not the best HA solution around...
I installed on the antispam relay a bind server with a local zone, and
defined round robin DNS.
Something like this :
relays.my.zone. IN A 10.0.0.1
IN A 10.0.0.2
where 10.0.0.1 is the ip address of relayhost1, and 10.0.0.2 of relayhost2.
I set in main.cf relayhost to this :
relayhost = relays.my.zone
and of course configure my resolv.conf to use the local DNS server.
It works, but I am not sure it's a nice solution. Someone already did
this ? Is there a better way to do it ?
(Note: AFAIK, fallback_relays feature doesn't provide load balancing,
but just "high availability").
LVS could do this job, but I don't want to add load balancers (too
many hardware).
Any comments/ideas welcome
Thanks
--
L.B.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]