1 (edited by eqq2002 2010-12-02 09:47:05)

Topic: iRedMail can't be visited by domain name

========================
Virtual Machine: Virtual box
Network mode: Host Interface,
HostMachine: windows / ubuntu 10.04
GuestMachine: iRedOS

========================
# Hostname-f
The result is: mailhost.xxx.com

========================
ifconfig to get IP ADD: 192.168.0.51,

========================
vi / etc / hosts
saved as:
192.168.0.51 mailhost.xxx.com mailhost
127.0.0.1 localhost.localdomain localhost

========================
In HostMachine browser to  "http://192.168.0.51/mail/"
it works,
In HostMachine using thunderbird as email client, imap access 192.168.0.51, you can send / receive e-mail too.

========================
In guest machine, ping mailhost.xxx.com-c 10, 
In guest machine, ping 192.168.0.51-c 10
In host machine, ping 192.168.0.51-c 10
they all normally return msg from 192.168.0.51

======Exceptions========
Exception 1: In the host machine I can not ping mailhost.xxx.com-c 10
Exception 2: I can not browser  http://mailhost.xxx.com/mail/
Exception 3: In host machine, I Can not use thunderbird as email client, for example:  imap access mailhost.xxx.com

=====Please Help=========
1. How to solve above troubles?
2. if the client machine  (or host machine in VM) connecting both internet and intranet,How to  make sure that the client just  access mailhost.xxx.com( or its ip address) by intranet, not by internet? Cause, the ip is certainly existing on internet .

======Description =======
Server: windows 2003 server
Deploy iRedMail as an Intranet applications on the server
iRedMail and other intranet application will be separated by using virtual machine as follows:
Win2003Server (VirtualBox (Centos (iRedMail)))

Many Tks !!!

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: iRedMail can't be visited by domain name

======Exceptions========
Exception 1: In the host machine I can not ping mailhost.xxx.com-c 10
Exception 2: I can not browser  http://mailhost.xxx.com/mail/
Exception 3: In host machine, I Can not use thunderbird as email client, for example:  imap access mailhost.xxx.com

Did you have hostname and ip address mapping in /etc/hosts? Or you should use IP address in ping or URL directly.

3

Re: iRedMail can't be visited by domain name

ZhangHuangbin wrote:

======Exceptions========
Exception 1: In the host machine I can not ping mailhost.xxx.com-c 10
Exception 2: I can not browser  http://mailhost.xxx.com/mail/
Exception 3: In host machine, I Can not use thunderbird as email client, for example:  imap access mailhost.xxx.com

Did you have hostname and ip address mapping in /etc/hosts? Or you should use IP address in ping or URL directly.

We'd set IP address map in etc/hosts 

vi / etc / hosts
saved as:
192.168.0.51 mailhost.xxx.com mailhost
127.0.0.1 localhost.localdomain localhost

tks!

4

Re: iRedMail can't be visited by domain name

Did you add IP/Hostname mapping in both Host and Guest OS?
Why not use IP address in ping/thunderbird on HostMachine instead? so that you can avoid DNS related issues for testing.

5

Re: iRedMail can't be visited by domain name

ZhangHuangbin wrote:

Did you add IP/Hostname mapping in both Host and Guest OS?
Why not use IP address in ping/thunderbird on HostMachine instead? so that you can avoid DNS related issues for testing.

Tks, ZhangHuangBin

My trouble is something like

2. if the client machine  (or host machine in VM) connecting both internet and intranet,How to  make sure that the client just  access mailhost.xxx.com( or its ip address) by intranet, not by internet? Cause, the ip is certainly existing on internet .

When host machine connect to internet & intranet, browser IP "http://192.168.0.51/mail" or "http://mailhost.xxx.com /mail" , they will try to visit such address on internet, and not which on intranet. All We can do is turn off internet eth, then, the IP/Domain could be visited normally.

So we suspect the /etc/hosts is not set properly. However, it doesn't work when we configure like you mentioned.

Hope your favor again.

6

Re: iRedMail can't be visited by domain name

I guess you need NAT with iptables.