Cloudflare Email Service

(blog.cloudflare.com)

213 points | by jilles 3 hours ago

41 comments

  • Meekro 1 hour ago
    I'm not sure why this announcement has generated so much irritation in the comments-- Cloudflare has been transitioning from "DDoS protection" to "AWS competitor" for many years now, and this is just their alternative to AWS SES.

    It's an email sender that you can access through an API, or directly through Workers. For those who haven't been keeping up over the years, Workers is their product for running code on Cloudflare's platform directly (an AWS Lambda competitor, more or less) and they've been trying to make it the centerpiece of an ecosystem where you deploy your code to their platform and get access to a variety of tools: databases, storage, streaming, AI, and now email sending. All of this is stuff that AWS has had for years, but some people like Cloudflare more (I certainly do).

    One thing that surprised me is the price-- Cloudflare's cloud offerings are usually much cheaper, and I've saved plenty of money by migrating from AWS S3 to Cloudflare's R2. This new offering is 3x the AWS price, though. Weird. Anyway, most small companies don't send enough email for it to matter.

    But getting back to the consensus in the comments here: I'm not sure why people think that they'll be worse about policing spam than AWS SES, Azure Email, etc.

    • sixhobbits 1 hour ago
      I'm not sure if it's a correct impression but my impression is still that AWS is the "devil you know" and Cloudflare is less predictable with more individual decision making from high ups.

      I guess they got that reputation years ago when the founders (?) got into public spats about what they would and wouldn't host. AWS is more lawyers and committees and seems more anonymous, so people don't necessarily like it more but they do trust it to be what it looks like more.

      Probably just a function of time and size.

    • embedding-shape 1 hour ago
      > But getting back to the consensus in the comments here: I'm not sure why people think that they'll be worse about policing spam than AWS SES, Azure Email, etc.

      Cloudflare is (in)famous for not acting against spammers, fraud, piracy and other less savory groups that are hosting their stuff at/behind Cloudflare, so reasonably, people who've been affected by that are now afraid the same thing will happen with email.

      • ttul 51 minutes ago
        When it comes to email delivery, you can't ignore spam. It's the bane of existence of every email sending service and the number one business challenge in that segment. After all, orchestrating delivery over SMTP is not rocket science. But getting that email to not be rejected totally IS rocket science and it's simultaneously an art form known only to a handful of email nerds working at the core of the big email sending services...
        • embedding-shape 46 minutes ago
          Ok, but what about as a CDN/website-proxy/WAF? I know we don't have the same automated reputation-propagation as with email, but same thing supposedly happens there, where eventually you get turned off if you don't act on lawful requests, which is exactly why Cloudflare is unavailable in Spain during La Liga matches, because Cloudflare don't take piracy streams down.

          In theory, Cloudflare should take those down, when requested by legal means, but that doesn't matter. How sure are we that they'll act differently for email, instead of trying to get rid of the reputation system instead?

          > getting that email to not be rejected totally IS rocket science and it's simultaneously an art form known only to a handful of email nerds working at the core of the big email sending services

          It really isn't, you need a clean IP and a clean domain, send handful of emails and you're pretty much whitelisted on most services out there. Maybe you'd say I'm one of the handful, but I personally know more than a handful others who also run their own email services, just like me, and besides the usual hassle of running your own service, as long as you don't spam, your emails will arrive as usual.

      • thomas_gauvin 43 minutes ago
        Blog author chiming in here:

        We have reserved IPs for Email Service and will be protecting the reputation and fighting spam from originating on Email Service.

        If we did not do so, our IPs would get flagged and then emails end up in spam or not delivered. That defeats the purpose of having a transactional Email Service. We're well aware of this.

        • embedding-shape 36 minutes ago
          Will you also do this for other spammers using Cloudflare infrastructure, or just specifically for this email product?

          > For years, Spamhaus has observed abusive activity facilitated by Cloudflare’s various services. Cybercriminals have been exploiting these legitimate services to mask activities and enhance their malicious operations, a tactic referred to as living off trusted services (LOTS) [2].

          > With 1201 unresolved Spamhaus Blocklist (SBL) listings [3], it is clear that the state of affairs at Cloudflare’s Connectivity Cloud looks less than optimal from an abuse-handling perspective. 10.05% of all domains listed on Spamhaus’s Domain Blocklist (DBL), which indicates signs of spam or malicious activity, are on Cloudflare nameservers

          https://www.spamhaus.org/resource-hub/service-providers/too-...

          • Meekro 6 minutes ago
            I would note that Cloudflare has been doing better-- the SBL listings page mentioned in that article[1] shows only 47 active complaints, down from 1201 when the article was written 2 years ago. Many of those complaints are stale, too: I spot-checked a few (referencing the domains fireplacecoffee.com and expansionus.com) and the domains are expired and not being hosted by anyone.

            [1] https://check.spamhaus.org/sbl/listings/cloudflare.com/

        • wang_li 1 minute ago
          I think you should put your money where your mouth is. For each spam message sent to a recipient server, you send $1000 to the recipient.
    • Onavo 17 minutes ago
      > Cloudflare's cloud offerings are usually much cheaper, and I've saved plenty of money by migrating from AWS S3 to Cloudflare's R2. This new offering is 3x the AWS price, though. Weird. Anyway, most small companies don't send enough email for it to matter.

      For certain types of marketing and transactional emails, it's cheaper I think. AWS SES pricing doesn't include attachments. If you assume a maxed out 25MB email attachment body, I think the price comes out to be mostly similar, amortized at least.

      But if you are sending basic text/mostly text transactional emails for stuff like password resets, then SES comes out ahead for sure.

    • password4321 53 minutes ago
      Cloudflare is spending years of goodwill earned through technical skill, trending towards AI enshittification starting with their blog posts.
      • Meekro 47 minutes ago
        I also kind of rolled my eyes at the blog post and its obsessive focus on "agents" -- definitely feels like a solution looking for a problem. But the email-sending product being promoted is probably ok, right? They just happened to write a lot of words observing that ChatGPT can, in fact, call sendmail() through their platform (if you give it access) -- a fact that shouldn't surprise anyone.
        • gardnr 2 minutes ago
          It's like the author handed the copy to the editor who then added a new broken sentence after each original sentence that somehow jams "agents" in there.
        • thomas_gauvin 35 minutes ago
          Blog author chiming in:

          Our initial blog covered most of Email Service's API and what you can expect from it in terms of deliverability, DNS records setup, etc. https://blog.cloudflare.com/email-service/

          Email Service can definitely be used as a transactional email API, and it has everything you would expect like SDKs, binding, observability and more coming on the way

          The agent angle in this post reflects what we're actually seeing from developers during our private beta. And the idea that an agent can have an inbox to communicate is a new piece in the developer toolbelt.

          • Meekro 26 minutes ago
            Thanks for the clarification! Sounds like some developers, including your beta users, are experimenting with new ideas (which includes plugging agents into different workflows to see what happens), while old farts like myself bemoan AI getting plugged into everything and every app sprouting "Ask AI" buttons that they never asked for or wanted.

            I can definitely understand some of the ire-- people are probably imagining how they'll try to contact Verizon and will get back a totally unhelpful email from ChatGPT when all they wanted was to talk to a real human for 5 minutes. Your blog post about hooking up agents to email probably speaks to that fear.

          • fernandotakai 26 minutes ago
            >The agent angle in this post reflects what we're actually seeing from developers during our private beta.

            legit question: did you invite anyone that isn't doing agentic whatever during your beta?

            • Meekro 22 minutes ago
              Thomas can probably speak to this better, but as someone who has participated in other Cloudflare betas: there's usually a button or a form and you can request access.
          • dbbk 24 minutes ago
            It's just email man you do not need to throw an AI buzzword in front of everything
    • Joel_Mckay 1 hour ago
      Almost every SaaS (Spam as a Service) API ends up arguing its minority of legitimate users are a justified excuse for the majority of nuisance traffic.

      Most cloud IP blocks already have very poor reputations, and or already on Spamhaus blacklists.

      People have a right to choose to be upset. =3

      • Meekro 53 minutes ago
        My experience has been the opposite of what you're saying: AWS SES (one of AWS's flagship products, and probably the biggest email sender in the world) is a pretty responsible anti-spam citizen. Spamhaus even wrote this article[1] praising SES's anti-spam efforts. From the article: "Amazon SES has a long-standing relationship with Spamhaus, working closely to prevent suspicious IPs and domains from impacting their network." Though I'm sure that new incidents come up daily, Spamhaus themselves seem to disagree with the notion that SES's IP blocks have "poor reputations."

        [1] https://www.spamhaus.org/resource-hub/service-providers/how-...

        • Joel_Mckay 1 minute ago
          Whatever IP people temporarily host on a cloud incurs the prior users reputation.

          Again, using legitimate traffic to shim network spam is a common counter argument against black listing.

          Of the approximate 274000 banned hosts I stare at... many nuisances are from Amazon, Azure, digital ocean, and Hetzner. I am sure Maildrill or Mailchimp does have legitimate use cases, but generally the majority of the traffic suggests otherwise. I am certainly biased in this opinion. =3

  • SleepyQuant 14 minutes ago
    Funny timing—I actually set up Cloudflare Email Routing for my side project yesterday, just 18 hours before this announcement. The inbound side (catch-all forwarding to Gmail, MX/SPF auto-configured) took maybe 90 seconds tops. Honestly, the DX is night and day compared to the "Mailgun and SES dance" I remember doing five years ago.

    The missing piece for me was outbound. Since my newsletter ships from a subdomain, I ended up sticking with Beehiiv for the custom domain and DKIM because Cloudflare’s outbound wasn't live yet. This announcement definitely closes the loop—if the pricing stays at $0.35/1k, I’m seriously considering consolidating everything.

    Quick question for anyone who’s messed with the Workers email API in preview: does it play nice with the Agents SDK for a "read → classify → draft → approve" loop? I’m currently hand-rolling that workflow over IMAP for my 12-agent setup, and it’s easily the clunkiest, most frustrating part of the stack.

  • freefaler 1 hour ago
    A classic "the tragedy of the commons" with the SMTP protocol.

    When the cost of spamming is near 0.00, all open platforms will be abused to the tilt. We have seen the email channel get less and less reliable with our own clients (password recovery, notifications and etc).

    This might evolve into a couple of oligopolies (Microsoft 365 Outlook, Google Gmail, may be some legacy email providers like Yahoo) and if you want delivery you'd need to pay them, because they'd be the verifiers that you're not a spammer.

    And these platforms will have a hell of time to fight the spammers that will create millions of email addresses and spam trough them.

    • Youden 1 hour ago
      I don't think the protocol is necessarily the problem. For example we don't say the HTTP protocol is the problem when spammers abuse website comment forms or forums, we say it's the server on the other side.

      I think the answer is somewhat the same as where we've gone with many HTTP servers: proof of work. Just like Captcha and more recently Cloudflare turnstile required you complete a task before you'd be able to access as website, senders should be required to complete a task before you'll accept their email.

      It can even be a sliding scale: the higher you want the chances of the recipient seeing it to be, the more work you need to do.

      However this also break emails considered "legitimate" by businesses, like marketing newsletters and other nonsense, which is why it'll likely never happen.

    • xhkkffbf 1 hour ago
      I've gotten my email routed to spam even though it never left the Google cloud. They don't say, "Gosh, this is coming from inside the house. Therefore it's trustworthy." Nope. The push legit mail from other Google hosted domains into spam without a second thought.
      • nutjob2 1 hour ago
        I've had emails from Google end up in spam and I'm using Google Workspace, it's driven by what people flag as spam, not domain trust.
    • ajsnigrutin 1 hour ago
      I'd be happy if we at least started punishing the large, well known and established companies for spamming us...

      ...you know the one, where you have email preferences, and you only have "new messages" and "commercial offers" in the settings, and you uncheck the "commercial offers" and think you're sae. Then you get a spam email from them... check the preferences again, and there's a "new product notification" preference, checked by default, and you uncheck that too. Bam! another spam! "personalized offers" option appeared, check by default. "limited time offers". "value deals", etc.

  • nope1000 1 hour ago
    It's funny. All the examples they show in the blogpost are just things that were already pretty easy without agents. Sending an email when the CI pipeline passes, when a support request is incoming, when an order is shipped. I think we haven't found a problem for this solution.
    • written-beyond 8 minutes ago
      The problem is how bullshit transactional emails are when you're outside of AWS. If you're not expecting to use 10,000 emails a month but would like the option to go over the free tier without committing to 10,000 more. Just let me pay per use FFS.
  • TechSquidTV 1 hour ago
    I feel like a lot of folks down here are focusing too much on the agent part. That's purely marketing. No one who worked on the service, I am sure, was building exclusively for agent usage.

    This is simply the framing device that all marketing needs to present these days.

    • bakugo 1 hour ago
      Of course it's just marketing, but that doesn't mean it's above criticism, especially when it's shoved so hard down our throats.

      "Please stop talking about the thing we can't stop talking about"

  • pradn 13 minutes ago
    How much do existing services trust new email service providers? It would seem to be an uphill battle for Cloudflare to start a new service. It's easy to automate from the start, meaning it's easier to send spam. I suppose reputation is not simply based on the domain the email comes from?
  • aaronbrethorst 8 minutes ago
    I am so excited for this. I’ve used Amazon SES begrudgingly for years and have wanted a better UI and easier routing level automation.
  • ksajadi 24 minutes ago
    I think this is going to be a really good service: the service can be used easily with Workers making it super easy to not only send transactional emails but use it for forms embedded in Pages. I am very much looking forward to using this.

    However, I still think AWS SES is the gold standard of deliverability because of their constant monitoring of your reputation (bounces etc). I always combine it with SendOps (https://sendops.dev/) for easy setup and deep analytics to avoid those issues.

  • hardsnow 1 hour ago
    I seriously think this great! I’ve been saying that email is the right interface for agents for a while now. It is available anywhere, natively threaded, and works for asynchronous long-form communication. Comes with great clients as well.

    I’ve been developing last three months by emailing Claude, with email threads mapping to an isolated workspace and claude -p. Works super well, especially when trying to get some coding done between everything else.

    With right CLAUDE.md and a bit of workflow tooling this extends itself to building other kinds of agents as well. For example, I do my bookkeeping by emailing Claude my statements and receipts, which it then imports into a plain-text accounting system. And we’ve proven this in corporate environment as well, creating agent that can troubleshoot more complex issues by correlating diagnostic logs against product source code.

    Once the basic “email agent” infrastructure is there, creating new agents becomes super simple.

  • amazingamazing 2 hours ago
    More spam at scale. I wish recipients of email had more control over the conditions to which the email is delivered to them, rather than after the fact curation…
    • synkarius 1 hour ago
      Along these lines, I am experimenting with a two-tiered system where I use Proton's sieve filters to create a sender/cc/bcc whitelist for personal emails (which alert my phone) and a non-Proton collection of burnable aliases for everything else (which do not alert my phone). It doesn't solve the problem completely, but it is mitigating it pretty well so far.
  • karimf 24 minutes ago
    Ok I just tried the service since I want to migrate from Resend.

    Seems like you can only send email via the worker or REST API for now?

    Can I send via SMTP? I'm using Supabase and it needs the SMTP credentials.

    I can't find anything on the dashboard or on the docs, even though last year they said it supports SMTP [0]

    [0] https://blog.cloudflare.com/email-service/

  • moribvndvs 2 hours ago
    While we’re adding antiquated and shitty ways to interface with your agent, can we add fax support? Maybe direct-to-mail service for postcards and flyers?
    • tclancy 1 hour ago
      I knew I hung onto that C64 cassette player for a reason! Beyond the new Sturgill album, I mean.
    • verdverm 1 hour ago
      This has been possible for many years, before agents were a thing. They will open the mail and scan the contents into a pdf for you, requires filing a form with the post office. It gets expensive because they nickel and dime you where they can. There are many more services should you wish to send snail mail.

      https://www.virtualpostmail.com/

    • doublerabbit 1 hour ago
      Can we go minidisc if we're going for obsolete tech?
  • pupppet 53 minutes ago
    After ticking every documented box to get out of AWS SES sandbox mode and being told nope and we can't tell you why, I'm all for this.
  • tornikeo 2 hours ago
    Oof. I know of a startup that recently Show HN'd here, the agent mail.to, that is NOT having a good time right now. I don't know what all these new startups having moats thinner than Durex are thinking -- like, what the plan if someone does what you do, faster and cheaper?
    • nozzlegear 1 hour ago
      > new startups having moats thinner than Durex are thinking

      Haha, great visual. Really illustrative of what these AI startups and bootstrapped indie developers are dealing with (and, if I had to guess, why most of them don't go anywhere).

    • CWwdcdk7h 1 hour ago
      > We raised $6M in Seed Funding

      Well that part was impressive. It looks like they focused on receiving emails, that is probably even worse, as I expect OpenAI/Anthropic to add such ability directly to agents, if it really is useful.

    • delfinom 2 hours ago
      Write an angry blog post about how big business is using their power to kill their _totally_ unique original idea that nobody could possibly copy in a hour?
    • Hendrikto 2 hours ago
      The plan is to have exited by then. These people are mostly just grifters.
    • Kye 1 hour ago
      Classic "is this a feature or a product?" problem. You're going to have a bad time if you spend all your effort on a feature and nothing to set it apart.
  • dgb23 23 minutes ago
    It's certainly interesting that they provide an email service now. In their documentation/blog recommendations they switched their recommended approach twice or three times already.

    If they establish a solid email solution I will likely use that for some of the projects I'm hosting there.

  • cbg0 9 minutes ago
    How far off are we from Cloudflare releasing a Gmail competitor?
  • TimCTRL 1 hour ago
    > Everyone already has an email address

    Things developers believe about email

    • arkaoss 1 hour ago
      There is not much developers UNDERSTAND about email, let alone believe... There's soo much to read into this product.. and it boils down to JASS ( just another spam source) .
    • AtNightWeCode 27 minutes ago
      Or the even worse category. People sharing email.
  • btown 1 hour ago
    https://developers.cloudflare.com/email-service/reference/po...

    Cloudflare is very transparent about their prefixes and reverse DNS, which is generally a good thing for the ecosystem! But it makes it trivial for operators who want to block the entire service, and extremely bad for Cloudflare's deliverability.

    And while there are many open blacklists which I have no doubt Cloudflare monitors, there are many (including soft spam-classification signals) that are proprietary and difficult/impossible to monitor other than by watching rates of actual customer/prospect replies and engagement.

    Amazon SQS has similar dynamics, and its reputation is far from stellar.

    (If the Cloudflare team is reading this, and I'm missing an on-ramp to a company purchasing dedicated IPs with distinct PTR records, I do apologize! I'm not seeing documentation about this, though.)

  • ghoshbishakh 2 hours ago
    Pricing:

    $0.35 per 1,000 emails

    Here are the limits:

    "Your account may have daily sending limits based on Cloudflare's assessment of your account standing. "

    Source: https://developers.cloudflare.com/email-service/platform/pri... https://developers.cloudflare.com/email-service/platform/lim...

  • mlhpdx 1 hour ago
    I’ll have to take a look at this as a way to move off my homegrown serverless email on AWS. Doesn’t look like it has parity with being able to send email from many subsystems safely (with delay and veto)[1], but is pretty close on the receive side automation[2].

    [1] https://github.com/mlhpdx/email-origin [2] https://github.com/mlhpdx/email-delivery

  • _pdp_ 54 minutes ago
    Good! However, ...

    Sending and receiving is in my mind the easy part. The hardest part is to make this work with actual AI agents. This is the same problem as with sub-agent communication because you need to implement all kinds of additional fictionality to ensure the agent is not just responding for no good reason, go into loops, etc.

    My $0.02 from experience.

  • edsimpson 35 minutes ago
    I wish they had developed the open source Inbox into a consumer hosted email service for users. It would have been nice to see more competition with Google and Microsoft.
  • DASD 1 hour ago
    Meanwhile, about to move all my domains(personal and business) e-mail from a provider to self-hosted using Stalwart Mail. I'll wait on the agents a while, thanks though.
  • cdrnsf 53 minutes ago
    If I get one email from your agent, I'm torching your entire domain.
  • ttul 53 minutes ago
  • opengrass 50 minutes ago
    No thanks I'll keep my Mailgun. After 2.5M it's half the price of SES.
  • yalogin 1 hour ago
    Isn’t email already scriptable? What does cf provide that is different? I clicked on it assuming they are launching their own email service.
    • dawnerd 1 hour ago
      It really is showing how dumb this whole bubble is when you can launch the same service that’s been around for decades but slap ai and agent on it.
  • john_strinlai 2 hours ago
    >Everyone already has an email address, which means everyone can already interact with your application or agent. And your agent can interact with anyone.

    please no.

    >Sending email that actually reaches inboxes usually means wrestling with SPF, DKIM, and DMARC records. When you add your domain to Email Service, we configure all of it automatically. Your emails are authenticated and delivered, not flagged as spam.

    this is going to be an absolute nightmare for spam. i cant exactly block all of cloudflare...

    it would be nice if anyone at cloudflare could write about how they plan to proactively reduce abuse of this feature, how they will respond to spam reports, what the punishment for abuse will be, etc.

    • cuu508 1 hour ago
      Sure you can, look at Spain ;-)
  • ryangst_1 1 hour ago
    $0.35 per 1,000 emails it's fair pricing.

    Looks better than fixed $20 for Resend.

    • skc 1 hour ago
      Yep, and I'm both a Cloudflare and Resend customer.

      I like Resend, a lot, but this is probably something I can't pass up, especially if it does what it says on the tin

      • bdangubic 1 hour ago
        Resend will change the pricing - guaranteed. Not sure how soon but I'd expect very soon.
        • STRiDEX 1 hour ago
          I guess if they're big enough they should be working on moving off of amazon SES for emails and warming up ip addresses? Otherwise they need to keep a markup on top of amazon.

          Edit: didn't realize people were paying resend $20. AWS already exists at a low price and people pick them anyway, i'm sure they're fine.

          • slig 42 minutes ago
            It's very easy to get started with Resend, and they have a free tier that basically works for any bootstrapped project, and by the time you have to upgrade, you can pay $20/m.
          • pupppet 50 minutes ago
            I'm betting a non-small chunk of these are users AWS wouldn't let out of sandbox mode.
  • daft_pink 1 hour ago
    I’m really just curious how they guard against prompt injection. Otherwise this seems awesome.
  • VikingCoder 2 hours ago
    $0.35 per 1,000 outbound emails. Unlimited inbound emails.

    How's that compare?

  • bjord 2 hours ago
    finally, more spam!
  • AtNightWeCode 30 minutes ago
    I never got email routing to work. I doubt this will work in the general case.
  • freitzzz 36 minutes ago
    If we're letting agents send e-mail, what's the point of reading e-mail? Surely I can have an agent to reply to e-mail that other agent has sent. Do we really want to create dead internet?
  • csomar 46 minutes ago
    This is a very long post just to say they're now running an SMTP server. I've been sending and receiving emails from Workers for two years; though for sending, you still need an external SMTP server like SES or Postmark.

    Don't get me wrong, sending (and delivering) emails is genuinely hard. But we'll only know how good Cloudflare is at it after a couple years of real-world experience.

  • Hamuko 2 hours ago
    How awful is the reputation on those IP addresses going to be?
    • lagniappe 1 hour ago
      It's cloudflare, they type iddqd before every request.
    • dbbk 1 hour ago
      Good luck trying to send emails during a LaLiga match I guess
  • qJaskkT 1 hour ago
    Did anyone ask the poor people who unknowingly send mail to someone who feeds it to an AI surveillance company?

    It would be interesting to send GDPR requests and have Cloudflare figure out all of the parties who got or use your mail.

  • cdrnsf 36 minutes ago
    Slop spam? Slam?
  • johtso 1 hour ago
    Another email sending service without support for idempotency?
    • esseph 43 minutes ago
      AFAIK there is no communication service or protocol on the internet designed with idempotency in mind. (That was worthwhile and adopted)
  • baal80spam 2 hours ago
    Ugh, who asked for this?
    • cdrnsf 53 minutes ago
      The same people that think letting OpenClaw access their inbox is a good idea.
    • esseph 43 minutes ago
      People wanting an AWS service but from Cloudflare instead of Amazon.
    • bdangubic 1 hour ago
      Everyone paying $20/month to Resend et al to send few thousand emails