Mail Routes I want to forward all mail recive

I want to forward all mail recived to support@domain.com to multiple mails 1mail@gmail.com, 2mail@gmail.com, 3mail@gmail.com
20 Replies
[💙] Iron_Max              !
From forums I have got this but its not working
export default {
async email(message, env, ctx) {
await message.forward("ssakethreddy55@gmail.com");
await message.forward("xdmatrix22@gmail.com");
}
}
export default {
async email(message, env, ctx) {
await message.forward("ssakethreddy55@gmail.com");
await message.forward("xdmatrix22@gmail.com");
}
}
1.1.1.1
1.1.1.1•6mo ago
DNS over Discord: A records
saketh-dev.tech A @1.1.1.1 +noall +answer
NAME | TTL | DATA
----------------+------+------------
saketh-dev.tech | 300s | 76.76.21.21
NAME | TTL | DATA
----------------+------+------------
saketh-dev.tech | 300s | 76.76.21.21
diggy diggy hole
1.1.1.1
1.1.1.1•6mo ago
DNS over Discord: MX records
saketh-dev.tech MX @1.1.1.1 +noall +answer
NAME | TTL | DATA
----------------+------+----------------
saketh-dev.tech | 300s | 10 mx.zoho.in.
saketh-dev.tech | 300s | 20 mx2.zoho.in.
saketh-dev.tech | 300s | 50 mx3.zoho.in.
NAME | TTL | DATA
----------------+------+----------------
saketh-dev.tech | 300s | 10 mx.zoho.in.
saketh-dev.tech | 300s | 20 mx2.zoho.in.
saketh-dev.tech | 300s | 50 mx3.zoho.in.
diggy diggy hole
Chaika
Chaika•6mo ago
if that's supposed to be your domain, it's not pointed/using Cloudflare mx
[💙] Iron_Max              !
actual domain is litemc.fun
1.1.1.1
1.1.1.1•6mo ago
DNS over Discord: A records
litemc.fun A @1.1.1.1 +noall +answer
NAME | TTL | DATA
-----------+--------+-------------
litemc.fun | 3,600s | 159.69.6.244
NAME | TTL | DATA
-----------+--------+-------------
litemc.fun | 3,600s | 159.69.6.244
diggy diggy hole
Chaika
Chaika•6mo ago
That code alone looks fine to me though. I would make sure that your various addresses are verified (ssakethreddy55@gmail.com, xdmatrix22@gmail.com"), you have to add them under Email Routing -> Destination Addresses and verify them. Then you could tail your worker (Worker -> Logs -> Begin Log Stream, send email), and then you should see the email event and you can click to expand to see any errors/etc
1.1.1.1
1.1.1.1•6mo ago
DNS over Discord: MX records
litemc.fun MX @1.1.1.1 +noall +answer
NAME | TTL | DATA
-----------+------+-----------------------------
litemc.fun | 300s | 1 route2.mx.cloudflare.net.
litemc.fun | 300s | 74 route3.mx.cloudflare.net.
litemc.fun | 300s | 81 route1.mx.cloudflare.net.
NAME | TTL | DATA
-----------+------+-----------------------------
litemc.fun | 300s | 1 route2.mx.cloudflare.net.
litemc.fun | 300s | 74 route3.mx.cloudflare.net.
litemc.fun | 300s | 81 route1.mx.cloudflare.net.
diggy diggy hole
[💙] Iron_Max              !
I don't see logs here
Chaika
Chaika•6mo ago
you have to click on the worker that looks fine. You had them added before, or just now? Anything more specific then "its not working"? Were you getting a specific error back from sending a email, or anything else?
[💙] Iron_Max              !
Like when I send mail to support@litemc.fun I dont get mail I have specified I just got this
Chaika
Chaika•6mo ago
The "Logs" tab there, and then you can click on Begin Log Stream, and if you send an email you would see the event and can expand it
[💙] Iron_Max              !
response
{
"outcome": "ok",
"scriptName": "summer-bar-81c8",
"diagnosticsChannelEvents": [],
"exceptions": [],
"logs": [],
"eventTimestamp": 1703524097981,
"event": {
"rawSize": 5929,
"rcptTo": "support@litemc.fun",
"mailFrom": "ssakethreddy55@gmail.com"
},
"id": 0
}
{
"outcome": "ok",
"scriptName": "summer-bar-81c8",
"diagnosticsChannelEvents": [],
"exceptions": [],
"logs": [],
"eventTimestamp": 1703524097981,
"event": {
"rawSize": 5929,
"rcptTo": "support@litemc.fun",
"mailFrom": "ssakethreddy55@gmail.com"
},
"id": 0
}
Chaika
Chaika•6mo ago
yea so it thinks everything is fine. Keep in mind you're not going to see the email back in the inbox you sent it from, Gmail deduplicates Do you see it in xdmatrix22/check spam?
[💙] Iron_Max              !
Its my frnds If you dont mind can you send a mail to support@litemc.fun
Chaika
Chaika•6mo ago
sure
[💙] Iron_Max              !
Yeah It works
Chaika
Chaika•6mo ago
Yea it's just that some email providers like gmail think its a duplicate email and discard it, have to test from a different inbox then you're forwarding to
[💙] Iron_Max              !
Ohk Thnx, Have a nice day Merry Christmas 🎄
Chaika
Chaika•6mo ago
You too! MeowHeartCloudflare