Afrihost: Set up MX records

Tip! Only Google Workspace customers who want to use Gmail must change their MX records. You can skip this procedure and continue to use your current email provider with Google Workspace.

A Beginner's Guide to Signing up for Google Workspace

You’re now ready to set up Gmail as your business email for your domain (and, if you haven’t already, verify your domain).

To do this, you need to sign in to your domain host and direct the email for your domain to the Google Workspace servers. It’s like registering your new address with the post office when you move so that your mail gets delivered to the right place. We’ll walk you through the steps.

Before you begin

  • Verify that you own your domain.

    Or, you can verify now with an MX record. We’ll show you how while you're setting up the MX records.

  • Create user accounts in Google Workspace for your team.

    If your team members already use email with your domain (their email address ends with your domain), you have to create their user accounts in Google Workspace before you change any MX record settings. Otherwise, they won't be able to send or receive messages with their business address in Gmail.

Change your MX records

Step 1: Sign in to your domain host
  1. Leave the Google Admin console setup instructions open.
  2. Open a new tab or browser window and go to the Afrihost site at

    Two browser windows are shown. Window 1 is for the domain host site, and window 2 is for the Google Setup Wizard.

  3. On the Afrihost site, click ClientZone at the top of the page.

    Client Zone menu option

  4. Enter the username and password that you created when you purchased your domain from Afrihost, and click Login.

    If you don’t know your account information, you can reset your password by entering your username in the login screen or by contacting Afrihost support.

    Login button

Step 2: Go to the Afrihost domain settings
  1. In the Afrihost ClientZone page, select Hosting from the menu. You must have a hosting plan with Afrihost to make changes to your DNS settings. If you don't have access to some of the settings described below, conact Afrihost support.

    Hosting menu option

  2. In the My Hosting page, click on the domain name that you want to verify under Shared Hosting. In this example, we'll use the domain, but you'll see your own domain name instead.

    Domain button in My Hosting

  3. Click Hosting Settings.

    Hosting Settings button

  4. In the Hosting Settings section, click DNS Editor.

    DNS Editor button

Step 3: Delete existing MX records
  1. On the Afrihost site, delete any MX records under Type by clicking the Delete icon icon in the Actions column. Don't worry, you'll add new ones in the step below.

    Delete MX records

  2. Click Remove Record in the dialog box that displays to confirm.

    Remove Record button

  3. Repeat steps 1 and 2 for any other existing MX records.
Step 4: Add new MX records

To direct your email to your Google Workspace account, you have to add new MX records to your domain. These are the records that you'll need to add:

MX server address Priority
Important: Some registrars require you to add a period after the .COM in the MX server address.
  1. In the DNS Management page of your Afrihost site, click Create New Record.

    Create New Record button

  2. In the Type field, select MX from the drop-down list.

    MX Type drop-down option

  3. Leave the default value in the Record field, and enter 1 in the Priority field.

    MX Priority field

  4. In the Content field, enter ASPMX.L.GOOGLE.COM Include the period with the MX record.

    MX record Content field

  5. In the TTL field, enter 3600.

    MX record TTL field

  6. Click Create to save your new MX record.

    MX record Create button

  7. Click OK to confirm.

    MX records confirmation window

  8. Repeat Steps 1-7, entering the remaining values (MX Server address) from the table above, and setting the Priority values respectively.

    MX records added

    If you make a mistake after adding a record, you can edit it by clicking the Edit icon icon.

  9. Skip this step if you already verified your domain by another method (such as TXT or CNAME record).

    If you need to verify your domain:

    1. In the Admin console, scroll to the Get your verification code section and click the Copy button.

      The MX records table is shown and a red circle highlights the Copy button next to the MX verification record.
    2. Paste the value in the Value/Answer/Destination/Target column.
    3. Make sure the record's priority is set to Low or to 15 or greater.
    Note: If your registrar rejects the verification code, try deleting the period at the end of .com.
Step 5: Tell Google to find your new MX records
  1. Sign in to your Google Admin console.

    Sign in using your administrator account (does not end in

  2. Check the boxes to confirm:

    1. You've created accounts for all existing email addresses in your organization.

    2. You're ready to stop receiving messages at your old email provider and start receiving them in Google Workspace.

  3. Click Continue.

  4. Scroll to the bottom of the next page and click Activate Gmail.

Google, Google Workspace, and related marks and logos are trademarks of Google LLC. All other company and product names are trademarks of the companies with which they are associated.

Was this helpful?
How can we improve it?

Need more help?

Sign in for additional support options to quickly solve your issue

Clear search
Close search
Google apps
Main menu
Search Help Center