Re: qmail cluster

Ismail YENIGUL <[email protected]> Sat, 12 Jan 2013 22:06:42 +0200
Newsgroups gmane.mail.qmail.ldap
Organization SurGATE Labs
Message-ID <[email protected]>
Hi Friedrich,

You do not have to setup 5 mx.  If you distribute users on qmail 
backends via mailhost entry on LDAP.
Just create a A DNS record for each mailhost.  and define a MX record 
has 5 IP address.

example dns settings for all domains:
IN  MX mx.mymasterdomain.com


mx IN A 192.168.1.1
mx IN A 192.168.1.2
mx IN A 192.168.1.3
mx IN A 192.168.1.4
mx IN A 192.168.1.5

mail1 IN A 192.168.1.1
mail2 IN A 192.168.1.2
mail3 IN A 192.168.1.3
mail4 IN A 192.168.1.4
mail5 IN A 192.168.1.5

Do you have any antispam gateway in front of the mail servers? If you 
have,some antispam gateway solutions have a feature to lookup
mailhost entry on LDAP and directly forward email to correct mailhost.

If you define all domain names in control/locals control/rcphosts, hosts 
will forward the mail to correct mailhost via QMQP protocol.
This is the same for POP3/IMAP sessions.

Thanks

On 12.01.2013 17:31, Friedrich Locke wrote:
> Hi.
>
> I am willing to try qmail+ldap. Some doubts arose!
> The scenario would be:
>
> 1 ldap server,
> 5 qmail servers,
> 1K domain
> 30K users.
>
> My doubt is the following:
>
> These 1k domain may be served by any of the 5 qmail server, ok? Will i 
> have to include 5 mx recorder for each of the 1k domain?
> That will make 5k entries in my dns server, is that right ?
>
> thanks in advance.