Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Ed Form on February 18, 2003, 01:54:04 AM

Title: Using SME when your website is ISP hosted
Post by: Ed Form on February 18, 2003, 01:54:04 AM
Howto gain access to your ISP hosted domains from behind an SME server using virtual-domain aliases

For those who cannot obtain connections of sufficient bandwidth to host their own website or mail server, and are forced to use an outside ISP for these services, SME should still be an attractive way to supply file, print, centralised-email, and fire-walled web-browsing services to small networks. In this role, however, the software has a drawback which can make it unacceptable to many users - in order to use company email addresses for network users, the SME server must have the company domain name. This means that an ISP-hosted company website cannot be seen by machines connected to the in-house server. All requests for the company domain result in connections to the corresponding service of the SME server.

I've worked out a method to solve this problem in which you configure your in-house server with a different domain name to that used by the company and fool the mail system into treating internal and external email, addressed to the company domain, as though it was addressed to the new in-house server domain.

Since I've needed something to do this for the longest time, I figured others might find it useful, so I've made it available on my webpage at...

http://www.gopaperless.co.uk

...until the Mitel folks get round to adding it to the contributed Howto lists.

Ed Form
Title: Re: Using SME when your website is ISP hosted
Post by: Kelvin on February 18, 2003, 03:40:15 AM
Hi Ed,

I'm not certain of the need.

If you configure your SME server to have your actual domain name, you can go to hostnames and addresses under server manager and point the www entry back to your ISP hosted website, which solves the problem of local users not being able to access the company website.

And depending on your ISP / domain host, you could either :-

1. Have the ISP / domain host list your SME as the primary MX (even on dial-up and even if you use Dynamic DNS services)

2. Use multidrop as you have done in your How-to (although I much prefer Vincent's multidrop addin over the dugong's one).

I do this on many, many servers.

Kelvin
Title: Re: Using SME when your website is ISP hosted
Post by: Ray Mitchell on February 18, 2003, 06:56:33 AM
Dear Ed & Kelvin

You can also quite simply put a one line entry in an index page in /primary/html which points to your outside hosted web site ie www.outsidehostdomainname.com.

That way you can have the majority of your web site on an external host site, but still have pages on your sme server like www.yourdomain.com/otherstuff, and host your own domain based email as well.

No need to set up anything else on your sme server, your external MX records of course point to your sme server which is setup with your actual domain name.
Of course if your server is down, then your whole web site is down, external and internally hosted, but then again whenever does your sme server go down !!??

I look after a site where it is done this way and it works quite nicely.

Regards
Ray Mitchell
Title: Re: Using SME when your website is ISP hosted
Post by: Cyrus Bharda on February 18, 2003, 07:30:48 AM
I have a SME 5.5U3 using a 56k dial-up connection to the net, because that's all that is available, and we host our own email @langs.net.au BUT we have our website hosted by a private company.

Its easy as basically add in the Host Names and Addresses the External IP for www.langs.net.au (you dmain of course) and bob's your uncle! When people from the inside LAN access www.langs.net.au it loads from our hosts not our SME and all the mail is sent to our SME not host, this is done via a cname in our MX records.


[root@esmith root]# dig @ozemail.com.au langs.net.au

; <<>> DiG 9.1.3 <<>> @ozemail.com.au langs.net.au
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58257
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;langs.net.au.                  IN      A

;; ANSWER SECTION:
langs.net.au.           86400   IN      A       203.63.219.194

;; AUTHORITY SECTION:
langs.net.au.           2181    IN      NS      spook.cia.com.au.
langs.net.au.           2181    IN      NS      snoop.cia.com.au.

;; ADDITIONAL SECTION:
spook.cia.com.au.       10250   IN      A       203.17.36.1
snoop.cia.com.au.       10250   IN      A       203.17.36.2

;; Query time: 593 msec
;; SERVER: 203.2.194.3#53(ozemail.com.au)
;; WHEN: Tue Feb 18 14:27:03 2003
;; MSG SIZE  rcvd: 138

