LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-26-2013, 05:27 PM   #1
mlewis
Member
 
Registered: Mar 2006
Posts: 187

Rep: Reputation: 16
Two SMTP servers, one domain, MX problem


I understand how MX works in that I can either load balance using equal priorities or I can have smarthosts using high low priorities. I get this.

Like many, I host many domains so have one domain (mydomain.com) which has an MX and reverse record pointing to the mail server (let's call it mta.mydomain.com) which hosts email for multiple domains.

In this case, there is an upstream provider which handles it's own DNS which means I need to contact them to have reverse records created, even though I run my own DNS servers beyond that. I cannot contact them and ask them to create a reverse every time I host a new domain because they will mess that up. Hence, I have one mta.mydomain.com record and a backup which I do use as a smarthost only.

Now I need to test a new mail server but it needs to be on the mydomain.com as well so I've set it up as mta2.mydomain.com.

I've taken a few domains off of the mta.mydomain.com mail server and put them on the mta2.mydomain.com mail server.

Of course, email coming in is now trying to get on either server, depending on which responds first so of course, sometimes fails.

So the question is, how do I test the new mail server which is in the same domain but not have balance or backup routing issues. I suspect that I only need to remove the mta2.mydomain.com MX record from mydomain.com and only put it into the domain records which I've moved to the new server? I didn't want to try this yet because I don't want to create any propagation problems.

And, I certainly hope I've explained this correctly and am happy to further explain if not.

Thank you kindly.

Last edited by mlewis; 11-26-2013 at 05:42 PM.
 
Old 12-02-2013, 04:39 AM   #2
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Yes , In absense of MX record A record pointing to an address can work as MTA.


Thanks
 
Old 12-05-2013, 04:47 AM   #3
wstewart90
Member
 
Registered: May 2013
Distribution: Arch Linux
Posts: 86

Rep: Reputation: Disabled
Split domain routing is useful for things like migrating mail domains from one server to another. You may want to look into setting it up for your particular MTA. It will basically take any email accounts within a specified domain not present on mta.mydomain.com and forward them to mta2.mydomain.com.
 
Old 12-05-2013, 06:19 AM   #4
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
What I dont get is why the remote ISP needs your ptr records? Are the responsible for this ptr's?
Maybe spf might help out with this particular ISP.
 
Old 12-05-2013, 09:24 AM   #5
mlewis
Member
 
Registered: Mar 2006
Posts: 187

Original Poster
Rep: Reputation: 16
Thanks for all the input, this works as it should now.
My mistake was to put both mail servers in the master MX record which was causing the mail to behave as if being smart hosted. My need was to in fact flow email to different servers.

As for why this is needed upstream, it is because unlike our dedicated circuits where we control the entire IP range for DNS, sometimes, the provider is a cable company which doesn't seem to really understand 'business' needs. Maybe in time they will but right now, it's a pain because unless I have them mod their records, email bounces because the return reverse is their IP.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ideas? Mail to one domain needs to be sent to 1 of 2 SMTP servers based on email id! mkodsf Linux - General 5 05-28-2010 09:23 AM
How i use my local smtp server and smtp server of my domain registrar simultaniosly Sanjeesh Linux - Networking 5 11-29-2008 05:07 AM
Samba 3.0.21a and Samba Domain Member Servers in a Windows 2003 ADS Domain ramz Linux - Networking 3 04-09-2006 08:26 PM
Cannot connect to any SMTP Servers? DiZASTiX Linux - General 13 06-16-2003 01:07 AM
SMTP POP3 Servers Nezar Linux - Networking 1 03-19-2002 02:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration