From 30bbc15a8bc2b9527e7aab4dad58fd084c74bacc Mon Sep 17 00:00:00 2001 From: Erik Wramner Date: Sat, 18 Jan 2020 12:27:45 +0100 Subject: [PATCH] Improved description for bare domains --- docs/content/config/troubleshooting/faq.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/content/config/troubleshooting/faq.md b/docs/content/config/troubleshooting/faq.md index af900e06..3b3b1a81 100644 --- a/docs/content/config/troubleshooting/faq.md +++ b/docs/content/config/troubleshooting/faq.md @@ -73,7 +73,7 @@ For a trailing white-space subject one can define the whole variable with quotes ### Can I use naked/bare domains (no host name)? -Yes, but not without some configuration changes. Normally it is assumed that docker-mailserver runs on a host with a name, so the fully qualified host name might be mail.example.com with the domain is example.com. The MX records point to mail.example.com. To use a bare domain where the host name is example.com and the domain is also example.com, change mydestination from: +Yes, but not without some configuration changes. Normally it is assumed that docker-mailserver runs on a host with a name, so the fully qualified host name might be `mail.example.com` with the domain `example.com`. The MX records point to `mail.example.com`. To use a bare domain where the host name is `example.com` and the domain is also `example.com`, change mydestination from: `mydestination = $myhostname, localhost.$mydomain, localhost` @@ -81,7 +81,11 @@ To: `mydestination = localhost.$mydomain, localhost` -Add the latter line to config/postfix-main.cf. That should work. +Add the latter line to config/postfix-main.cf. That should work. Without that change there will be warnings in the logs like: + +`warning: do not list domain example.com in BOTH mydestination and virtual_mailbox_domains` + +Plus of course mail delivery fails. ### Why are Spamassassin x-headers not inserted into my sample.domain.com subdomain emails?