Solved

How do I point my MX files from a domain name to the e-mail server ip address on a virtual server?

Posted on 2008-06-13
6
384 Views
Last Modified: 2013-12-13
I have a Linux virtual server(I don't own the server, just a section of the total virtual server) with Apache Centos 5, and a Simple Control Panel. My problem is that when I try to send mail to the catchall email address I have setup it comes back with a 553 error, but I can send fine from the web based Squirrel Mail located on the server. I'm wondering how can I point from my domain name's host to the ip address that is linked to my domain name on my virtual server?

I know that I have to change the MX records to point to a file in the A folder, but I'm not sure what to change, or what to change it to. In the MX section for creating new MX records it has four fields; Priority, Host Name, Enter Goes To Address, and TTL. The two original MX records were smtp.secureserver.net and mailstore1.secureserver.net with a priority of 0 and 10 respectively.

I changed the A(Host) file labeled @(only one listed in that section) to point to the particular ip address I have linked with that domain name on the virtual server. That part redirected fine and shows the Apache 2 CentOS test page when I type in my domain name and try to view it. The e-mail however, just won't receive.The e-mail config section of the Simple Control Panel says that you can't receieve properly if the mail server name is wrong, and it lists it as:  

ip-xx-xxx-xx-xxx.ip.secureserver.net ( I  x'ed out the ip numbers)

I'm guessing that since secureserver.net is all over the control panels I use that it's the master servers name, although just for reference the virtual server I have is hosted with godaddy.

Anyone that thinks they can help, let me know if you need any further information.
0
Comment
Question by:ddhutto
  • 4
  • 2
6 Comments
 

Author Comment

by:ddhutto
ID: 21781893
I've just changed the two MX records from smtp.secureserver.net and mailstore1.secureserver.net to smtp.mydomain.com and mailstore1.mydomain.com for goes to, and the host is still @ to see if that works. I'm wondering if instead of mailstore1.mydomain.com(or the smtp.mydomain.com) should have the ip address for goes to or a different sub name like mail.mydomain.com or webmail.mydomain.com because to access mail i have to enter mydomain.com/webmail(but not sure if it works on the same principle).
0
 
LVL 3

Expert Comment

by:Xorlev
ID: 21782928
What you want is something along these lines:

yourdomain.net.     14400   IN      A       my.server.ip
yourdomain.net.     14400   IN      MX      0       yourdomain.net.
mail    14400   IN      CNAME   yourdomain.net.

14400 IN MX 0 means it refreshes every 14400 seconds, on the internet, Mail Exchanger record (MX), with a priority of 0 (greatest). That'll direct your mail on that domain to your server.

You can also add

smtp    14400   IN      CNAME   yourdomain.net.
pop3    14400   IN      CNAME   yourdomain.net.

if you like.

0
 

Author Comment

by:ddhutto
ID: 21783412
That's what I read in another post, but I don't understand where the 14400 comes into play-unless you're referring to the TTL(Time To Live). If my calculator is working right, that's 4 hours, but mine lists 1/2 hour, 1 hour, 12 hours, 1 day, 1 week.

This is what I have at this point

A(Host)
Host                                                  Points To                                                                  TTL

@                                                      xx.xxx.xx.xxx(the VPS ip address)                     1 hour

Nothing else in A

Cname(Aliases)
Host                                                  Points To                                                                   TTL

www                                                @                                                                           1 hour
mobilemail                                           mobilemail-v01.prod.mesa1.secureserver.net      1 hour
pda                                                     mobilemail-v01.prod.mesa1.secureserver.net      1 hour
email                                                   email.secureserver.net                                          1 hour
mail                                                     pop.secureserver.net                                            1 hour
pop                                                     pop.secureserver.net                                            1 hour
smtp                                                   smtp.secureserver.net                                           1 hour
ftp                                                      @                                                                             1 hour
webmail                                             webmail.secureserver.net                                       1 hour
e                                                         email.secureserver.net                                            1 hour

MX(Mail Exchange)
Priority        Host                                 Goes To                                                                 TTL

0                  @                                     smtp.mydomain.com                                              1 hour
10                @                                     mailstore1.mydomain.com                                     1 hour

I'm not sure if the one's that go to the secureserver.net  in Cname instead  of my domain are messing with anything, but I didn't want to mess with it in case those did have something to do with my server, since that's where they're located.

From what you see above, what looks like it needs to be changed?
0
Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

 
LVL 3

Accepted Solution

by:
Xorlev earned 500 total points
ID: 21783462
14400 is just what I use. Yes, it is the TTL. You don't need 2 MX records unless you have 2 separate email servers..SMTP doesn't count. You want "Goes to" to be an IP, and "host" to be mail.
0
 

Author Comment

by:ddhutto
ID: 21783586
Works perfect now.

Thanks again!
0
 

Author Closing Comment

by:ddhutto
ID: 31467016
Works perfect now, thanks again.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.

912 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now