Hello, I’m dabbling into selfhosted mailserver for the first time and am a little confused regarding the ${MAILCOW_HOSTNAME}
and rDNS.
I’ve given the VPS a hostname as SRV1.HETZNER.EXAMPLE.COM
and plan to use mail.example.com
as the webui and IMAP/SMTP address. I’ll also be using the same for autoconfiguration discover as well. This server also hosts a WordPress website on example.com
using NGINX reverse proxy that I installed bare-host.
If my thinking is correct,
- I should set rDNS for server’s public IP as
SRV1.HETZNER.EXAMPLE.COM
- I should use ${MAILCOW_HOSTNAME} as
mail.exmaple.com
- Use
proxy_pass
on the bare metal NGINX and redirect mail.example.com
webui for SOGO a et al to the mailcow’s docker container
- The authoritative DNS for the domain (I use Cloudflare) should be set as
# Name Type Value
SRV1.HETZNER IN A 1.2.3.4
@ IN CNAME SRV1.HETZNER #This is the website
mail IN CNAME SRV1.HETZNER.
autodiscover IN CNAME mail.example.org.
Am I correct in these assumptions?