Hi Juergen,

On host terminal:

# ping server1.domain.com[code]
ping: unknown host server1.domain.com

# ping 192.168.0.xxx (server IP)
PING 192.168.0.xxx (192.168.0.xxx) 56(84) bytes of data.
64 bytes from 192.168.0.xxx: icmp_req=1 ttl=64 time=3.65 ms
64 bytes from 192.168.0.xxx: icmp_req=2 ttl=64 time=0.161 ms

On server (VM) terminal:
# cat /etc/resolv.conf
nameserver xxx.xxx.xxx.xxx (ISP nameserver IP)

Stephen L

From: Juergen Nickelsen <juergen.nickelsen@fu-berlin.de>
To: Stephen Liu <satimis@yahoo.com>; Squirrelmail User Support Mailing List <squirrelmail-users@lists.sourceforge.net>
Sent: Friday, January 27, 2012 5:52 PM
Subject: Re: [SM-USERS] fail to contact squirrelmail running domain

On 01/27/12 10:35, Stephen Liu wrote:

> Squirrelmail is running on a VM (guest).  It can be contacted on the
> host by running;
> http://ip/webmail
> But unable to contact it running:
> http://server1.domain.com/webmail

Hello Stephen,

with "ip" I assume you mean the numerical IP address.

Please state the exact error (including error message, if there is any)
you get, otherwise it cannot be more than guesswork. Anyway, I can
*guess* two potential issues here:

(a) DNS mapping for the server domain name to the ip address. If the
error messsage in the browser is something like "The server at
server1.domain.com can't be found, because the DNS lookup failed"
(example from Chrome here), this is the problem. Check if the domain
name correctly resolves to the server IP address *at the client*.

(b) Named virtual host in the HTTP server configuration. If you get
other content in the browser instead of the webmail interface, this may
be the problem. Check if there is perhaps the wrong virtual host
configured for that domain name in the server configuration.

Regards, Juergen.

Juergen Nickelsen <juergen.nickelsen@fu-berlin.de>
Freie Universitaet Berlin, Zentraleinrichtung fuer Datenverarbeitung
Fabeckstrasse 32, 14195 Berlin, Telefon +49.30.838-50740