[root@esmith root]# dig mx @ozemail.com.au langs.net.au

; <<>> DiG 9.1.3 <<>> mx @ozemail.com.au langs.net.au
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37359
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 2, ADDITIONAL: 5

;; QUESTION SECTION:
;langs.net.au.                  IN      MX

;; ANSWER SECTION:
langs.net.au.           86400   IN      MX      10 mail.langs.net.au.
langs.net.au.           86400   IN      MX      20 smtp.bne.server-mail.com.
langs.net.au.           86400   IN      MX      30 smtp3.bne.server-mail.com.

;; AUTHORITY SECTION:
langs.net.au.           2155    IN      NS      spook.cia.com.au.
langs.net.au.           2155    IN      NS      snoop.cia.com.au.

;; ADDITIONAL SECTION:
mail.langs.net.au.      86400   IN      A       203.22.141.171
smtp.bne.server-mail.com. 19    IN      A       203.147.151.186
smtp3.bne.server-mail.com. 18   IN      A       203.147.151.183
spook.cia.com.au.       10224   IN      A       203.17.36.1
snoop.cia.com.au.       10224   IN      A       203.17.36.2

;; Query time: 677 msec
;; SERVER: 203.2.194.3#53(ozemail.com.au)
;; WHEN: Tue Feb 18 14:27:28 2003
;; MSG SIZE  rcvd: 253

[root@esmith root]#

This way all http traffic goes to host and all mail to SME. The only thing is that SME still provides http to mail.langs.net.au, but I have put in a little forwarder index.htm to forward anyone looking at that to www.langs.net.au, but still I would love o be able to turn all external http off so that I could develop an internal intranet, anyone know how?

Cyrus Bharda
Title: Re: Using SME when your website is ISP hosted
Post by: Kelvin on February 18, 2003, 07:49:09 AM
Hi Cyrus,

I'm not certain of your intranet requirements but,

For my various installations, I get my clients to access their "intranet" via their SME server name (ie. called "smeserver" for example), instead of their domain name. That way, when they want to get to the ISP hosted web page, they enter :-

www.mydomain.com

into their web browser and when they want to access their "intranet", just type in

smeserver

into their web browser. And this won't break any of the add-ins you might want like twiggi, etc.

ie.

https://smeserver/twiggi

A whole lot shorter to type too ! :-)

Kelvin
Title: Re: Using SME when your website is ISP hosted
Post by: Cyrus Bharda on February 18, 2003, 08:01:56 AM
The only problem is that if you want to put info on your intranet that you dont want anyone but company employees to look at here http://smeserver it is also available at http://mail.yourdomain.com which isnt really good if you are putting financial info on the intranet :-)

I thought it would probably be easier just to setup another sme box just for serving the intranet and then it is not conected to the outside at all :-)

Cyrus Bharda
Title: Re: Using SME when your website is ISP hosted
Post by: Ray Mitchell on February 18, 2003, 08:14:02 AM
Cyrus
I think my post answers your requirements, but to expand a little.

Treat your sme server as the primary web site server and have all MX records set accordingly.
Do not put any entries in the hostnames and addresses panel.
Therefore all external traffic to www.yourdomain.com comes to your /primary/html folder and reads the index.htm file. This file has one line in it which redirects requests for your web sites primary web page to the externally hosted location, which of course is NOT using your domain name, but say www.ozemail.com.au/cyrus (or whatever).

All other requests for www.yourdomain.com/otherstuff or www.yourdomain.com/ibayname will go directly to your server, including requests for your own intranet hosted on your sme server. Local users requests for www.yourdomain.com are also forwarded to the external site to get the primary web site page.

You can create pages in subfolders in the /primary/html folder and access them via www.yourdomain.com/subfoldername OR you can create pages in ibays and access them by www.yourdomain.com/ibayname.

