Culottes
Culottes
CDCloudflare Developers
Created by Culottes on 2/12/2024 in #workers-help
redirect all mail from *@sagbot.com to [email protected] without creating a loop
Is there a way to redirect all mails coming from *@sagbot.com to [email protected] without creating a loop? like this?
export default {
async email(message, env, ctx) {
if (message.to != "[email protected]") {
message.forward("[email protected]")
} else {
// send the email, normally
}
}
}
export default {
async email(message, env, ctx) {
if (message.to != "[email protected]") {
message.forward("[email protected]")
} else {
// send the email, normally
}
}
}
3 replies