Koozali.org: home of the SME Server

mydomain.local and mydomain.co.uk

energyradio

mydomain.local and mydomain.co.uk
« on: February 19, 2006, 03:01:18 AM »
Hi Guys,

Finally took the plunge this month and am moving ALL systems away from the m.$oft platforms onto Opensource (and wish I would have done it sooner!).  I have managed to install 7.0pre3 with no problems and it was a lot easier to install than I thought, apart from one thing that is driving me NUTS!  Please can someone help.

Setup...

Website:
www.energyradio.co.uk is located on a webserver in telehouse in London (and it is working ok) and this needs to stay there and not be moved or touched and must keep working!!!

Email:
At the moment:
name(at)energyradio.co.uk points to another of our domains hosted by demon internet, if you send an email to user(at) energyradio.co.uk this forwards to user(at)olddomain.co.uk where we then pull the email by POP3, outgoing email goes via NTL businesses SMTP service.


What we need to happen:
email -
anything @energyradio.co.uk needs to come directly into SME, as long as the system is up.

If there is a problem it needs to go to the next mail server in our MX records (I have got that bit ok)

SME Setup at the moment:
Primary Domain - energyradio.local

With this at the moment ALL users get firstname.surname@energyradio.local as their email address, I need the email addresses to be firstname.surname@energyradio.co.uk

How do I make it so that @energyradio.co.uk becomes the primary domain  for when I am setting email addresses and users up, so that I DONT kill the website (thats the most important bit!)  I need it so we can still browse www.energyradio.co.uk from the office (ie look at the offsite pages) but if we use energyradio.local it points to the intranet.

I think this makes sense - I have RTM and thought I had it working, but it didnt do what I wanted, anyone got any ideas?

Cheers
Ben

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: mydomain.local and mydomain.co.uk
« Reply #1 on: February 19, 2006, 07:02:41 PM »
Quote from: "energyradio"

How do I make it so that @energyradio.co.uk becomes the primary domain  for when I am setting email addresses and users up, so that I DONT kill the website (thats the most important bit!)  I need it so we can still browse www.energyradio.co.uk from the office


Set domainname to energyradio.co.uk and configure www.energyradio.co.uk to point to your external website via the hostnames and addresses panel.

energyradio

mydomain.local and mydomain.co.uk
« Reply #2 on: February 19, 2006, 11:59:48 PM »
Hey Charlie,

Thanks for the reply.  Ok, I think this is going to be more complex than I first thought.

I have set the SME servers domain name to energyradio.co.uk, that is all in place now.

I have gone into the hostnames and address panel and gone to edit the www.energyradio.co.uk section - chose the location as REMOTE then I fall down at the "point to your external website" bit.

I cant only use an IP address, this is where I have a problem... I dont have an IP address to use when I have tried looking it up with DNSStuff it points to the webhosts name servers, do you have any suggestions - am I looking for the correct IP address?

Cheers
Ben

arthurhanlon

mydomain.local and mydomain.co.uk
« Reply #3 on: February 20, 2006, 10:40:30 AM »
Looks like the IP your looking for is 85.13.251.153. Try this and see what happens.

Code: [Select]
Pinging energyradio.co.uk [85.13.251.153] with 32 bytes of data:

Reply from 85.13.251.153: bytes=32 time=22ms TTL=51
Reply from 85.13.251.153: bytes=32 time=22ms TTL=51
Reply from 85.13.251.153: bytes=32 time=21ms TTL=51
Reply from 85.13.251.153: bytes=32 time=21ms TTL=51

Ping statistics for 85.13.251.153:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 21ms, Maximum = 22ms, Average = 21ms


Hope this helps,

Arthur

energyradio

mydomain.local and mydomain.co.uk
« Reply #4 on: February 20, 2006, 08:56:04 PM »
Arthur,

Thanks for this, I thought this was the IP address as well myself - all I get when I go to 85.13.251.153 is "There is no website configured at this address." but when you go to energyradio.co.uk (which resolves to 85.13.251.153) it works!!  Now can you see why I am confused!!

Is there any way I can work round this?  Up to now I am liking SME, just scratching my head as a 'noob' to linux etc. as to what I can and cant do.  

SME gives me PDC and mailserver in one (and it has DOUBLED by download speed since getting shut of MS and Keri0 winr0ute FW!) and yes it is still the same PC and hardware! :)