Mail and everything else is hosted locally by default.

Regards
Ray Mitchell
Title: Re: Using SME when your website is ISP hosted
Post by: Kelvin on February 18, 2003, 08:17:20 AM
Hi Cyrus,

Simple, this is how it's done on a few sites :-

http://smeserver/intranet

where intranet is a password protected ibay.

If you don't advertise the fact that "intranet" exists, then someone must know the name to look for it.

Additionally, even if they found the name, they still need a valid username and password to get to it.


Kelvin
Title: Re: Using SME when your website is ISP hosted
Post by: Cyrus Bharda on February 18, 2003, 08:31:36 AM
Yes but arent all the i-bays/subdirs under /primary/html accessable from the outside, and another thing, we also use our piddly little modem for net access, I dont know how our link would go if we subjected it to redirecting web traffic all day :-).

See if I make a sub dir under /primary/html/test without the entry in the hostnames, when someone internally types in http://smeserver/test it will load, but it will also load if someone internally/externally types in http://www.domain.com/test , meaning that if someone externally guesses a name of the subdirectory then it will load to them. Is that correct?

Internal: (without hostnames)

http://smeserver = /primary/html
http://www.domain.com = /primary/html
http://smeserver/test = /primary/html/test
http://www.domain.com/test = /primary/html/test

Internal: (with hostnames)

http://smeserver = /primary/html
http://www.domain.com = http://hostname_entry
http://smeserver/test = /primary/html/test
http://www.domain.com/test = http://hostname_entry/test

External: (DNS Records pointed to SME)

http://www.domain.com = /primary/html/index.htm (forwarder to ISP site)
http://www.domain.com/test = /primary/test

External: (DNS Records pointed to ISP and MX pointed to SME)

http://www.domain.com = http://isp_site.com/
http://www.domain.com/test = http://isp_site.com/test
http://mail.domain.com = /primary/html/index.htm (forwarder to ISP site)
http://mail.domain.com/test = /primary/test


meaning that if I do put information that is private and someone guesses the subdir then they get access to it, wether I like it or not :-(

Am I wrong/right? Am I confused, Yupp!

:-)

Cyrus Bharda
Title: Re: Using SME when your website is ISP hosted
Post by: Cyrus Bharda on February 18, 2003, 08:34:22 AM
So basically as long as you make an i-bay with password protection then its all good? Is it possible for someone to "break" into an i-bay from an external source, eg someone hacks in ?

Cyrus Bharda
Title: Re: Using SME when your website is ISP hosted
Post by: Cyrus Bharda on February 18, 2003, 08:38:07 AM
Ok

_BONK SELF IN HEAD_

I just went and had a look at creating an i-bay for the first time and found out that I can set it to:

Local network (no password required)
Local network (password required)

Which means that it wont be accessable from the outside right?

(winding up for another bonk if it is correct)

:-)

Cyrus Bharda
Title: Re: Using SME when your website is ISP hosted
Post by: Kelvin on February 18, 2003, 08:40:09 AM
>Is it possible for someone to "break" into an i-bay from an external source, eg
> someone hacks in ?

Of course ! No system in the world is 100% unbreakable. The question is how easy it is (are your passwords secure ????), is it worth it, and do you know how.

I personally don't know how to break into a password protected i-bay. That's not to say someone else doesn't. If I did, I would have sent a report to mitel quick smart as I have people set up this way ! :-)

Kelvin
Title: Re: Using SME when your website is ISP hosted
Post by: Kelvin on February 18, 2003, 08:42:50 AM
OOhhhh,

>(winding up for another bonk if it is correct)

>:-)

Think you're gonna need that ice pack. Now where did you last put it ????

:)

Kelvin
Title: Re: Using SME when your website is ISP hosted
Post by: Ray Mitchell on February 18, 2003, 08:46:14 AM
Cyrus
As I understand it. Kelvin is correct to say that anything you want to be private, you should put in an ibay which is password protected set to say Entire internet (password required outside local network). This would allow your local users to access it via www.yourdomain.com/ibayname without needing a password whereas external users would need to enter a password.

