Issue Description
ACME DNS-01 creates _acme-challenge record in parent zone instead of the subdomain’s own zone.
Consider Domain example.com and subdomain z1.example.com, each with its own DNS zone. Both are mail domains with automatic DNS management.
Zone Origin is empty on both. The help text says an empty origin means the domain name itself is used. The ACME provider uses the DNS-01 challenge.
Expected Behavior
The challenge record is created in the z1.example.com zone, the same as the other DNS records, because Zone Origin is empty and the domain zone must be used.
Actual Behavior
When acme is triggered for z1.example.com, the _acme-challenge.z1 record is created in the example.com zone, not in the z1.example.com zone. This breaks the challenge since the acme provider never sees the record.
All other DNS records for the mail domains, such as DKIM, are created in the correct zone. Only acme is affected.The challenge record is created in the z1.example.com zone, the same as the other DNS records, because zone origin is empty and the domain name should be used.
A workaround is to set zone origin explicitly to z1.example.com on the subdomain
Reproduction Steps
- Configure two domains, one a subdomain in its own zonefile
- Set automatic DNS and Certificate, trigger the ACME challenge
- Challenge record is created in the root zone instead of the subzone.
Stalwart Version
v0.16.x
Installation Method
Docker
Database Backend
RocksDB
Blob Storage
RocksDB
Search Engine
Internal
Directory Backend
Internal
Additional Context
DNS provider is deSEC.io but I dont think its relevant.
Annoyingly the bug report tool converted the example domains to links and then complained about them.
I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.
on
I have searched this support forum (open and closed topics) and confirm this is not a duplicate.
on
I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.
on