DNP (DotNetPanel) – Setup Google Apps MX, CNAME and SPF records

Related documents:

  1. cPanel – Setup Google Apps MX, CNAME and SPF records

Since Google Apps is one of the best (if not the best) email services out there, here is how you can setup your domain, which you have its DNS managed by Arvixe, to point to Google.

This blog post presumes you’ve already setup your Google Apps account and that you are just now doing the finishing touches (ie. final DNS settings to have Google handle your emails). If you’ve setup your Google Apps account correctly, this final step will put the finishing touch and allow Google to handle all your emails needs.

For this to be done, you’ll need to setup three DNS records:

  1. MX records, thus telling the world, who handles email for your domain (ie. Google).
  2. CNAME record, so that if you type mail.yourdomain.com (replace yourdomain with your own domain name – like mail.shai-arvixe.com), it points to Google Apps login page.
  3. SPF record to tell the world that Google is allowed to handle emails for your domain (this helps other mail servers know that Google is allowed and thus, help prevent filtering emails from you as spam).

Note: the links above point to Google’s own help articles, respectively.

Edit DNS zone records:

  • In your control panel, click on Domains and then on the domain name in question (picture 1)

    picture 1

    picture 1

  • Now click on Edit DNS zone records (picture 2)

    picture 2

    picture 2

  • First, delete the mail A record and the default TXT record by clicking the Red X to the right on the respective row (picture 3)

    picture 3

    picture 3

MX Records:

  • Click the pencil icon to the left of the first MX record to set the default record to a higher value (higher means lower priority), we don’t want to delete it, since we don’t want to interrupt current mail connectivity if such exists (picture 1)
    picture 1

    picture 1

  • Change current value of 10 (ten) to 20 (twenty) and click Save (picture 2)
    picture 3

    picture 2

  • Now go to Google’s MX Records page and begin entering new records, one at a time. Click Add record (picture 4)

    picture 3

    picture 3

  • Pick MX from the drop-down box, enter the record in the Record Data field and enter the priority in the MX Priority field (picture 4)
    picture 4

    picture 4

  • Repeat this step for all the MX records that Google provide in the aforementioned link.
  • Note: Don’t enter the . (period) at the end of each record (as Google says, since our DNS doesn’t need it.
  • At the end, you should have something like (picture 5)
    picture 5

    picture 5

CNAME Record:

  • Now go to Google’s CNAME Records page and begin entering new records, one at a time. Click Add Record (picture 1)
    picture 1

    picture 1

  • Pick CNAME from the drop-down box, type mail in the Record Name field and ghs.google.com in the Record Data field (picture 2)
    picture 2

    picture 2

  • You can now also add docs, sites and calendar CNAMEs as well (picture 3)
    picture 3

    picture 3

SPF Record:

  • Google recommends that you add the following SPF record to your DNS zone. Click Add record, pick TXT from the drop-down box, copy/paste the record into the Record Data field (picture 1)
    v=spf1 include:aspmx.googlemail.com ~all

    picutre 1

    picutre 1

End result (after MX, CNAME and SPF):

After all said and done, you can always ask Arvixe’s support to review your dns zone and make sure you did it correctly, this is what we should see, if you did it all right (picture 1)

picture 1

picture 1

Tags: , , , , , , , | Posted under Domain Names, DotNet/Windows Hosting, DotNetPanel Administration, Internet | RSS 2.0

13 Comments on DNP (DotNetPanel) – Setup Google Apps MX, CNAME and SPF records

  1. Pingback: cPanel – Setup Google Apps MX, CNAME and SPF records | Arvixe Blog

  2. Anonymous says:

    SPF Record:

    “~all” means that any server is allowed to send the e-mails, therefore, it doesn’t protect the sender domain. So, in order to protect the sender domain — the idea behind SPF –, use “-all” instead. “-all” means that e-mails are only valid when sent by a server listed in the SPF string.

    • Before using “-all” it is very important to understand the implications of doing that. If you are not using the same server as your incoming mail to send mail out, you would need to specify that server in the SPF record. So, if a third party or your ISP is being used to send mail out, either a proper SPF record needs to be setup or if you don’t have enough knowledge to do so, use “~all”.

  3. Anonymous says:

    You’re absolutely right, Arvand! However, using “~all” is the same as not having a SPF record in place at all. In other words, “~all” makes only sense while testing the SPF record.

  4. AaronW says:

    I’m setting up my google apps today using Arvixe hosting.
    In reference to the above comments please look at this link: http://www.google.com/support/a/bin/answer.py?hl=en&answer=33786
    As you can see google recommends using the SPF settings Arvand has put in this guide. So you should probably use “~all” and not “-all”.
    Great guide Arvand!

  5. shankar says:

    i did same setting in DNP but still google apps not integrated with DNP. please help me and thanks in advance

  6. thanks a lot mate…
    my service provider was really not helping me out on this and really couldnt get it to work for around three days… but with your tutorial it was piece of cake…
    thanks again…
    if you’d permit id like to republish this post on my blog with dure credit given to the original post… http://imanishtanwar.blogspot.com/

  7. Hello,

    I completed the tutorial a few hours ago, and mail.MYDOMAIN.com still point’s to the arvixe webmail, but docs and calendar points to Google. Am i missing something?

  8. Rob says:

    The spf record has been updated on google’s website: http://www.google.com/support/a/bin/answer.py?hlrm=en&answer=33786

    It is now:
    v=spf1 include:_spf.google.com ~all

  9. Daniel Paiva says:

    Indeed Arvixe is being the best solution I EVER found. I used godaddy for 10 years, and now I know what is really to be free. Thanks arvixe.

  10. Todd Muskopf says:

    Hi,

    Thanks for this entry–I was having a hard time finding the MX server area in the new cpanel until I found this.

    When I went through the Gmail setup, it gave me MX settings, which I changed, but it didn’t mention anything about CNAME or spf settings. Should those be changed as well?

Leave a Reply

Your email address will not be published. Required fields are marked *


× 8 = 8

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>