I don't think the web requests are that big but a lot of them could slow your modem to a crawl. I don't believe the actual web traffic is passed through your modem, only the requests for the site which are redirected.

It really depends on the number of hits to your site.
Perhaps you may want to upgrade to a ADSL service (if available).
I priced them recently and it turned out that a basic ADSL from TPG ended up being cheaper that a dial up service when the cost of the phone calls and line rental were included (and that was a permanent dial up connection by the way). Unfortunately one phone call connection only lasts a few days before it drops out.

Hope this helps
Regards
Ray Mitchell
Title: Re: Using SME when your website is ISP hosted
Post by: Kelvin on February 18, 2003, 08:48:00 AM
Ok, to be fair, I must apologise to Ed who started this thread. This discussion has deviated slightly from his original posting.

Next time, we'll start a new thread.

Kelvin
Title: Re: Using SME when your website is ISP hosted
Post by: Cyrus Bharda on February 18, 2003, 09:30:26 AM
Yeah sorry Ed, now all I gotta do is to figure out how to configure this i-bay to do what I need, which at the moment I dunno how, and I wish I could get ADSL, I am half way between brisbane and the gold coast, damn tel$tra tells me I cannt get it!!!

Anyway if you still wanna help out, new thread is here:

http://forums.contribs.org/index.php?topic=6846.msg24665#msg24665

Thanks again!

Cyrus Bharda
Title: Re: Using SME when your website is ISP hosted
Post by: Ed Form on February 18, 2003, 03:17:13 PM
Hi Kelvin,

You said...

> I'm not certain of the need.
>
> If you configure your SME server to have your actual domain
> name, you can go to hostnames and addresses under server
> manager and point the www entry back to your ISP hosted
> website, which solves the problem of local users not being able
> to access the company website.

I was aware of this, but what I couldn't get to work were the other
aspects of remote hosting - uploading stuff to the site, and running the control panel that the ISP provides for setting up mail users etc.

When I alter the ftp hostname to remote and give the correct IP address for uploading to my site it doesn't work, just announces that the URL isn't available.

My ISP provides me with a virtual control panel at cp.mydomain.co.uk where  I can do all sorts of good stuff. When I call it it isn't available and when I try to create a new remote hostname *cp* the server manager just barfs and won't let me do it.

So, as I want to be able to provide my clients with the ability to
maintain their own websites I gave up on this approach some time ago.

> And depending on your ISP / domain host, you could either :-
>
> 1. Have the ISP / domain host list your SME as the primary MX
> (even on dial-up and even if you use Dynamic DNS services)

I'm not sure why I would want to do that. Part-time mail servers are rejected by half the ISPs on the planet. The situation I'm interested in is where mail serving has to be done at the ISP.

> 2. Use multidrop as you have done in your How-to (although I
> much prefer Vincent's multidrop addin over the dugong's one).

I used *multipop* [not multidrop] in order to have every user's mail collected seperately. This solves the mailing list message sorting problem that multidrop produces, because the ISP sorts the stuff off his incoming ETRN, and puts it in the correct boxes. It's also cheaper than having a fixed IP address and an ETRN stream from an ISP, which typically costs - about 10 UK pounds/month on a dialup account in the UK. Fixed IP addresses
are 10 UK pounds per year on broadband, but I have very few broadband customers due to the galactically stupid attitude of British Telecom, and its appalling recent business performance that has crippled its ability to borrow the money needed to update its tin-can and string infrastructure.

Nevertheless, I have no wish to perpetuate a Howto that isn't needed. If you know how to allow users downstream of an SME server to update, control, and browse an ISP hosted website with the same domain name as the SME server, I'd love to know about it, and I'm sure quite a few others would also.

