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:

  1. You have a custom domain (e.g., example.com) registered with a registrar (e.g., GoDaddy, Namecheap).
  2. You have a Gmail account (e.g., [yourname]@gmail.com).
  3. You have a domain name system (DNS) provider (e.g., Google Domains, Cloudflare).

Step 1: Verify your domain with Google

  1. Log in to your Google Admin console (https://admin.google.com/).
  2. Click on "Apps" and then "G Suite" (even if you don't have a G Suite account).
  3. Click on "Domain" and then "Verify domain".
  4. 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

  1. Log in to your DNS provider (e.g., Google Domains, Cloudflare).
  2. Create a new MX record for your custom domain (e.g., example.com).
  3. Set the priority to 1 and the value to aspmx.l.google.com.
  4. 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

  1. Log in to your DNS provider.
  2. Create a new TXT record for your custom domain (e.g., example.com).
  3. Set the value to v=spf1 include:_spf.google.com ~all.

Step 4: Set up DKIM record

  1. Log in to your Google Admin console.
  2. Click on "Apps" and then "G Suite" (even if you don't have a G Suite account).
  3. Click on "Domain" and then "DKIM".
  4. Follow the instructions to generate a DKIM key pair.
  5. Log in to your DNS provider and create a new TXT record for your custom domain (e.g., example.com).
  6. Set the value to the DKIM key pair generated by Google.

Step 5: Configure your Gmail account

  1. Log in to your Gmail account.
  2. Click on the gear icon and select "See all settings".
  3. Click on the "Accounts and Import" tab.
  4. Click on "Send mail as" and select "Send mail from another address".
  5. Enter your custom domain (e.g., example.com) and click "Next".
  6. Follow the instructions to verify your custom domain.

Step 6: Test your setup

  1. Send an email from your Gmail account using your custom domain (e.g., [yourname]@example.com).
  2. 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.