Multiple Email Servers

nikdahl

Verified User
Joined
Mar 14, 2005
Messages
65
Location
Seattle, WA, USA
I'm running into a small problem, I'm hoping someone out there can help me out.

All of our web hosting is done through DirectAdmin, but a large portion of the accounts are using an external CommuniGate server for email (Premium Accounts).

Now the problem we are running into, is when a user that has their email and web hosted on the DirectAdmin server tries to email to a user that has their website hosted on DirectAdmin, but their email on CommuniGate.

When the email is sent, the MX record isn't looked up, because something is telling the machine that the domain is on the DirectAdmin machine (so it tries to keep it on the DA server, doesn't get sent through to the CommuniGate server).

Does this make sense?

Is there any way around this?
 
Logged in to the site control panel you'll see an option for MX Records. Be sure the checkmark is unchecked and the MX record points to the other server.

If you don't see the MX Records section you'll need to (as admin) turn on DNS management for the domain first.

Jeff
 
Sorry to bring this post back up..

Is there a way to do this by editing a conf file?

The problem is, directadmin doesn't have control of the zone file.. and it would be a big PITA to give it control.

Why is it that DirectAdmin can't just check the records?
 
Giving DA it's limited control is much easier than editing the script. You just as admin give the reseller DNS control and then as the reseller give the user DNS control.

Or as admin you have DA's limited control.

If that limited control isn't enough you can try making changes to the zone files; they're generally located at either /var/named or at a link therefrom.

However DA may make changes to zone files whenever a zone is changed or added. You may have to change one of the templates.

DA templates are found at /usr/local/directadmin/data/templates. If you change them in position they may get overwritten by the next DA update; instead copy them to /usr/local/directadmin/data/templates/custom and change them there.

Once templates are changed all DNS zone files will be changed to match the new templates at the next DA zone update.

Jeff
 
OK, I think I understand what you are suggesting.

All of our DNS management is done through Webmin or command line. DA just creates the master zone, and one slave zone, basically.

The problem is, that if there are subdomains, or external mail servers, etc that have been set up in webmin, then allowing DA to control the zone will overwrite any of those.. and set the zone up to match the templates.

I guess what I'm asking, is what exactly DA do at the system level when you uncheck the box saying "Use this server to handle my emails"?
 
If Webmin is creating the zones where DA expects them to be, then they're still manageable by DA, but managing them might change them, because DA doesn't know how to manage certain kinds of record types.

Unchecking the box has nothing to do with DNS. It makes a change to the file exim.conf uses to determine if a domain is local or foreign.

Jeff
 
Back
Top