Erronuous Postfix configuration when mail server domain equals mail address domain

  • 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.log

    Feb 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.cf

    mydestination = 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.lua

    postfix.NOUPDATE = true



    But this should also work:


    Zitat von /usr/lib/liveconfig/lua/custom.lua

    postfix.LOCALCONFIG = {
    ['mydestination'] = "localhost.localdomain, localhost"
    }

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!