Dave <(E-Mail Removed)> wrote:
> DNS is managed at NetSol, website is hosted at a VPS, with Linux and qmail
> for mail, with another hosting company. We will have a Unix server in-house
> with two static IPs through two ISPs, which the Unix box will use to connect
> to WAN. At NetSol, I want to set up MX records pointing to three IPs:
> mail1.domain.com (10) first IP of Unix box
> mail2.domain.com (20) second IP of Unix Box
> mail3.domain.com (30) IP of Linux VPS
Seems plausible so far.
> When the mail arrives I want for it to try the mail1 and mail2 servers
> first. If they are down, I want the mail to go to mail3 server.
Decreasing MX values, like you've shown above, will do this.
> What I want to achieve is, at the Linux VPS, I want to set up local DNS, or
> set-up qmail so that when the mail3 server accepts mail, it will keep trying
> mail1 and mail2 servers.
You shouldn't need to worry about that within DNS - it's a mailer
configuration issue. For example, in sendmail, you can tell it to retry
lower valued MX records automatically. I would hope there are similar
things in other MTAs.
However, since you're talking about using qmail, take a look at
http://www-dt.e-technik.uni-dortmund...mail-bugs.html, with
particular reference to section 3.2. I have no idea whether qmail-1.03
is the most uptodate as I prefer exim and sendmail.
If you really need to resolve this via DNS, take a look at the "views"
keyword in the bind documentation. It allows you to provide different
zone files for different sets of IP addresses. (In your case you could
provide a subset of your primary DNS for your mail host, which omits
the MX details for mail3. Ugly but fairly effective.)
Chris