TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Cloudflare email routing is broken for all Google-hosted email recipients

30 pointsby JoshGlazebrookalmost 2 years ago

2 comments

tssvaalmost 2 years ago
I use Cloudflare email forwarding to my Gmail account for all my personal email and don't have an issue.
lathiatalmost 2 years ago
I am kindof surprised that Cloudflare introduced e-mail forwarding as a product in 2021. The writing has been on the wall for this kind of thing for a long time. If anyone has a chance, you would think it was Cloudflare, because they are big and have some chance for special handling from the big providers like gmail and even they don&#x27;t seem to be able to get it right.<p>I would highly recommend that you get rid of anything that does e-mail forwarding like this. It&#x27;s really outdated at this point. It worked OK in the mid 2000s but as spam battle has grown it&#x27;s gotten complicated.<p>Since you forward every email from provider A to provider B, provider B effectively sees a stream of e-mail from provider A that includes at least some amount of spam (anything that missed their filter). Very often these forwards are used for e-mail addresses that don&#x27;t get a lot of real e-mail but are maybe used infrequently or old addresses you are maintaining and thus get a lot of spam but little legitimate e-mail and so the percentage of spam that makes it through can be quite high, relatively speaking.<p>That person is also not an authorised sender for legitimate e-mail under the various antispam solutions such as SPF - if you forward an e-mail from Paypal for example - you are violating their SPF policy of allowed senders. So then the e-mail has to be &quot;rewritten&quot; to pretend it&#x27;s from an email on provider A, but your e-mail client still has to show it&#x27;s really provider B.. so it&#x27;s difficult to determine if that&#x27;s spam or not.<p>DKIM helps here.. because the email is digitally signed instead of being recognised by the IP. Except to make SPF not fail, you have to do &quot;SRS&quot; or sender-rewriting as previously mentioned. But that changes the content of the e-mail which breaks DKIM. There are some mitigations for all of this (e.g. RFC7960) but the point is for the small fraction of real e-mail taking these &quot;indirect&quot;&#x2F;forwarded email flows it usually erodes some ability of the final provider to do effecient spam prevention, or you get caught up in said spam prevention. There are no winners :)<p>It&#x27;s then difficult for provider B to correctly spam filter with their own methods. Because the e-mail comes from provider A as far as they are concerned, and, while you can parse and guess based on the headers where it came from before that, it&#x27;s error prone and not entirely standardised and bunches of that header trail can be forged.<p>Google offers the ability to pull e-mail into your account with POP or IMAP from a provider that receives the mail into a mailbox temporarily. Or you can setup the domain directly with your preferred provider - e.g. with google workspace, etc. Either of these is a much better method. But I guess you need a non-cloudflare provider currently.