Ed Form
Title: Re: Using SME when your website is ISP hosted
Post by: Ed Form on February 18, 2003, 03:18:58 PM
Ray Mitchell wrote:
>
> Dear Ed & Kelvin
>
> You can also quite simply put a one line entry in an index
> page in /primary/html which points to your outside hosted web
> site ie www.outsidehostdomainname.com.
>
> That way you can have the majority of your web site on an
> external host site, but still have pages on your sme server
> like www.yourdomain.com/otherstuff, and host your own domain
> based email as well.

Links in the external webpages will keeping returning you to the internal site with URL not found.

Ed Form
Title: Re: Using SME when your website is ISP hosted
Post by: Ed Form on February 18, 2003, 03:32:04 PM
Ray Mitchell wrote:
>
> Cyrus
> As I understand it. Kelvin is correct to say that anything
> you want to be private, you should put in an ibay which is
> password protected set to say Entire internet (password
> required outside local network). This would allow your local
> users to access it via www.yourdomain.com/ibayname without
> needing a password whereas external users would need to enter
> a password....

I'm starting to get confused here. The original Howto was for people who *cannot* present their SME server to the outside world under any circumstances because permanent connections of any kind cost so much they are unnaceptable and cheap broadband isn't available, and who want to use company domain email addresses for everything.

Kelvin's suggestion of making entries in the 'hostnames and addresses' section of the Server Manager certainly allows users inside the SME's network to see the externally hosted site, but I knew that anyway. What it doesn't do, unless I'm to thick to work out how to set it up, is allow them to upload to the site, and it certainly doesn't allow them to get at things like domain control panels provided by the ISP. The method in the Howto does, and it also solves multidrop sorting difficulties, which are the bane of my life at my one live site.

ed Form
Title: Re: Using SME when your website is ISP hosted
Post by: Ed Form on February 18, 2003, 03:35:58 PM
Kelvin wrote:
>
> Ok, to be fair, I must apologise to Ed who started this
> thread. This discussion has deviated slightly from his
> original posting.
>
> Next time, we'll start a new thread.

Don't apologise. It's good stuff but doesn't actually answer my original problem.

Ed Form
Title: Re: Using SME when your website is ISP hosted
Post by: Kelvin on February 18, 2003, 03:38:31 PM
Hi Ed,

I will give you an example from the many clients I have in a working setup like this.

One such web host in Oz is WebCentral. They have a "mission control" interface (web driven) which allows the user to log in and configure aspects of their hosted domains. This includes setting up how you want the web site hosted (by them or by you), how you want the mail hosted and so on.

Once configured with hostnames and addresses in server-manager, my clients can use their inhouse web design packages (I usually recommend Netobject Fusion or NOF for short) to upload and maintain their websites which are located with the Web host, no hassles at all. For example, in NOF, you can tell the software your website is called www.mydomain.com, give it the access username and password and NOF will happily ftp you web design to your website - like I said, no hassles.

As for hosting their own mails, I've yet to receive any complains. You *might* hit a problem sending out mails (I've only had one site out of so many) which then requires you to set your SME server to deliver all outgoing mails to your ISP's mail server for final delivery, but so far, never a problem when receiving mails (I don't think ISPs know / care that they are delivering to "part-time" mail servers - though they *might* care if they are receiving *from* "part-time" mail servers). WebCentral also provides Backup MX services as well if your mail server appears to be offline or unreachable. And as I have mentioned in my original post, you don't necessarily need a fixed IP address to host your own domain mail either. If your domain host (DNS provider) will not allow you to use dynamic addresses, choose another provider. I don't know about the UK but OZ hosts tend to be fairly flexible especially when they know the person who is asking appears to know what he's talking about.

Kelvin
Title: Re: Using SME when your website is ISP hosted
Post by: Ed Form on February 18, 2003, 05:41:39 PM
Kelvin wrote:
>
> Hi Ed,
>
> I will give you an example from the many clients I have in a
> working setup like this....
>
>....I don't know about the UK but OZ hosts tend to be
> fairly flexible especially when they know the person who is
> asking appears to know what he's talking about.

