Hello Folks,
I’m pretty new to mailcow and lets encrypt so I’m still learning the overall structure but as I understand it, mailcow/acme is compatible with my PowerDNS auth server and I thought it was working as SSL was working fine till the 1st of sept and then I started getting errors. I’ve since realised that it’s likely I did it manually the first time in June when I setup mailcow and the default age is 3 months hence the failure.
I am currently running 2026-07b
in mailcow.conf
ACME_DNS_CHALLENGE=y
ACME_DNS_PROVIDER=dns_pdns
ACME_ACCOUNT_EMAIL=franki@gmail.com
PDNS_API_URL=http://192.168.1.149:8081/api/v1/servers/localhost
PDNS_API_KEY=Thisismyapipasswordbutnotreal
(I changed the email address because I don’t want web scrapers getting my email as that one gets too much spam already)
obviously the URL is the internal address of the server API but its accessible to the acme-mailcow I just added the last two as I thought initially that it was picked up via ENV vars
Powerdns is setup and working and the API is enabled and has it’s key set to the same as PDNS_API_KEY above.
Is that all there is too it or am I missing something? my account with letsencrypt was paused from errors but I’ve unpaused it no problem.
The SSL cert is still showing up as follows:
Common Name (CN) YR1
Organisation (O) Let’s Encrypt
Expires On Tuesday, 1 September 2026 at 18:06:06
In the log, all I am seeing is this:
02/09/2026, 09:56:50 mail.littlehosting.com - Failed to obtain certificate /var/lib/acme/autodiscover.littlehosting.com/cert.pem for domains ‘autodiscover.littlehosting.com autoconfig.littlehosting.com’ via DNS challenge
But no explanation as to why it is failing.
if I access the PDNS API with curl setting the header to the API key… it seems to respond fine.
curl -H ‘X-API-Key: Thisismyapipasswordbutnotreal’ http://localhost:8081/api/v1/servers/localhost
{“autoprimaries_url”: “/api/v1/servers/localhost/autoprimaries{/autoprimary}”, “config_url”: “/api/v1/servers/localhost/config{/config_setting}”, “daemon_type”: “authoritative”, “id”: “localhost”, “type”: “Server”, “url”: “/api/v1/servers/localhost”, “version”: “5.0.7”, “zones_url”: “/api/v1/servers/localhost/zones{/zone}”}
Does anyone please have any suggestions to or pointers?
kindest regards
Frank
UPDATE:
went straight to the container log and found this:
acme-mailcow-1 | Wed Sep 2 11:19:08 AWST 2026 - Loading DNS-01 configuration from /etc/acme/dns-01.conf
acme-mailcow-1 | Wed Sep 2 11:19:08 AWST 2026 - ACME_DNS_CHALLENGE is enabled, DNS provider secrets loaded
acme-mailcow-1 | Wed Sep 2 11:19:08 AWST 2026 - Using Let’s Encrypt production servers
acme-mailcow-1 | Wed Sep 2 11:19:08 AWST 2026 - Certificate /var/lib/acme/autodiscover.littlehosting.com/cert.pem missing or changed domains ‘autodiscover.littlehosting.com autoconfig.littlehosting.com’ - start obtaining
acme-mailcow-1 | Wed Sep 2 11:19:08 AWST 2026 - Checking resolver…
acme-mailcow-1 | Wed Sep 2 11:19:08 AWST 2026 - Resolver OK
acme-mailcow-1 | Wed Sep 2 11:19:08 AWST 2026 - Registering acme.sh account for franki@gmail.com
acme-mailcow-1 | Wed Sep 2 11:19:11 AWST 2026 - Using command /opt/acme.sh/acme.sh –home /var/lib/acme/acme-sh –config-home /var/lib/acme/acme-sh –cert-home /var/lib/acme/acme-sh –server letsencrypt –issue –dns dns_pdns –key-file /var/lib/acme/autodiscover.littlehosting.com/key.pem –cert-file /tmp/acme-cert.LCHhAL –fullchain-file /tmp/acme-fullchain.HCJOBL –force -d autodiscover.littlehosting.com -d autoconfig.littlehosting.com
acme-mailcow-1 | Wed Sep 2 11:19:11 AWST 2026 - DNS provider: dns_pdns
acme-mailcow-1 | [Wed Sep 2 11:19:12 AWST 2026] Using CA: https://acme-v02.api.letsencrypt.org/directory
acme-mailcow-1 | [Wed Sep 2 11:19:12 AWST 2026] Multi domain=‘DNS:autodiscover.littlehosting.com,DNS:autoconfig.littlehosting.com’
acme-mailcow-1 | [Wed Sep 2 11:19:15 AWST 2026] Getting webroot for domain=‘autodiscover.littlehosting.com’
acme-mailcow-1 | [Wed Sep 2 11:19:15 AWST 2026] Getting webroot for domain=‘autoconfig.littlehosting.com’
acme-mailcow-1 | [Wed Sep 2 11:19:15 AWST 2026] Adding TXT value: vxF_wIe7LIeIZViIS0nvaU4BJQhDHUg2XbTrk_yJHmo for domain: _acme-challenge.autodiscover.littlehosting.com
acme-mailcow-1 | [Wed Sep 2 11:19:15 AWST 2026] You don’t specify PowerDNS address.
acme-mailcow-1 | [Wed Sep 2 11:19:15 AWST 2026] Please set PDNS_Url and try again.
acme-mailcow-1 | [Wed Sep 2 11:19:15 AWST 2026] Error adding TXT record to domain: _acme-challenge.autodiscover.littlehosting.com
acme-mailcow-1 | [Wed Sep 2 11:19:15 AWST 2026] Please add ‘–debug’ or ‘–log’ to see more information.
acme-mailcow-1 | [Wed Sep 2 11:19:15 AWST 2026] See: acmesh-official/acme.sh/wiki/How-to-debug-acme.sh
acme-mailcow-1 | Wed Sep 2 11:19:16 AWST 2026 - Failed to obtain certificate /var/lib/acme/autodiscover.littlehosting.com/cert.pem for domains ‘autodiscover.littlehosting.com autoconfig.littlehosting.com’ via DNS challenge