- Shell 100%
| README.md | ||
| updateTLSA.sh | ||
Proxmox Mail Gateway PowerDNS DANE generator
This is a small tool to automatic update the TLSA DNS entry for your SMTP Server on a PowerDNS Server with the PowerDNS-Admin frontend. It's meant to run on a Proxmox Mail Gateway, but also works on other systems.
Requirements
- curl
- jq
Both should be available as debian package
Setup
Download the script and set the certDomain to your domain and the mxDomain to the domain used in the mx entry. Then add a Powerdns-Admin API key which has access to the domain and set the powerdnsAdmin URL. Afterwards configure the script with cron to run every few minutes (I used every 5 minites). If the entry is already set, the script will do nothing, otherwise it will update the TLSA record. After executing the script the first time, please check if the DNS record was created and validate, that everything is correct by executing the test at https://www.checktls.com/TestReceiver
Example Crontab
*/5 * * * * /root/updateTLSA.sh >/dev/null 2>&1