I shall give all this a serious try in the next couple of days.

Thanks

Ed Form
Title: Re: Using SME when your website is ISP hosted
Post by: Ed Form on February 18, 2003, 08:16:57 PM
Kelvin wrote:

> I will give you an example from the many clients I have in a
> working setup like this...

there is another complication in all this. SME isn't very good at clearing up after itself. I've reconfigured my machine a couple of times int he last 24 hours and the Virtualdomains file has turned into a quagmire...

wgs.com:alias-localdelivery
e-smith.wgs.com:alias-localdelivery
e-smith.workgroupsolutions.co.uk:alias-localdelivery
ftp.wgs.com:alias-localdelivery
ftp.workgroupsolutions.co.uk:alias-localdelivery
mail.wgs.com:alias-localdelivery
mail.workgroupsolutions.co.uk:alias-localdelivery
proxy.wgs.com:alias-localdelivery
proxy.workgroupsolutions.co.uk:alias-localdelivery
wpad.wgs.com:alias-localdelivery
wpad.workgroupsolutions.co.uk:alias-localdelivery
www.wgs.com:alias-localdelivery
www.workgroupsolutions.co.uk:alias-localdelivery
workgroupsolutions.co.uk:alias-localdelivery
gopaperless.co.uk:alias-localdelivery

The last two lines are the ones added by my 90aliases template fragment but the presence of both wgs.com [my inhouse domain name] and workgroupsolutions.co.uk [my company domain] in the rest of the file would seem to indicate that the system doesn't forget old domain names when it has the name changed in the configuration sequence. What now happens is that my system can see workgroupsolutions.co.uk whether or not I have the remote setting for www in hostnames and addresses.

I'll have to reload the server from scratch and set it up as you suggested.

Ed Form
Title: Re: Using SME when your website is ISP hosted
Post by: Cyrus Bharda on February 19, 2003, 05:22:55 AM
OK Ray I got a question,

I did remove the www.langs.net.au entry in the hostnames and address but then my forwarder didnt work, it was trying to forward it to www.langs.net.au which it is, so I am not too sure about the forwarding as our "proper" web site is actually being hosted at a host (CIA), _not_ an ISP (www.ozemail.com.au/~blah).

So I tryed looking up the ip that I should be forwarding to but all I get is this stupid picture, not my companies web site?!?!?!?!!? Check it out:

[root@esmith root]# dig @ozemail.com.au langs.net.au

; <<>> DiG 9.1.3 <<>> @ozemail.com.au langs.net.au
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46572
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;langs.net.au.                  IN      A

;; ANSWER SECTION:
langs.net.au.           7762    IN      A       203.63.219.194

;; AUTHORITY SECTION:
langs.net.au.           11040   IN      NS      spook.cia.com.au.
langs.net.au.           11040   IN      NS      snoop.cia.com.au.

;; ADDITIONAL SECTION:
spook.cia.com.au.       18013   IN      A       203.17.36.1
snoop.cia.com.au.       18013   IN      A       203.17.36.2

;; Query time: 226 msec
;; SERVER: 203.2.194.3#53(ozemail.com.au)
;; WHEN: Wed Feb 19 12:17:40 2003
;; MSG SIZE  rcvd: 128

So try opening http://203.63.219.194/ in your web browser, hmmmmmm?!?!? So how do I set the forwarder to point to my companies real page?

And do I need to set a forwarder for each and every file, eg if someone tryes to go to www.langs.net.au/fubar will i need to put a forwarder on the sme box in the /primary/html/fubar dir so that they dont get a file not found error?

This of course will only apply to poeple internally trying to access out own website, thats why I thought that the entry in the hostnames is much easier, then if someone internally try's to open http://www.langs.net.au/* it will be loaded from our hosts server not the SME.

Right???
Thanks for your help!

