domain alias and postfix

Discussion in 'Feature Requests' started by fsoyer, Jan 11, 2008.

  1. fsoyer

    fsoyer New Member

    Hi all,
    I found a little problem soon between co-domain aliases and postfix.
    Since the thread here don't give any solution, I tried some things and here is what I found and my request.

    The problem :
    on a main domain (www.domain.tld), which has an external mail server, the mails send from ISPConfig don't go out, because the domain name (domain.tld) is listed in /etc/postfix/local-host-names.
    The problem is, that a co-domain was created (intranet.domain.tld) (not an alias, another site with same domain name). If I go in the "alias" tab of this co-domain, I find an alias automatically created, where the host name is not set to "intranet" by default, but is blank.
    So this unwanted alias forces Postfix to put "domain.tld" in local-host-names, and mails to this domain are always kept locally.

    Choosing "External Mailserver" on both main and co-domain don't resolve that : the domain name is always added by Postfix (even if manually deleted in local-host-names) each time you push the save button.

    So a request to ISPConfig team : is it possible to set the host name of the alias tab of a co-domain to the host name of the main tab ? It will be more logical, no ?

    Thank you.
    Last edited: Jan 11, 2008
  2. falko

    falko Super Moderator ISPConfig Developer

    What tab do you mean when you refer to the "alias" tab?

    If intranet.domain.tld is a web site of its own, you can simply delete the Co-Domain without a hostname for that web site.
  3. fsoyer

    fsoyer New Member

    The alias tab is, when selecting a site, the third (sorry, I have the french version, I don't know the translation). So if this alias is not necessary, and we can delete it, so why creating it (without hostname) automatically when creating a new site with same domain name ? This is what occurs now, try it...

    I read some message in the forum with the problem of mails not going out due to this domain name in local-host-names. It seems that it will be better if no alias at all was created with a "new-site-with-an-existing-domain-name" :)

    No ?
  4. falko

    falko Super Moderator ISPConfig Developer

    That's the Co-Domains tab. :)

    That'S because in 95% of all cases, people create a web site like and of course want to point to the same web site. That's why the Co-Domain is created automatically.

    You can either delete it or set it to "External Mailserver" - then the domain will not appear in /etc/postfix/local-host-names.

Share This Page