How to set up your Hosting plan in SWPanel with email in Google Workspace (Gmail)
In this manual you will learn how to validate your domain ownership in Google Workspace and how to configure your hosting service to make use of Google Workspace email (Gmail).
Also, you will see how to create an SPF record to protect yourself against phishing and phishing, and avoid having your messages marked as spam.
Validating your domain in Google Workspace
Once you have signed up for Google Workspace, the first step is to validate the ownership of your domain.
To validate your domain ownership, you will need to create a TXT record in your DNS Zone using a unique security token that will be provided to you from the Google Admin Console.
Alias |
Type of record |
Content |
Empty |
TXT |
You can find your unique security token in the verification instructions in the Google Admin Console.
The token is a 68-character string starting with "google-site-verification=", followed by another 43 characters.
Example:
google-site-verification=rXOxyZounnZasA8Z7oaD3c14JdjS9aKSWvsR1EbUSIQ |
You will be able to create the TXT record to validate the ownership of your domain through SWPanel following the steps in the following manual:
Configure the MX records for Google Workspace email
Next, you will need to access the Google Admin Console and extract the MX records to create in your DNS Zone to be able to use Google Workspace email (Gmail).
danger If your users use email accounts with your domain name (e.g. [email protected]), you will need to create their email accounts manually through the Google Admin Console before configuring the MX records so that they can continue to receive email.
If you signed up for Google Workspace before April 2023, the records to create in your DNS Zone are as follows:
Alias |
Type of record |
Priority |
Destination |
Empty or @ |
MX |
1 |
ASPMX.L.GOOGLE.COM |
Empty or @ |
MX |
5 |
ALT1.ASPMX.L.GOOGLE.COM |
Empty or @ |
MX |
5 |
ALT2.ASPMX.L.GOOGLE.COM |
Empty or @ |
MX |
10 |
ALT3.ASPMX.L.GOOGLE.COM |
Empty or @ |
MX |
10 |
ALT4.ASPMX.L.GOOGLE.COM |
If you signed up for Google Workspace before April 2023, the records to create in your DNS Zone are as follows:
Alias |
Type of record |
Priority |
Destination |
Empty or @ |
MX |
1 |
SMTP.GOOGLE.COM |
You will be able to create MX records to use Google's email servers through SWPanel by following the steps in the following manual:
info If you need help with DNS configuration, feel free to contact us through the Immediate Help and we will be happy to help you.
danger Once the Google MX records have been created, you will need to remove any other MX records from the DNS Zone.
Next, you will need to go back to the Google Admin Console and open the Settings tool.
Scroll to the bottom of the page and in the Gmail section, click on Activate and finish the configuration process.
info It may take 48 to 72 hours before you start receiving your emails at your new Google Workspace email address. In the meantime, you will be able to receive your emails in the email client you have been using so far.
Avoid spoofing and spam by adding the Google SPF to your DNS Zone.
Protect yourself against spoofing and phishing, and prevent your messages from being marked as spam. SPF is a mail authentication method that protects against phishing and prevents servers from marking your messages as spam.
It helps identify the servers authorized to send messages on behalf of your domain, preventing your emails from being misinterpreted as spam. Implementing SPF is crucial to protect your domain's reputation and ensure the secure delivery of your emails.
danger Before creating the Google SPF record, you must first remove the current SPF record from your DNS Zone.
Alias |
Type of record |
Destination |
Empty |
SPF (TXT) |
v=spf1 include:_spf.google.com ~all |
info If you add the SPF record of a subdomain, in the Alias field, you must indicate the subdomain, and not @.
You can create the SPF record through SWPanel by following the steps in the manual below:
See other manuals of interest: