No description
This repository has been archived on 2026-11-17. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
2022-03-07 14:27:15 +01:00
README.md update readme 2022-03-07 14:27:15 +01:00
updateTLSA.sh add readme and script 2022-02-23 19:12:40 +01:00

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