Strange doubling of domain name for postfix...

Discussion in 'Installation/Configuration' started by Loveless, Jun 12, 2018.

  1. Loveless

    Loveless Member

    In /var/log/mail.warn postfix tells me:
    Code:
    Jun 12 16:40:06 xxhost postfix/trivial-rewrite[13324]: warning: do not list domain xxhost.org in BOTH mydestination and virtual_mailbox_domains
    Jun 12 16:40:06 xxhost postfix/trivial-rewrite[13324]: warning: do not list domain xxhost.org in BOTH mydestination and virtual_mailbox_domains
    Jun 12 16:40:06 xxhost postfix/trivial-rewrite[13324]: warning: do not list domain xxhost.org in BOTH mydestination and virtual_mailbox_domains
    
    Which of the two entries of the domain should I remove? This is the server hostname, so I want to be careful not to mess up a production environment.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The server hostname shall never be an email domain. So you must remove it from mydestination and change the server hostname to a subdomain like server1.yourdomain.tld or mail.yourdomain.tld. The server hostname may not be e.g. yourdomain.tld without a subdomain part.
     
  3. Loveless

    Loveless Member

    Sorry, no can do. We have Zimbra and some other apps in our KVM vserver environments that *require* FQDN as the hostname, so to be consistent among their configs, our hostnames are all set to FQDN and have been for years. As long as you have both FQDN and subdomain in /etc/hosts (or in whatever resolver looks for first, in our case usually a dnsmasq set hosts file), like so:
    Code:
    127.0.0.1       localhost
    193.25.200.254  xxhost.org  somesubdomainyouwouldnormallyuseashostname
    2001:67c:12a0:3:d9:1be7:631b:f4b1   xxhost.org  somesubdomainyouwouldnormallyuseashostname
    ::1     localhost ip6-localhost ip6-loopback
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    all works fine. We don't use ispconfig for dns.
     

Share This Page