Cyrus Bharda
Title: Re: Using SME when your website is ISP hosted
Post by: Ray Mitchell on February 19, 2003, 08:10:07 AM
Cyrus & Ed
Read my post again
http://forums.contribs.org/index.php?topic=6842.msg24626#msg24626

Of course you cannot have 2 locations that are both called www.mydomain.com.

The way I am suggesting is that your sme server is www.mydomain.com and it is the only place that domain exists. If you have an existing domain name hosted elswhere, then that needs to change ie it does not need to be a hosted domain, but can just be www.ozemail.com.au/cyrus or whatever, just an ISP hosting your pages at any arbitrary site and name you choose.

The sme's /primary/html/index.html points to www.ozemail.com.au/cyrus

Thus requests for www.mydomain.com.au are forwarded to www.ozemail.com.au/cyrus, which has the majority of the web site hosted for www.mydomain.com.

Unless you want them you do not need to create any other folder and pages in /primary/..... or any ibays for that matter either.

All other requests will go directly to your server for all other services, as if the sme was hosting the complete domain site, which it effectively is doing

Of course you will have to change MX/DNS records and the present hosting arrangement you have for my suggestion to work.

Hope this clarifies my suggestion
Regards
Ray Mitchell
Title: Re: Using SME when your website is ISP hosted
Post by: Ray Mitchell on February 19, 2003, 08:40:12 AM
Cyrus
It's not the area I fully understand as yet, but if your sme server is to act as the host for www.mydomain.com, then the mx/dns records have to point to your sme server's gateway IP, (which preferably should be a static IP).
But to do this you will also have to change the domain name that is hosted elswhere, cannot have 2 the same !!
Regards
Ray Mitchell
Title: Re: Using SME when your website is ISP hosted
Post by: Ed Form on February 19, 2003, 11:26:43 AM
Ray Mitchell wrote:
>
> Cyrus & Ed
> Read my post again
> http://forums.contribs.org/index.php?topic=6842.msg24626#msg24626
>
> Of course you cannot have 2 locations that are both called
> www.mydomain.com.
>
> The way I am suggesting is that your sme server is
> www.mydomain.com and it is the only place that domain exists.
> If you have an existing domain name hosted elswhere, then
> that needs to change ie it does not need to be a hosted
> domain, but can just be www.ozemail.com.au/cyrus or whatever,
> just an ISP hosting your pages at any arbitrary site and name
> you choose.
>
> The sme's /primary/html/index.html points to
> www.ozemail.com.au/cyrus
>
> Thus requests for www.mydomain.com.au are forwarded to
> www.ozemail.com.au/cyrus, which has the majority of the web
> site hosted for www.mydomain.com.

My specific problem is with setups where the SME server cannot be on line all the time and this seems to be necessary in your scenario, but even if the SME could be online, I also have a lot of clients with webpages hosted, designed and maintained by industry specific providers. These are filled with links which point to other pages in the website, all of which would push a browsing punter back to the SME server and to a URL not found notice. If the site is designed with proper relative links this shouldn't occur, but they are often not and my clients have no say in how the site is written, they are only able to choose from a few alternative presentations and provide an amount of company specific info to be placed in template areas on thesite to give it their identity.

Ed Form
Title: Re: Using SME when your website is ISP hosted
Post by: Ray Mitchell on February 19, 2003, 11:55:42 AM
Ed Form wrote:
> My specific problem is with setups where the SME server
> cannot be on line all the time and this seems to be necessary
> in your scenario

Yes Ed that is correct, a permanent dial up modem connection or low end ADSL work OK.

> If the site is designed with
> proper relative links this shouldn't occur

That's right, the site I refer to works quite OK this way, because as you say, the links are relative, not absolute
We do have some links in the main site that do link to pages on the sme server using www.mydomain.com.au/ibayname

