Skip to content

Commit 0e22234

Browse files
authored
Update mta-sts.mdx (#21181)
The template mentioned in the doc no longer exists.
1 parent 0f41226 commit 0e22234

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/content/docs/email-routing/setup/mta-sts.mdx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,15 @@ Next you need an HTTPS endpoint at `mta-sts.example.com` to serve your policy fi
3131

3232
To do this you need to deploy a Worker that allows email clients to pull Cloudflare’s Email Routing policy file using the “well-known” URI convention.
3333

34-
4. Go to your **Account** > **Workers & Pages** and press **Create Application**. Pick the "MTA-STS" template from the list.
35-
36-
![MTA-STS Worker](~/assets/images/email-routing/mta-sts-worker.png)
34+
4. Go to your **Account** > **Workers & Pages** and press **Create Application**. Pick the default "Hello World" option button, and replace the sample worker code with the following:
35+
36+
```index.js
37+
export default {
38+
async fetch(request, env, ctx) {
39+
return await fetch("https://mta-sts.mx.cloudflare.net/.well-known/mta-sts.txt")
40+
},
41+
};
42+
```
3743

3844
5. This Worker proxies `https://mta-sts.mx.cloudflare.net/.well-known/mta-sts.txt` to your own domain. After deploying it, go to the Worker configuration, then **Triggers** > **Custom Domains** and **Add Custom Domain**. Type the subdomain `mta-sts.example.com`.
3945

0 commit comments

Comments
 (0)