PDA

View Full Version : Co-domain domain.com and "localserver" setting getting erased when adding new domains


bpmee
6th June 2008, 06:51
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:


###################################
#
# 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:


###################################
#
# ISPConfig virtusertable Configuration File
# Version 1.0
#
###################################
admin@domain1.com web2_domain1com
web2_domain1com @domain1.com web2_domain1com
@domain1.com web2_domain1com
admin@ web2_domain1com
web2_domain1com @ web2_domain1com
@ web2_domain1com
brendan@domain1.com 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:

falko
7th June 2008, 11:55
I've added this to our bugtracker.

bpmee
7th June 2008, 12:07
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)

falko
8th June 2008, 13:30
You didn't modify /etc/postfix/local-host-names and /etc/postfix/virtusertable manually, did you?

bpmee
9th June 2008, 01:32
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.