MX record help
On my VPS i have a domain example.com, I am using an external shopping cart for it hosted on a 3rd party server, so I had to change the A record for that domain to point to their IP address...
The issue I now have is that any mail sent to that domian is not coming as there is no email account setup t the 3rd party location and is getting routed there.
What I want to do is be able to keep the mail coming to my VPS were i have the example.com account created.
I have been searching and reading but am stuck, I need help how to setup the MX record to keep mail coming to my server for example.com
Thanks
Tom
-
Hey adataman, You can think about editing the MX record for the domain from either WHM or cPanel interface. What you really need to do is open the file to be edited, find the following piece of info there : domain.com TTL IN MX - mail.domain.com ( if this is not like this, may it look like this ) Near to this, you will find the line marked mail, which will be with the DNS record CNAME, change it to A record and in the next field give your local server IP, which will become like : mail TTL IN A - Local IP. So basically this will be your records : ============= domain.com. 14400 IN MX 0 mail.domain.com mail 14400 IN A IP ( local IP ) ============= Also, make sure this domain is listed in the file /etc/localdomains 0 -
Hello :) When editing the DNS Zone or MX record, ensure that "Local Mail Exchanger" is selected under "Email Routing" so the domain name remains in the /etc/localdomains file. Thank you. 0 -
Thanks Triantech and cPanel Michael, Everything now seems to be working great :) 0 -
Hey adataman, Great to know :) 0
Please sign in to leave a comment.
Comments
4 comments