torsten
torsten
CDCloudflare Developers
Created by torsten on 2/1/2024 in #workers-help
DKIM signing emails from worker.
Using a worker setup like: https://developers.cloudflare.com/email-routing/email-workers/send-email-workers/ How do you add a dkim signature in a cloudflare worker mail binding? Currently cloudflare adds a DKIM-Signature with domain email.cloudflare.net, which is not aligned with my from address so all the emails from my workers land in spam. The npm packages I've tried (dkim, dkim-signer, nodemailer) all require crpyto. Though even if they required('node:crypto') I doubt they'd work. Because node:crypto does not seem to have creatSign I can't even roll my own. I don't want to use MailChannels. I don't want to be an open relay. Any suggestions?
2 replies