Skip to content

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates#7134

Merged
FreddleSpl0it merged 1 commit intostagingfrom
fix/7112-2
Mar 13, 2026
Merged

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates#7134
FreddleSpl0it merged 1 commit intostagingfrom
fix/7112-2

Conversation

@FreddleSpl0it
Copy link
Collaborator

Contribution Guidelines

What does this PR include?

Short Description

This PR extends the wildcard certificate fix from PR #7124 to all auto-generated subdomains (autodiscover, autoconfig, mta-sts).

Problem: When ADDITIONAL_SAN contains a wildcard certificate (e.g., *.example.com) and AUTODISCOVER_SAN=y, mailcow automatically adds autodiscover.example.com, autoconfig.example.com, and mta-sts.example.com to the certificate request. These are redundant with the wildcard and Let's Encrypt rejects the request with: "Domain name 'X' is redundant with a wildcard domain".

Solution: Before adding these subdomains to the certificate request, check if they are already covered by a wildcard in ADDITIONAL_SAN. If yes, skip them.

Related:

Affected Containers

  • acme-mailcow

@FreddleSpl0it FreddleSpl0it merged commit 018e292 into staging Mar 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant