Koozali.org: home of the SME Server

Displaying external webpages?

Offline askelon

  • ***
  • 59
  • +0/-0
Displaying external webpages?
« on: November 12, 2004, 02:14:49 AM »
How do I change my SME setup to not automatically direct my website to the internal server?  I have it hosted offsite and just want to be able to use my server for hosting my mail / webmail etc (which'll be accessed via the IP addy).

rune_kg

Displaying external webpages?
« Reply #1 on: November 20, 2004, 12:57:50 AM »
Hi Askelon

I'm no expert (Yet 8-)), but heres my two cents:

For what I read in your post, you have yourdomain.xxx, which is hosted by a webhostingcompany. So what you wanna achive is that all http-trafic (port 80) will point at one IP (that of your webhostingcompany), and all your mailtrafic/SMTP_trafic (Port 25) will point at another IP (that of your home computer). Unfortunately that is not possible i'm afraid. yourdomain.xxx can only point at one place at a time.     Some workarounds could be:

1) Configure your webhotel to forward all mails to your ip address. But if you want to get mails larger than your ISP allow, your in trouble.
2) Ask your ISP to forward all trafic on port 25 to your SME-server. Highly unlikely that they will do it though.
3) Let yourdomain.xxx point to your SME-server and then redirect the URL to your webhotel (which should be given another domain)
4) Host your domain yourself!

C Ya

Rune
Denmark

Offline askelon

  • ***
  • 59
  • +0/-0
Displaying external webpages?
« Reply #2 on: November 20, 2004, 06:15:46 AM »
I currently have it as follows:

All mail goes into one mailbox at my ISP, SME downloads this and distributes it as needs be.  Works great.  The website is hosted at my ISP as well and all the DNS records direct to there.  When going to www.mydomain.com I want it to goto my ISP rather than to the SME server. Surely there must be a way.  If I setup my main domain as a virtual domain would that possibly do it?

rune_kg

Displaying external webpages?
« Reply #3 on: November 20, 2004, 01:50:09 PM »
Hi...

It's a bit hard for me to understand excactly what you want to achieve. Is this your problem?:

1) myfirstdomain.xxx, which points to your ISP. This is working as it should!
2) You bought myseconddomain.xxx and your ISP is limited to one domain, thus you want to use SME-server to redirect it to a subfolder on your ISP?

Please elaborate.

C Ya

Rune
Denmark

Offline kruhm

  • *
  • 680
  • +0/-0
host extrenal website
« Reply #4 on: November 20, 2004, 02:56:50 PM »
I think I understand what you want.

You have testdomain.com website hosted offsite.
You have testdomain.com named as your SME server.
Going to testdomain.com goes internal instead of external because the SME is your dns.

Change www.testdomain.com in Hostnames and addresses and modify it to point externally.

Beware of 3 things
1 -this works for www.testdomain.com but not testdomain.com (there is a difference).
2 -this will not happen instantly. You'll have to either refresh the dns cache or the squid cache to get it working (i can't figure out which one is the culprit but i'm pretty sure it's the dns, tested by pinging). This usually happens within 24 hours. For a faster response and because i'm not an expert at this yet, I just shut my server down for about 10 minutes. When it comes back online, it works.
3 -either change your MX record for your domain name to point to your sme box or use fetchmail to process all the mail locally.

Hope this helps.

Thxs,
dak