Co-domain domain.com and "localserver" setting getting erased when adding new domains

Discussion in 'Server Operation' started by bpmee, Jun 6, 2008.

  1. bpmee

    bpmee New Member

    Hi All,

    I'm using ISPconfig-Dev 2.3.1 on Fedora Core 5 (production server)

    :) Yes, I know Dev should not be used on production server, but everything seems to run just fine, except for this minor error:

    1) I have configured the server so that www.domain1.com appears in the local-host-names file, so I can recieve mail (note, I added the entry "domain1.com" to www.domain1.com's ISPconfig "co-domain" section, without the WWW for mail purposes:

    Code:
    ###################################
    #
    # ISPConfig local-host-names Configuration File
    #         Version 1.0
    #
    ###################################
    localhost
    bmwz4.SERVER.com
    localhost.SNAKE.SERVER.com
    localhost.SERVER.com
    domain1.com
    #### MAKE MANUAL ENTRIES BELOW THIS LINE! ####
    
    
    
    I also have the following virtusertable entries as a result:

    Code:
    ###################################
    #
    # ISPConfig virtusertable Configuration File
    #         Version 1.0
    #
    ###################################
    [email protected]    web2_domain1com 
    web2_domain1com @domain1.com     web2_domain1com 
    @domain1.com     web2_domain1com 
    admin@    web2_domain1com 
    web2_domain1com @    web2_domain1com 
    @    web2_domain1com 
    [email protected]     web2_brendandomain1com 
    web2_brendandomain1com @domain1.com     web2_brendandomain1com 
    brendan@    web2_brendandomain1com 
    web2_brendandomain1com @    web2_brendandomain1com 
    #### MAKE MANUAL ENTRIES BELOW THIS LINE! ####
    
    *** Setting in ISPConfig management for this domain's email server is of course "localserver"

    2) Now, suppose I want to add www.domain2.com...

    When I add this domain via Remoting OR manually in ISPCONFIG, my /etc/postfix/virtusertable and /etc/postfix/local-host-names are reset, meaning all the info I had before above is gone and replaced with the new domain's information.

    Also, the setting for mail server for www.domain1.com is changed to "externalserver"

    Why do my ./virtusertable and ./local-host-names get reset/erased when I add a new domain?

    Thanks!:cool:
     
  2. falko

    falko Super Moderator ISPConfig Developer

    I've added this to our bugtracker.
     
  3. bpmee

    bpmee New Member

    Hi Falko,

    Thanks...:) I think this might be caused by the scripts that re-write the system files each time a new domain is added.

    perhaps something in /root/ispconfig//scripts/lib/clases? (I think that's the path... not sure)
     
  4. falko

    falko Super Moderator ISPConfig Developer

    You didn't modify /etc/postfix/local-host-names and /etc/postfix/virtusertable manually, did you?
     
  5. bpmee

    bpmee New Member

    No, all domains were configured automatically...

    Hi Falko,

    No, I configured them automatically. I know this for sure, because when I check those files after re-configuring after they get erased, every domain appears above the #####Make Manual Entries Below this Line ##### entry.
     

Share This Page