Skip to content

Instantly share code, notes, and snippets.

@creativebastard
creativebastard / gist:942ee59af0eff596489be51236fab146
Created February 19, 2025 13:45
Script to synchronize TLSA records between Stalwart mail server and CloudFlare. Might be buggy.
<?php
// Config.json should look like this:
// {
// "domain_name": "DOMAIN",
// "cf_api_key": "CFKEY",
// "stalwart_api_key": "STALWARTKEY",
// "stalwart_endpoint_url": "https://YOURSTALWARTURL"
//}