My only comment would be that it is too rigid in the way it forces you to have ONE domain name to do all.  If there were a way to break it down into:

energyradio.local as the main domain
energyradio.co.uk as the domain name for emails etc.
and anything that is at .local (look locally)
and anything that is at anything else look at the internet etc.

Just a thought!  Is this possible - am I missing something obvious?

Cheers all for your help!
Ben

woyzeck

mydomain.local and mydomain.co.uk
« Reply #5 on: February 21, 2006, 04:04:06 AM »
As mentioned before, you should simply enter the ip address in the the hostnames and addresses panel.  Your site is apparently on a shared server, however, it will still work.  I've done it with no problems.

Woyzeck

Offline wjhobbs

  • *****
  • 171
  • +0/-0
    • http://www.chryxus.ca
mydomain.local and mydomain.co.uk
« Reply #6 on: March 06, 2006, 11:29:33 PM »
All,

I seem to be having a problem similar to Ben's in terms of getting the Hostnames and Addresses piece to work the way I need it to.

I have SME6 set up hosting several domains -- but in server-only mode behind a Linksys firewall. However with one domain, my SME Server is to process mail only and the web site is hosted elsewhere (commercial service).

I set up the domain name and point it at an arbitrary ibay. I set the public DNS service to have the www.subjectdomain.ca point to the commercial service IP and have the MX record point to my primary domain on my SME server. All seems to work well for the outside world.

However, from inside I need staff to be able to go to www.subjectdomain.ca (the outside service site not the ibay).

To do this, I find www.subjectdomain.ca in the Hostnames and Addresses panel. I select 'modify' for the that specific (www) domain, select location 'remote' (and leave publish globally checked), after clicking 'next' i fill in the ip address of the commercial service for both the remote host IP Address and the Global IP address, click 'next' and 'save'.

I then go into my web browser and enter 'www.subjectdomain.ca' and my ibay pops up. I would have expected the request to be routed to the remote IP address before hitting my local Apache server.

Is there something I am doing wrong here?

John
...

Offline HenryH

  • *
  • 12
  • +0/-0
mydomain.local and mydomain.co.uk
« Reply #7 on: March 08, 2006, 01:17:14 PM »
Hi Ben,

I may have an explanation for why the IP does not take you to your domain.  Here's what I think may be happening:

Your hosting company is providing your site with a shared IP address.  These are ofter administered with some software called cpanel.  If you contact your hosting company they should provide you with your very own IP address (for $$/month) and then this should be sorted.

You may be able to get to your site with this trick:
IPassdress/~domainadminname

Let me/us know what happens...

PS.  I checked and you DO use cpanel.

Offline bosco555

  • *****
  • 152
  • +0/-0
mydomain.local and mydomain.co.uk
« Reply #8 on: June 12, 2006, 01:31:52 PM »
Hi All,

I am in the same predicament, I also assigned the IP in the hosts & domain panel and tried the following:

# service squid stop

# cd /var/spool/squid

# unalias rm

# rm -r *

# squid -z

#service squid start

And also cleared the PCs caches...to no avail, what is the deal with cpanel??

thanks to all and regards

GB

Offline briank

  • ****
  • 146
  • +0/-0
mydomain.local and mydomain.co.uk
« Reply #9 on: July 17, 2006, 07:50:26 AM »
I have this problem and have found a workaround as I also can't just put an IP address in hosts.
The trick is to have primary domain on server something other than the website domain eg call the primary mydomain.local (the default at install time) and add your mail domain as a virtual domain.
eg  The virtual domain energyradio.co.uk takes care of mail@energyradio.co.uk and you can browse to www.energyradio.co.uk
Cheers
Brian

Offline brianr

  • *
  • 990
  • +2/-0
mydomain.local and mydomain.co.uk
« Reply #10 on: November 27, 2006, 04:00:49 PM »
I also have this problem, and usually solve it by modifying the hostname for the "www" prefix, with the Ip address of the web site, however some ISPs arbitrarily change the Ip address, which causes  my users some consternation until I do the update

HOWEVER some are on shared IP addresses which therefore does not work.  I am currently experimenting with using the "resolve using Internet DNS servers" mode which may fix it...

I have found that having the "primary" domain set to a "local" name causes problems with admin emails sent externally which then bounce or are rejected as the "from" address is not valid on the internet.

The last post in this thread is relevent

http://forums.contribs.org/index.php?topic=32602.0
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........