Language & currency
Currency

Site Web gratuit & Serveur Migration

Colonel Serveur

This article explains how to configure DNS settings in cPanel so a domain can use Espace de travail Google for email and collaboration services. The process replaces local mail handling with Google mail servers.

Prerequisites and warnings

  • You must have an active Google Workspace subscription for the domain.
  • DNS changes affect email delivery for the domain.
  • After switching MX records, email accounts are managed in Google Workspace, not in cPanel.

These steps apply to standard Hébergement cPanel environnements.

Étape 1: Create and verify a Google Workspace account

  1. Create a Google Workspace account for the domain.
  2. Access the Google Workspace admin console.
  3. Complete domain verification using one of the supported verification methods.

Google services remain inactive until domain verification is completed.

Étape 2: Remove existing MX records

  1. Connectez-vous à cPanel.
  2. Ouvrez le Outils page.
  3. Dans le Domaines section, cliquez Editeur de zones.
  4. Localisez le domaine et cliquez sur Manage.
  5. Identify all existing MX records.
  6. Delete each existing MX record.

[Espace réservé pour la capture d'écran: Zone Editor showing existing MX records]

Save the current DNS configuration before deleting records so it can be restored later if needed.

Étape 3: Add Google Workspace MX records

Primary MX record

  1. Dans Editeur de zones, cliquez Add MX Record.
  2. Set the zone name to the domain.
  3. Confirmer TTL is set to 14400.
  4. Set Priority à 1.
  5. Set Destination based on signup date:
    • Accounts created before April 2023: aspmx.l.google.com
    • Accounts created after April 2023: smtp.google.com
  6. Save the record.

Additional MX records for older accounts

If the account was created before April 2023, add the following records:

  • Priority 5, Destination alt1.aspmx.l.google.com
  • Priority 5, Destination alt2.aspmx.l.google.com
  • Priority 10, Destination alt3.aspmx.l.google.com
  • Priority 10, Destination alt4.aspmx.l.google.com

[Espace réservé pour la capture d'écran: Google Workspace MX records added]

Étape 4: Update the SPF record

  1. Dans Editeur de zones, locate existing SMS records starting with v=spf.
  2. Delete the existing SPF record.
  3. Add a new SMS record with the following value:
v=spf1 include:_spf.google.com ~all
  1. Save the record.

[Espace réservé pour la capture d'écran: SPF TXT record configuration]

Étape 5: Set email routing to remote

  1. Ouvrez le Outils page in cPanel.
  2. Dans le E-mail section, cliquez Email Routing.
  3. Select the domain.
  4. Choisir Remote Mail Exchanger.
  5. Cliquez Change.

[Espace réservé pour la capture d'écran: Email Routing set to Remote Mail Exchanger]

DNS propagation can take up to 24 heures. Email delivery begins once propagation is complete.

Reverting back to cPanel email

To stop using Google Workspace:

  • Remove the Google Workspace MX records.
  • Restore the previous MX records.
  • Restore the previous SPF record.
  • Change email routing back to Local Mail Exchanger.

After reverting, email accounts are managed again through cPanel.

Deliverability considerations

When routing email through external providers, proper DNS alignment is critical. For additional filtering and reputation control, services such as Experts en matière de spam can improve mail reliability. Domains with multiple services or advanced routing requirements may benefit from infrastructure like serveurs cloud.

Cet article a-t-il été utile?