How to create domain mail if hosted on cloudflare

To create a custom domain email if your website is hosted on Cloudflare, you'll need to follow these steps:

Step 1: Verify your domain ownership

  1. Log in to your Cloudflare account and go to the DNS settings for your domain.
  2. Click on the "Add a record" button and select "TXT" as the record type.
  3. In the "Name" field, enter _txt.google (without quotes).
  4. In the "Content" field, enter the TXT record provided by Google (you'll get this in the next step).
  5. Click "Save" to save the record.

Step 2: Set up Google Workspace (formerly G Suite)

  1. Go to the Google Workspace website and sign up for a new account.
  2. Choose the plan that suits your needs (e.g., Basic, Business, or Enterprise).
  3. Fill out the registration form and agree to the terms of service.
  4. Once you've created your account, go to the Google Workspace dashboard.

Step 3: Set up your custom domain email

  1. In the Google Workspace dashboard, click on the "Domains" tab.
  2. Click on the "Add a domain" button.
  3. Enter your custom domain name (e.g., yourdomain.com) and click "Next".
  4. Verify your domain ownership by clicking on the "Verify" button next to "TXT record".
  5. Once verified, click "Next" and follow the prompts to set up your email address.

Step 4: Configure Cloudflare to route email traffic

  1. In your Cloudflare account, go to the DNS settings for your domain.
  2. Click on the "Add a record" button and select "MX" as the record type.
  3. In the "Name" field, enter "@" (without quotes).
  4. In the "Priority" field, enter "10" (or the recommended priority for your email provider).
  5. In the "Target" field, enter the MX record provided by Google Workspace (you'll get this in the next step).
  6. Click "Save" to save the record.

Step 5: Set up MX records for your custom domain email

  1. In your Google Workspace dashboard, go to the "Settings" tab.
  2. Click on "Forwarding and POP/IMAP" and then click on "MX records".
  3. Copy the MX record provided by Google Workspace (it should look something like mx.google.com with a priority number).

Step 6: Test your custom domain email

  1. Send an email to your custom domain email address (e.g., [email protected]) to test if it's working correctly.
  2. Check your email client or webmail interface to see if the email has been received.

That's it! You should now have a custom domain email set up with Google Workspace and Cloudflare.