Repository navigation
Several Domains
Anton Popov edited this page Nov 10, 2026
·
1 revision
One goodmail can serve any number of mail domains. List them all in one domainN= line (comma separated), or one line per domain when they use different servers, and give each domain a host name of the form goodmail.<domain> (or any <name>.<domain>):
domain1=example.com, example.org, example.net
imap1=mail.example.com
smtp1=mail.example.com:587-
Login by host. On
goodmail.example.orga login without@is completed with that domain (bobecomesbo@example.org); everywhere elsedefaultdomainapplies. Full addresses always work, on any host. -
DNS and web server. Point
goodmail.<domain>at the server (A/AAAA; DNS-only if the zone is behind Cloudflare), add every host name as aServerAliasof the one virtual host, and put them all on one certificate. A working example isdeploy/apache-multidomain.confin the repository. KeepProxyPreserveHost On. -
Passkeys are per host name (a WebAuthn rule): a passkey created on
goodmail.example.orgdoes not work ongoodmail.example.com. Do not setGOODMAIL_ORIGINwhen you serve several hosts, because it pins one. -
Titles can differ per domain (
titleN,titleN.<lang>), see Configuration.
goodmail
Using it
Security
Running it