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
383 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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

744 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

9 Experts available now in Live!

Get 1:1 Help Now