My situation is as follows: I can access my firstdomain.com website via my web browser. This first domain also has two test email addresses in it and I can send and receive emails. I have a subdomain of email1.firstdomain.com that can be accessed by my web browser. (Followed Squirrelmail On Your ISPConfig Server Within 10 Easy Steps to set up and it works correctly. Emails can be accessed via any web browser to send and receive.) Finally, I have a third website of seconddomain.com that I cannot access. When I dig the seconddomain.com address, the ISP nameservers are pointing to the correct IP address for my IPSConfig server. But, my webbrowser just hangs when attempting to access. This is my /etc/hosts file: Code: myuser@computerhostname:~$ cat /etchosts 127.0.0.1 localhost 192.168.5.102 computerhostname.firstdomain.com computerhostname # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts My Vhost_ispconfig.conf file is: Code: myuser@computerhostname:~$ cat /etc/apache2/vhosts/Vhosts_ispconfig.conf ################################### # # ISPConfig vHost Configuration File # Version 1.0 # ################################### # NameVirtualHost 192.168.5.102:80 <VirtualHost 192.168.5.102:80> ServerName localhost ServerAdmin root@localhost DocumentRoot /var/www/sharedip <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) RewriteRule .* - [F] </IfModule> </VirtualHost> # # ###################################### # Vhost: www.firstdomain.com:80 ###################################### # # <VirtualHost 192.168.5.102:80> ServerName www.firstdomain.com:80 ServerAdmin [email protected] DocumentRoot /var/www/web10/web ServerAlias firstdomain.com DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm ErrorLog /var/www/web10/log/error.log AddType application/x-httpd-php .php .php3 .php4 .php5 php_admin_flag safe_mode Off Alias /error/ "/var/www/web10/web/error/" ErrorDocument 400 /error/invalidSyntax.html ErrorDocument 401 /error/authorizationRequired.html ErrorDocument 403 /error/forbidden.html ErrorDocument 404 /error/fileNotFound.html ErrorDocument 405 /error/methodNotAllowed.html ErrorDocument 500 /error/internalServerError.html ErrorDocument 503 /error/overloaded.html AliasMatch ^/~([^/]+)(/(.*))? /var/www/web10/user/$1/web/$3 AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web10/user/$1/web/$3 <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) RewriteRule .* - [F] </IfModule> </VirtualHost> # # # ###################################### # Vhost: www.seconddomain.com:80 ###################################### # # <VirtualHost 192.168.5.102:80> ServerName www.seconddomain.com:80 ServerAdmin [email protected] DocumentRoot /var/www/web31/web ServerAlias seconddomain.com DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm ErrorLog /var/www/web31/log/error.log AddType application/x-httpd-php .php .php3 .php4 .php5 php_admin_flag safe_mode Off Alias /error/ "/var/www/web31/web/error/" ErrorDocument 400 /error/invalidSyntax.html ErrorDocument 401 /error/authorizationRequired.html ErrorDocument 403 /error/forbidden.html ErrorDocument 404 /error/fileNotFound.html ErrorDocument 405 /error/methodNotAllowed.html ErrorDocument 500 /error/internalServerError.html ErrorDocument 503 /error/overloaded.html AliasMatch ^/~([^/]+)(/(.*))? /var/www/web31/user/$1/web/$3 AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web31/user/$1/web/$3 <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) RewriteRule .* - [F] </IfModule> </VirtualHost> # # # ###################################### # Vhost: email1.firstdomain.com:80 ###################################### # # <VirtualHost 192.168.5.102:80> ServerName email1.firstdomain.com:80 ServerAdmin [email protected] DocumentRoot /var/www/web32/web DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm ErrorLog /var/www/web32/log/error.log AddType application/x-httpd-php .php .php3 .php4 .php5 php_admin_flag safe_mode Off Alias /error/ "/var/www/web32/web/error/" ErrorDocument 400 /error/invalidSyntax.html ErrorDocument 401 /error/authorizationRequired.html ErrorDocument 403 /error/forbidden.html ErrorDocument 404 /error/fileNotFound.html ErrorDocument 405 /error/methodNotAllowed.html ErrorDocument 500 /error/internalServerError.html ErrorDocument 503 /error/overloaded.html AliasMatch ^/~([^/]+)(/(.*))? /var/www/web32/user/$1/web/$3 AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web32/user/$1/web/$3 <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) RewriteRule .* - [F] </IfModule> </VirtualHost> # # My /etc/resolv.conf file is: Code: myuser@computerhostname:~$ cat /etc/resolv.conf search firstdomain.com nameserver 205.152.150.23 nameserver 205.152.132.23 If I am understanding what I read, the seconddomain should be an internal IP address of 192.168.5.103? Should the email1.firstdomain.com IP address be the same as firstdomain.com (192.168.5.102)? Or should it be 192.168.5.104? And the /etc/hosts file should be changed like The Perfect Setup - Debian Sarge (3.1) - Page 3 suggests any change connected to the above questions?
In DNS you must use the external IP for seconddomain.com and not the internal IP. In the website settings you have to use the internal IP.
used external IP Yes, GoDaddy nameservers point both domains to the same external IP address that is actually my IPCop firewall. IPCop (orange DMZ) ports are forwarded to the ISPConfig server for firstdomain.com and seconddomain.com. It is the internal IP address that has me confused. The firstdomain.com has a subdomain of email1.firstdomain.com under it. The seconddomain.com is the one I cannot access. All three domains are the same internal address of 192.168.5.102. Am I understanding correctly that I need to add info to the /etc/hosts file as well as change the internal IP address of seconddomain.com (to 192.168.5.103?) And do I leave the subdomain of email1.firstdomain.com on the same internal IP address (192.168.5.102)as the firstdomain.com (192.168.5.102) website? The combinations of changes has me befuddled and I am attempting to get a sense that I am close to being correct. I am learning more everyday and for that I thank all of you.
Tried this I have changed my /etc/hosts file to: Code: root@computerhostname:/home/admin# cat /etc/hosts 127.0.0.1 localhost 192.168.5.102 computerhostname.firstdomain.com computerhostname 192.168.5.103 seconddomain.com seconddomain # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts I changed the internal IP address for the seconddomain.com site to 192.168.5.103 after adding 192.168.5.103 to my list of internal IP addresses. I have changed my /etc/network/interfaces to: Code: root@computerhostname:/home/admin# cat /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 192.168.5.102 netmask 255.255.255.0 network 192.168.5.0 broadcast 192.168.5.255 gateway 192.168.5.10 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 205.152.150.23 205.152.132.23 dns-search firstdomain.com auto eth0:0 iface eth0:0 inet static address 192.168.5.103 netmask 255.255.255.0 network 192.168.5.0 broadcast 192.168.5.255 gateway 192.168.5.10 And have sent a test email from [email protected] to an outside (my home) email. That email was received, however it has the wrong return email address on it. When I reply to the received email my ISP responds with Code: The following addresses had delivery problems: <[email protected]> Permanent Failure: 550_5.1.1_<[email protected]>:_Recipient_address_rejected:_User_unkno wn_in_local_recipient_table This address has been set (in Squirrelmail Personal Information) to [email protected]. Why would the address appear to be from a different ISPConfig database?
additional information When I attempt to telnet into firstdomain.com, I get an answer and I can connect with an existing user. When I attempt to telnet into seconddomain.com, I get Code: Trying xxx.xxx.xxx.xxx. . . . and eventually the connection times out. And telnet is attempting to connect to the correct external IP address for my server.
internal or external Are you referring to my internal IP address (within ISPConfig) or my nameserver directive (Internet address?)
Too Complex Well, from what I can see, my configuration is too complex for my skills. Thanks for every ones help.
Did you check seconddomain.com on http://www.intodns.com/ ? Maybe there's some kind of misconfiguration.
Now that helps! Thank you. I gave up on the seconddomain email hosting due to external business pressures ("got to get this done" attitude from someoneelse) but, this will help me learn and cleanup my primary site. I was reading a little about IPSConfig 3 and it sounds VERY interesting. I was so pleased to see ISPConfig 3 does not use bind among other changes and improvements. (just a comment) Thanks.