DA as backup emailserver???

chow

Verified User
Joined
Aug 27, 2003
Messages
123
Location
The Netherlands
I need some help.. In DA I've set 2 mx records

MX 0 server on other location
MX 10 the DA server itself

When the server on the other location is down DA should keep the email till the other server is up again. This however doesn't happen. Emails bounce.. I have no clue how to proceed on this.. Any suggestions?
 
For one you shouldnt use 0 as a mx number. Use like 5 and 10. Also there is no reason it would bounce if it is setup correctly. Did you add all the domains.

Also I dont know why you are doing this because once your main server is back up its not like its gonna forward the mail back to the master server. So your users will have to login to both boxes to get their emails.
 
Generally I simply delete posts with this much misinformation, but in this case, since it's been a few days and some folk may have read it and rely on it, I thought it better to point out why it's incorrect.
For one you shouldnt use 0 as a mx number. Use like 5 and 10.
This is simply incorrect. You can use integer equal to or greater than zero (I don't know if there's an upper limit). These are what we call cost values. The email server that costs the least will be tried first. We often use the 0 (zero).
Also there is no reason it would bounce if it is setup correctly. Did you add all the domains.
I'm guessing (I hate to do that) that you mean setting up all the domains in DirectAdmin. This is never a good idea; you'd have to check both systems every time you check mail.

The correct way to do it would be to simply create a new flat file to identify the domains for which you're doing this, and a delivery method in the exim.conf file.

Not that I recommend it, but I'll discuss that in my reply to the original poster.
Also I dont know why you are doing this because once your main server is back up its not like its gonna forward the mail back to the master server.
It absolutely is if done correctly.
So your users will have to login to both boxes to get their emails.
See above, and my next post, to the original poster.

Jeff
 
I need some help.. In DA I've set 2 mx records

MX 0 server on other location
MX 10 the DA server itself

When the server on the other location is down DA should keep the email till the other server is up again. This however doesn't happen. Emails bounce.. I have no clue how to proceed on this.. Any suggestions?
There have been some threads on these forums that go into detail so I won't copy them here. You can search the forums.

What you have to do is tell exim to accept email for those domains. Exim won't do that automatically; it has no way of knowing for which domains it should do that. The best way to do that is to create a file named something like /var/virtual/okforeigndomains, and to put the domain names in there for which you want your DirectAdmin system to accept email.

Then you have to make custom modifications to exim.conf to accept email from those domains, and an exim router to keep trying to send it back to the primary mail server.

The problem is that when the mail finally reaches the server hosting the domian it's coming from you, so if it's defined as spam or undeliverable it will be sent back to your DirectAdmin box, which won't know what to do with it; it'll just fill up your queue.

There have been several work-around discussions in thread on these forums; I leave finding them to you.

Jeff
 
Back
Top