You could do this:


Setup mx.test.com IN A xxx.xxx.xxx.xx1 mx.test.com IN A xxx.xxx.xxx.xx2 test.com IN MX 5 mx.test.com


Then, on those machines, set up a smtproute (using the qmail control file smtproutes) to the third machine. On that machine, make sure that test.com is in the locals file.


That will round-robin between the mx.test.com machines at the two IP addresses (xxx.xxx.xxx.xx1 and xxx.xxx.xxx.xx2) and those machines will send it to the other machine for delivery.


Trey Nolen

----- Original Message ----- From: "Walter Brunner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 18, 2004 5:49 PM
Subject: [qmailadmin] special setup for "hidden primary" mail-server



Hello,

I want to realize the following setup in DNS for the domain test.com
test.com.             IN      MX      5 mx1.test.com.
test.com.             IN      MX      10 mx2.test.com.
test.com.             IN      MX      15 mx3.test.com.

Can I force all incoming mail for test.com to deliver first to mx2 or mx3?

Solution 1: Setup iptables on mx1 to only receive mail from mx2 and mx3.

Solution 2: Different DNS-entries for internal or external use.

But I think there should be a better solution for this. Does someone have a better setup for this?

I want this setup, because the load for virus-scanning should go away from mx1 to mx2 and mx3. But the mail should be delivered (through mx2 or mx3) to mx1 because mx1 has the best internet-connection for my clients to check the mail per pop3, imap, ....

I want to use standard setup with qmail, qmail-scanner, vpopmail for this.

Thanks,

Walter





Reply via email to