#redirect all mail from *@sagbot.com to [email protected] without creating a loop
5 messages · Page 1 of 1 (latest)
5 messages · Page 1 of 1 (latest)
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
}
}
}