Link to home
Start Free TrialLog in
Avatar of ddhutto
ddhutto

asked on

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

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.
Avatar of ddhutto
ddhutto

ASKER

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).
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.

Avatar of ddhutto

ASKER

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?
ASKER CERTIFIED SOLUTION
Avatar of Xorlev
Xorlev
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ddhutto

ASKER

Works perfect now.

Thanks again!
Avatar of ddhutto

ASKER

Works perfect now, thanks again.