Koozali.org: home of the SME Server

Hosting 3 domains, and only permit webmail access from one

Offline gtob

  • *
  • 6
  • +0/-0
    • http://www.ipforum.dk
Hosting 3 domains, and only permit webmail access from one
« on: February 27, 2007, 12:35:00 PM »
Hi,

i'm hosting 3 domain on my SME Server 7.1, one primary and two virtual.

I allso have webmail (horde) running.

Everything works fine regarding webmail and webpages on the 3 domains (www.domain1.com, www.domain2.com and www.domain3.com).

But i only want to be able to access the webmail from the primary domain.

It seems that by entering either www.domain1.com/webmail, www.domain2.com/webmail or www.domain3.com/webmail i get access.

How to make access to the webmail only from the primary domain (www.domain1.com)?

And is it possible to access the webmail by entering "https://mail.domain1.com" instead of "https://www.domain1.com/webmail"?

Thanks in advance for any answer  :)

/Torben
If you obay to rules, you'll miss all the fun ;o)

Offline gtob

  • *
  • 6
  • +0/-0
    • http://www.ipforum.dk
Hosting 3 domains, and only permit webmail access from one
« Reply #1 on: March 01, 2007, 09:51:42 PM »
Well, since i haven't got any answer for this i searched this forum and the internet more deeply, and found this one:
http://www.sonoracomm.com/index.php?option=com_content&task=view&id=125&Itemid=32

But unfortunately, i'm not able to make it working.

I'll appreciate if someone could help me further :)

Thanks in advance.

/Torben
If you obay to rules, you'll miss all the fun ;o)

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Hosting 3 domains, and only permit webmail access from o
« Reply #2 on: March 02, 2007, 01:51:24 AM »
Quote from: "gtob"

But i only want to be able to access the webmail from the primary domain.


Why? Why does it matter?

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Hosting 3 domains, and only permit webmail access from one
« Reply #3 on: March 02, 2007, 02:16:41 AM »
Quote
And is it possible to access the webmail by entering "https://mail.domain1.com"


Well i just web forwarded (zoneedit has this function) all the trafic from mail.domain.com to domain.com/webmail so now i'm able to use webmail if i type the old webmail path or mail.domain.com :D

Quote
Why? Why does it matter?

Same question. This is not that important so i don't think that you should bother.
"It should just work" if it doesn't report it. Thanks!

Offline gtob

  • *
  • 6
  • +0/-0
    • http://www.ipforum.dk
Hosting 3 domains, and only permit webmail access from one
« Reply #4 on: March 03, 2007, 12:21:55 PM »
Quote
Why? Why does it matter?
Well, i'm a security guy and only want to allow access from one domain, so that i only have to make content filtering etc. regarding e-mail for this one domain.

Quote
Well i just web forwarded (zoneedit has this function) all the trafic from mail.domain.com to domain.com/webmail so now i'm able to use webmail if i type the old webmail path or mail.domain.com
I'll appriciate if you'll make an example on how to do this.
Thanks in advance  :)
If you obay to rules, you'll miss all the fun ;o)

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Hosting 3 domains, and only permit webmail access from one
« Reply #5 on: March 03, 2007, 02:23:55 PM »
Quote
Well, i'm a security guy and only want to allow access from one domain, so that i only have to make content filtering etc. regarding e-mail for this one domain.

Well content filtering works for all domains so you won't have to make different settings for each one.

Now for the zoneedit part....
Go to http://www.zoneedit.com/ and signup (it's free).
Now login and add zones (you'll have to add dns of ZE at your domain registrar).
When you add their nameservers to your DNS records go back to www.zonedit.com and click on domain name and then on web forwards.
Then you'll have to fill out subdomain (eg. mail) and under redirects to http://server/webmail and click on cloaked so you'll see mail.domain.com instead of http://server/webmail. Wait a few minutes and you're set.
"It should just work" if it doesn't report it. Thanks!