How to setup MailChannels with correct email security headers? Gmail is flagging my emails with warnings

I have a worker that sends an email with MailChannels, exactly as in the first example here: https://blog.cloudflare.com/sending-email-from-workers-with-mailchannels/

when emails are received into my test inbox, Gmail flags them with warnings:

Gmail couldn't verify that runestone.io actually sent this message (and not a spammer)

I did some digging and updated my DNS for that domain with the following SPF record:

v=spf1 include:relay.mailchannels.net ~all

But that didn’t seem to work, and anyway if you setup Cloudflare email routing, it makes you overwrite the SPF for mailchannels:

What’s the solution here? Is there any detailed documentation on how to setup email correctly?

Hello there,
I think you’ve not added DKIM & DMARC record that’ll solve the flagging.

Thank you. Setting up DMARC with the “quarantine” option worked.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.