For Workers & Pages, what is the name of the domain?
Worker originated emails via routes
What is the issue or error you’re encountering
Emails originating from Cloudflare Workers and routed as text/html or text/plain have an empty body in Outlook, and Gmail does not receive them, likely due to the lack of DKIM signing for Worker-originated emails.
What steps have you taken to resolve the issue?
When sending an email from a Cloudflare Worker (that initiates from the Worker and isn’t forwarded), the email body is not being received by the verified email address in Outlook and Gmail is rejecting it. After troubleshooting, it seems the issue might be related to the lack of DKIM signing for emails routed through Cloudflare Email Routing.
While following this community thread, I noticed that Cloudflare has not yet implemented DKIM signing for Email Routing. This absence appears to support the core purpose of Email Routing but in this scenario where Workers should send alerts it is not beneficial.
Additionally, if the email originates from a Worker, there will be no ARC or DKIM headers in the body of the email. As a result, this seems to be a bug in how Email Workers handle email origination and signing.
Another related topic was previously closed due to inactivity, but the issue remains unresolved and is effectively a bug:
Closed Topic: Verified email address not receiving body of email sent from worker: Verified email address not receiving body of email sent from worker
What are the steps to reproduce the issue?
- Configure a Cloudflare Worker to send an email through Cloudflare Email Routing, it must initiate from the worker itself.
- Send the email to a verified email address.
- Check the received email for the presence of the body and DKIM/ARC headers in Outlook, in Gmail it will most likely never hit inbox or spam as it has no DKIM headers.
Expected Behavior:
The email body should be delivered to the recipient, and DKIM signing should be applied to emails sent via Cloudflare Email Routing to ensure proper authentication and delivery.
Actual Behavior:
The email body is missing, and DKIM/ARC headers are not present, potentially causing issues with email verification and delivery.
Questions for the Community:
1.) Can others replicate this issue to confirm if it’s related to the lack of DKIM signing in Cloudflare Email Routing? (also see: Verified email address not receiving body of email sent from worker)
2.) Is the absence of DKIM signing for Worker-originated emails a known limitation or an oversight in the current implementation?
3.) If anyone from Cloudflare sees this, please note this is not a feature request. It is effectively a bug and should not be closed without resolution.