GrN.dk
GrN.dk
CDCloudflare Developers
Created by GrN.dk on 3/5/2024 in #general-help
Quickfix change destination email in email routing for many domains and accounts
Thank you all for the suggestions! I think the best and most robust solution for our use case is to replace destination address in the forward email route via API for each zone in each account.
14 replies
CDCloudflare Developers
Created by GrN.dk on 3/5/2024 in #general-help
Quickfix change destination email in email routing for many domains and accounts
Thank you for the feedback. If I need to add DNS records via the Cloudflare API, I might as well replace the current email routing forwarding rule with the correct email via the API. Or maybe I have misunderstood something. And where can I read about how to setup a worker like that?
14 replies
CDCloudflare Developers
Created by GrN.dk on 3/5/2024 in #general-help
Quickfix change destination email in email routing for many domains and accounts
OK, sounds interesting, thank you. Would it be possible to create a single worker on an account that will catch all emails from all zones and then forward it to [email protected]? I am having a bit trouble of finding a way that will forward all mails from all zones to a single email. The current scenario is that we are using email routing with forwarding from custom mails from all zones to a single destination address [email protected], but this needs to change to [email protected]. Or just use a intercepting worker that will redirect/forward to [email protected], but I am unable to find any documentation regarding this approach. We usually use the API to update some of these things for DNS, not really for email routing at this point. So we where thinking of utilizing a worker instead as a quick fix. Thank you.
14 replies