Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How do I route mail traffic to remote server?

Posted on 2008-10-13
11
227 Views
Last Modified: 2012-05-05
I'm currently running a Fedora Core 6 web server that handles my website, database, and email.  I would like to offload the processing of email message to a new server.  I couldn't figure out the DNS settings to route email traffic for this domain to a different server/IP address.  Any suggestions on the best method?
0
Comment
Question by:laicc
  • 4
  • 3
  • 3
  • +1
11 Comments
 
LVL 40

Expert Comment

by:omarfarid
ID: 22704750
you need to change the MX record for that domain in dns to point to the other server ip address
0
 
LVL 4

Expert Comment

by:tweaky
ID: 22705579
omarfarid is very correct. You need to change the MX records for that domain. How and where do you manage your domain? If you give us details, we might be able to help you further.
0
 
LVL 9

Expert Comment

by:michofreiha
ID: 22706663
changing MX record is the best solution...Another solution is to forward emails to another server based on each account but this method change from mail server to another...If you tell us which mail server are you using then we can help much more better
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

Author Comment

by:laicc
ID: 22708224
Here are my DNS records ...
Host            Record Type            Value
70.110.120.025 / 24      PTR            mydomain.com.
mydomain.com.      NS            ns.mydomain.com.
mydomain.com.      A            70.110.120.025
mydomain.com.      MX (10)            mail.mydomain.com.
ftp.mydomain.com.      CNAME            mydomain.com.
mail.mydomain.com.      A            70.110.120.025
ns.mydomain.com.      A            70.110.120.025
webmail.mydomain.com.      A            70.110.120.025
www.mydomain.com.      CNAME            mydomain.com.

There's an MX and A record for handling mail ...
0
 
LVL 4

Expert Comment

by:tweaky
ID: 22708333
In your case the easiest thing would be to change the following record:

"mail.mydomain.com.      A            70.110.120.025"

Change the IP address of mail.mydomain.com  to whereever you want your mail to go to.

A that's it.

Actually it may take upto 48 hours for the DNS change to propagate all servers, but you should see the change take affect quite fast on most servers.  
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 22709011
The mail.mydomain.com is not the FQDN to which mail is sent by other domains. Other domains will be looking for the MX records of the domain. This FQDN will be mostly used by the domain users to point to for sending and receiving emails.
0
 
LVL 4

Expert Comment

by:tweaky
ID: 22711807
omarfarid:

If you look above at the DNS records that laicc provided, you will notice that the MX (10) for this domain is mail.mydomain.com. Further down, there is A record for the mail.mydomain.com.  The user can EITHER modify the MX record directly with the IP  or FQDN or the new host that will handle email for this domain OR change the A record for the mail.mydomain.com (because that's what the MX record is pointing to).

If the user changes the MX record directly, there is less potential for other things to break - like mails clients and such.  
0
 

Author Comment

by:laicc
ID: 22712344
So is the recommendation to ...

A) Chnage both MX and A records to the new IP
B) Change A record to new IP address and leave MX alone
C) Change MX record to new IP address and leave A record alone

Thanks!
0
 
LVL 4

Accepted Solution

by:
tweaky earned 250 total points
ID: 22712610
Don't do option A. Either do option B or option C, but not A. To minimize the side affects of this change, it is probably best to implement option "C) Change MX record to new IP address and leave A record alone"
0
 
LVL 40

Assisted Solution

by:omarfarid
omarfarid earned 250 total points
ID: 22712671
Sorry, It seams that I posted my comment before seeing your posting of dns records.

Here you are setting:

A record for mail.mydomain.com.
MX record to point to mail.mydomain.com.

So, as tweaky commented ( ID: 22711807 ), you may do B) unless you need mail.mydomain.com to point for something else, then you need to do C)

How your users are sending mail and accessing their mailboxes? Are they using webmail or SMTP / IMAP / POP ?
0
 

Author Comment

by:laicc
ID: 22713226
I'm using webmail to access email so I should probably change the A record for webmail to point to the new IP as well.

Thanks Omar and Tweaky for the great discussion!!!
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question