We also have plenty of pages on the sme that serve directly to the internet ie some pages hosted externally, some hosted internally.
The internally hosted pages are setup to allow different users to be able to update them easily by VPN, something which is not possible/practical with the externally hosted pages ie can't hand out the access codes for the external site to many different users, something which is inherent in sme server by default.

Regards
Ray Mitchell
Title: Re: Using SME when your website is ISP hosted
Post by: James Roberts on April 23, 2003, 11:33:55 AM
We have many of the same problems as Ed.

We also are UK, and have no interest in the SME box being pointed to by an MX, nor do we want it to serve web pages externally.

Using the SME panel to set the www address to an external service is just fine if the external service is served by a real server with a fixed IP address.

However in the yUK that's rarer than hen's teeth. Sites are served by virtual servers using HTTP1.1 'host_header' field.

I don't see a simple way of doing this with the panel, but there's gotta be a betta way.

Does anyone know how to achieve this? No doubt it's simple - too simple for me...

Thanks!

JR
Title: Re: Using SME when your website is ISP hosted
Post by: Kelvin on April 23, 2003, 11:47:13 AM
James,

It might help if you could provide a domain / web site as an example for those of us not in the UK to test with.

I have not had any problem with the various web hosts here so will definitely need an example to work with.

Kelvin
Title: Re: Using SME when your website is ISP hosted
Post by: James Roberts on May 01, 2003, 12:44:49 PM
Hi Kevin:

sorry for delay in reply, moving back and forth between countries a lot just now.

A typical example of what I mean is at MarisaMartin.com. This is *not* one of the client sites we have problems with - it's a site I have under control myself (it's my wife's :-)

It's hosted on a virtualised IP, and trying to set up the '...hostnames and addresses under server manager and point the www entry back to your ISP hosted website, which solves the problem of local users not being able to access the company website...' simply WILL NOT WORK until I can find a way of sending the HTTP1.1 host_header as well. I've tried! This must be simple, but as far as I can see this is templated and I don't understand the system well enough to change it.

To replicate the issue:

1. get the IP address from a lookup.
2. ping it, fine
3. Browse to the web page at the IP address found and enjoy reading the default page.

JR
Title: Re: Using SME when your website is ISP hosted
Post by: James Roberts on May 01, 2003, 12:44:52 PM
Hi Kevin:

sorry for delay in reply, moving back and forth between countries a lot just now.

A typical example of what I mean is at MarisaMartin.com. This is *not* one of the client sites we have problems with - it's a site I have under control myself (it's my wife's :-)

It's hosted on a virtualised IP, and trying to set up the '...hostnames and addresses under server manager and point the www entry back to your ISP hosted website, which solves the problem of local users not being able to access the company website...' simply WILL NOT WORK until I can find a way of sending the HTTP1.1 host_header as well. I've tried! This must be simple, but as far as I can see this is templated and I don't understand the system well enough to change it.

To replicate the issue:

1. get the IP address from a lookup.
2. ping it, fine
3. Browse to the web page at the IP address found and enjoy reading the default page.

JR
Title: Re: Using SME when your website is ISP hosted
Post by: James Roberts on May 01, 2003, 12:51:45 PM
Oops, sorry, I meant to write Kelvin not Kevin, need more sleep.

JR
Title: Re: Using SME when your website is ISP hosted
Post by: Kelvin on May 01, 2003, 01:48:09 PM
Hi James,

I'll test with the MarisaMartin.com domain once I clear some work.

> Oops, sorry, I meant to write Kelvin not Kevin, need more sleep.

That's OK, I've been called worse :).

Kelvin
Title: Re: Using SME when your website is ISP hosted
Post by: Kelvin on May 01, 2003, 02:34:49 PM
By the way James, when you log into your website control panel, does it show you an IP address for your website ? Is it 66.33.202.47 ? If not, can you post it here or e-mail it to me offlist.

Kelvin
Title: Re: Using SME when your website is ISP hosted
Post by: jr on May 22, 2003, 11:54:38 PM
Yep, that's the IP.