How do I add a mta-sts text file to a https://mta-sts.example.com/.well-known/mta-sts.txt
I was able to add /.well-known/mta-sts.txt to the public directory of my Cloudflare Workers project and going to example.com/.well-known/mta-sts.txt loads the .txt file that the google admin is expecting. My main problem right now is how to I handle the
mta-sts
subdomain that the mta-sts that google admin is looking for. How do I make https://mta-sts.example.com/.well-known/mta-sts.txt
return the same document that https://example.com/.well-known/mta-sts.txt
currently returns in a way that satisfies the mta-sts check.
I currently have a CNAME in the DNS records for this domain on cloudflare with the following properties. But it is still failing the google admin check. Also I followed the procedures in this documentation, the the response from this default worker is not the exact same response that google admin is expecting.
https://developers.cloudflare.com/email-routing/setup/mta-sts/
type:"""
cname
"""
name:"""
mta-sts
"""
target:"""
example.pages.dev
"""
Proxy status:"""
DNS only (gray cloud)
"""Configure MTA-STS · Cloudflare Email Routing docs
MTA Strict Transport Security ( MTA-STS ) was introduced by email service providers including Microsoft, Google and Yahoo as a solution to protect …
1 Reply
The main problem right now is that
https://example.com/.well-known/mta-sts.txt
returns the correctly formated .txt file that google admin is expecting, but https://mta-sts.example.com/.well-known/mta-sts.txt
returns a error code 522
page