DNS & SSL Configuration¶
Required DNS Records¶
For each managed domain, the following DNS records must be present for full mail functionality.
MX Record¶
SPF Record¶
DKIM Record¶
The DKIM selector is mail for all domains. The public key is stored in MariaDB and in the Rspamd DKIM directory.
Retrieve a domain's DKIM public key via the API:
DMARC Record¶
PTR (Reverse DNS)¶
The server IP 161.97.157.206 must have a PTR record pointing to mail.solutechhub.com. This is configured at the hosting provider (Contabo) control panel.
Note: The PTR record previously pointed to
mail.resourcegsr.comand should be updated tomail.solutechhub.com.
Verifying DNS via API¶
The API can verify all DNS records for a domain automatically:
This checks MX, SPF, DKIM, DMARC, and PTR records and returns a per-record pass/fail result.
The verifier accepts both mail.solutechhub.com and mail.resourcegsr.com as valid MX/PTR targets.
SSL Certificates¶
Certificates are issued by Let's Encrypt via Certbot.
Issue a new certificate¶
# Using HTTP challenge (Nginx must be running)
certbot --nginx -d docs.solutechhub.com
# Using Cloudflare DNS challenge (for wildcard or pre-Nginx)
certbot certonly --dns-cloudflare \
--dns-cloudflare-credentials /root/.secrets/cloudflare.ini \
-d docs.solutechhub.com
Check certificate status¶
Auto-renewal¶
Certbot installs a systemd timer that renews certificates automatically:
Mail certificate (covers both hostnames)¶
The mail-combined certificate covers both mail hostnames and is used by Postfix and Dovecot: