0

I am newbie and facing a problem which you experienced folks can help.

  1. My website abc.com is hosted with provider.
  2. mx records are pointing to root domain (0 abc.com)
  3. mail.abc.com is CNAME and pointed to abc.com.
  4. if i type mail.abc.com in browser, it opens abc.com
  5. I have made a website in my home server and want to use it for website only and want to keep mail with hosting provider.
  6. SPF records have some other ip addresses which are different from my website ip. (like website ip is xxx.xxx.xxx.145 but spf records are xxx.xxx.xxx.218 and xxx.xxx.xxx.87)

How to proceed with this? I get this so far (which may be absolutely wrong):

I should point mail.abc.com to old website ip (or ip addresses mentioned in spf?) Then point website A record to home server ip Will this work?

1 Answer 1

0

To get the DNS updated, change mail.abc.com to an "A" record with the IP address of your mailserver (ie whatever the current value is for abc.com).

You will then be free to change abc.com and www.abc.com to the new address, and the MX record will correctly resolve so mail will continue.

There is a lot of nuance with SPF and the ideal answer on how to configure it depends on how you are using email - but hopefully the following is useful -

If one of the parts of the SPF record includes the word "mx" then that record likely covers your current use. If you don't have the word "mx" in the record, you may want to add it - it can't hurt and could help in some setups. You probably want to leave the existing ip address records - these are likely used by your hosting provider to actually send email. (Either additional IPs on the same mail server, or more likely your web server is configured with a basic mail server which relays all email on to your hosting providers actual mail server. It might be worth asking your hosting provider to clarify this - and also asking if they should be replaced with an "include" record - which is a more flexible way of doing things)

8
  • I changed the settings but not cpanel is not receiving mails. I can send mails and they are received by recipient. mx record is 0 abc.com. and i haven't changed anything in spf records. What can be issue and how to rectify it? Apr 23 at 10:39
  • What is your domain name?
    – davidgo
    Apr 23 at 11:00
  • MX record needs to be changed to mail.abc.com (and mail.abc.com needs to additionally have an A record associated with your mail server - ie the old IP address of the web hosting)
    – davidgo
    Apr 23 at 11:01
  • My domain name is: kuntalfoods.com. I have now changed mx to mail.kuntalfoods.com and pointed mail.kuntalfoods.com to old ip of web hosting. I will wait for few hours and then check again, Apr 23 at 11:58
  • unable to receive any mail from Gmail etc. I can send mail though, Apr 23 at 13:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.