Cloudflare Workers Email Autoconfig/Autodiscover Script for Thunderbird/Outlook.
Please configure your mail server settings in the mailconfig.js file. Just replace example.com with your domain and maybe adjust the ports to your needs.
You can deploy mailconfig.js as a Cloudflare Worker under the domains autoconfig.example.com (for Thunderbird) and autodiscover.example.com (for Outlook).
The script will automatically detect the subdomain it is executed on and respond with the correct XML.
This project is licensed under the MIT License - see the LICENSE file for details.