Gmail send from custom domain
To send emails from a custom domain using Gmail, you'll need to set up a few things. Here's a step-by-step guide to help you achieve this:
Prerequisites:
- You have a custom domain (e.g., example.com) registered with a registrar (e.g., GoDaddy, Namecheap).
- You have a Gmail account (e.g., [yourname]@gmail.com).
- You have a domain name system (DNS) provider (e.g., Google Domains, Cloudflare).
Step 1: Verify your domain with Google
- Log in to your Google Admin console (https://admin.google.com/).
- Click on "Apps" and then "G Suite" (even if you don't have a G Suite account).
- Click on "Domain" and then "Verify domain".
- Follow the instructions to verify your domain using one of the following methods:
- DNS record: Add a TXT record to your DNS provider.
- HTML file: Upload an HTML file to your website.
- CNAME record: Add a CNAME record to your DNS provider.
Step 2: Set up MX records
- Log in to your DNS provider (e.g., Google Domains, Cloudflare).
- Create a new MX record for your custom domain (e.g., example.com).
- Set the priority to 1 and the value to
aspmx.l.google.com
. - Repeat this process for the following MX records:
aspmx2.l.google.com
(priority 5)aspmx3.l.google.com
(priority 10)alt1.aspmx.l.google.com
(priority 20)alt2.aspmx.l.google.com
(priority 30)
Step 3: Set up SPF record
- Log in to your DNS provider.
- Create a new TXT record for your custom domain (e.g., example.com).
- Set the value to
v=spf1 include:_spf.google.com ~all
.
Step 4: Set up DKIM record
- Log in to your Google Admin console.
- Click on "Apps" and then "G Suite" (even if you don't have a G Suite account).
- Click on "Domain" and then "DKIM".
- Follow the instructions to generate a DKIM key pair.
- Log in to your DNS provider and create a new TXT record for your custom domain (e.g., example.com).
- Set the value to the DKIM key pair generated by Google.
Step 5: Configure your Gmail account
- Log in to your Gmail account.
- Click on the gear icon and select "See all settings".
- Click on the "Accounts and Import" tab.
- Click on "Send mail as" and select "Send mail from another address".
- Enter your custom domain (e.g., example.com) and click "Next".
- Follow the instructions to verify your custom domain.
Step 6: Test your setup
- Send an email from your Gmail account using your custom domain (e.g., [yourname]@example.com).
- Check your email client or webmail provider to ensure the email is sent successfully.
That's it! You should now be able to send emails from your custom domain using Gmail.