<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Abdiel49</title>
    <description>The latest articles on DEV Community by Abdiel49 (@abdiel49).</description>
    <link>https://dev.to/abdiel49</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1119173%2F6ce1f855-6d9c-4e19-8956-95e0fb5b0798.jpeg</url>
      <title>DEV Community: Abdiel49</title>
      <link>https://dev.to/abdiel49</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abdiel49"/>
    <language>en</language>
    <item>
      <title>Configure Cloudflare Email Routing with Gmail to Send and Receive Mails</title>
      <dc:creator>Abdiel49</dc:creator>
      <pubDate>Tue, 12 May 2026 16:11:49 +0000</pubDate>
      <link>https://dev.to/abdiel49/configure-cloudflare-email-routing-with-gmail-to-send-and-receive-mails-382j</link>
      <guid>https://dev.to/abdiel49/configure-cloudflare-email-routing-with-gmail-to-send-and-receive-mails-382j</guid>
      <description>&lt;h2&gt;
  
  
  Configure Cloudflare Email Routing
&lt;/h2&gt;

&lt;p&gt;Open: &lt;code&gt;https://dash.cloudflare.com&lt;/code&gt; and go to &lt;code&gt;Email → Email Routing&lt;/code&gt;,  enable Email Routing and create your custom address.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;user@yourdomain.com
→ forwards to
yourgmail@gmail.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Cloudflare will send a verification email to your Gmail account to confirm the forwarding destination. Open the email and verify it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Enable Gmail App Passwords
&lt;/h2&gt;

&lt;p&gt;Open &lt;a href="https://myaccount.google.com/security" rel="noopener noreferrer"&gt;https://myaccount.google.com/security&lt;/a&gt; and enable 2-Step Verification, then open: &lt;a href="https://myaccount.google.com/apppasswords" rel="noopener noreferrer"&gt;https://myaccount.google.com/apppasswords&lt;/a&gt; and generate a new App Password for Mail.&lt;/p&gt;

&lt;p&gt;Google will generate a password similar to:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;abcd efgh ijkl mnop
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will be your SMTP password.&lt;/p&gt;

&lt;h2&gt;
  
  
  Configure Gmail to Send Emails Using Your Domain
&lt;/h2&gt;

&lt;p&gt;In Gmail go to:&lt;/p&gt;

&lt;p&gt;Settings → See all settings → Accounts and Import → Send mail as → Add another email address.&lt;/p&gt;

&lt;p&gt;Add: &lt;a href="mailto:user@yourdomain.com"&gt;user@yourdomain.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw2rzeih7vf6e7dzjqpeg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw2rzeih7vf6e7dzjqpeg.png" alt="Add new mail with your domain image" width="800" height="417"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Use this SMTP configuration:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SMTP Server: smtp.gmail.com
Port: 587
Username: yourgmail@gmail.com
Password: YOUR_APP_PASSWORD
TLS: Enabled
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Verify the Custom Domain Email
&lt;/h2&gt;

&lt;p&gt;Gmail will send a verification email to: &lt;a href="mailto:user@yourdomain.com"&gt;user@yourdomain.com&lt;/a&gt;&lt;br&gt;
Cloudflare will forward it to your Gmail inbox automatically.&lt;br&gt;
Open the email and confirm the verification.&lt;br&gt;
Refresh Gmail, now you can send emails as: &lt;a href="mailto:user@yourdomain.com"&gt;user@yourdomain.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhjnzlzz8c9nxoecne9av.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhjnzlzz8c9nxoecne9av.png" alt="Select send email as a" width="800" height="356"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Configure SPF and DMARC
&lt;/h2&gt;

&lt;p&gt;Add these DNS TXT records in Cloudflare.&lt;/p&gt;

&lt;h3&gt;
  
  
  SPF
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Host: &lt;code&gt;@&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Value: &lt;code&gt;v=spf1 include:_spf.google.com ~all&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  DMARC
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Host: &lt;code&gt;_dmarc&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Value: &lt;code&gt;v=DMARC1; p=quarantine;&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>email</category>
      <category>cloudflare</category>
      <category>smtp</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
