After migrating to another server and upgrading from Ubuntu 14.04 LTS to 18.04 LTS, I decided that it has little use to have a separate subdomain for the mails server when this client likely will never expand to more than one server. His domain is also his mailserver domain.
Then he complained that no email arrived. I looked in the mail log file and discovered this warning notice, that in fact should be an error notice, because mail was not delivered as a consequence:
Zitat von /var/log/mail.logFeb 24 15:00:34 hishost postfix/trivial-rewrite[30655]: warning: do not list domain hisdomain.com in BOTH mydestination and virtual_mailbox_domains
As work around I decided to remove $myhostname from mydestination :
Zitat von /etc/postfix/main.cfmydestination = localhost.localdomain, localhost #, $myhostname
After that, email started coming in.
Not sure if that can be fixed or improved in LC. Until that is decided, in fact I should prevent that LC overwrites this with:
Zitat von /usr/lib/liveconfig/lua/custom.luapostfix.NOUPDATE = true
But this should also work:
Zitat von /usr/lib/liveconfig/lua/custom.luapostfix.LOCALCONFIG = {
['mydestination'] = "localhost.localdomain, localhost"
}