Skip to content

How to Set Up a Custom Email Address Using Gmail and Cloudflare #17

@fewensa

Description

@fewensa

Follow these steps to send emails using a custom domain (e.g. alice@degov.ai) via your Gmail account.


1. Confirm Cloudflare Email Routing

  • Check your inbox for an email forwarded by Cloudflare.
  • Open it and click the confirmation link to verify your address.
  • Once confirmed, your Gmail will start receiving emails forwarded from your custom domain.

Cloudflare Confirmation


2. Enable Two-Step Verification on Your Google Account

You need two-step verification enabled before setting up App Passwords.

🔗 Enable Two-Step Verification


3. Set Up a Google App Password

This is required to connect Gmail's SMTP server with your custom domain.

  1. Visit: https://myaccount.google.com/apppasswords
  2. Choose the app (e.g., "Mail") and device (e.g., "Other").
  3. Click Generate and save the 16-character App Password.

🔒 Important: Never share your App Password.


4. Add Your Custom Email to Gmail

Go to Gmail:

Settings > See all settings > Accounts and Import > Send mail as > Add another email address

Gmail Settings

Step 1: Enter your custom email

E.g., alice@degov.ai

Enter Email

Step 2: Configure SMTP settings

  • SMTP server: smtp.gmail.com
  • Port: 587
  • Username: Your Gmail address (e.g., yourname@gmail.com)
  • Password: Your App Password (NOT your normal Google account password)

SMTP Setup

Step 3: Set default email and send email

You can set new email to default address.
Image

Another way is chosen bounded email address
Image


⚠️ Troubleshooting

  • If you've just set up 2-Step Verification and generated your App Password, it might take up to 10 minutes before you can use it.
  • If you see a "wrong password" error, try again later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions