Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: polarair on August 08, 2007, 08:40:10 AM
-
HI, I have the following setup
(SMEserver 7.1.3 as the protector of the outside + a couple of internal windows2003 servers) and the combination works great but i need one more thing to be really happy :D
SME Server setup as gateway-server with a forward of the mail to an IP adress where the exchangeserver is reciding (in the local network) Done standaard via the server-manager emailsettings.
Normaly i would use the Horde webmail feature but we need to use exchange server. (Horde stillworks from the insiode and outside but no mail is deliverd because of the emailsettings)
The problem is that i cant reach the exchange server from the outside for mobile users or even outlookwebmail.
Normaly the server would have an subdomain like exchange.ownserver.com
Could anybody help me on this issue. I cant find it in the wiki.
We really need this functionality and my Linux knowledge is not up to par.
regards
Mike
-
Try this:
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Proxy_Pass
-
Does the server need to be in Server-Gateway mode for this feature to function or does this work in Server-Only mode as well?
I attempted to implement the FAQ recommendation on my server (running in Server Only Mode) and was unsuccessful, or at least no entry is reported in the Domains list.
Thought I would ask this question before trouble shooting any further.
Thanks in advance.
-
AFAIK the code only works in SG mode.
-
Ok,
So i use the following code from the wiki:
db domains set proxypassdomain.com domain Nameservers internet
db domains setprop proxypassdomain.com ProxyPassTarget http://xxx.xxx.xxx.xxx/
db domains setprop proxypassdomain.com TemplatePath ProxyPassVirtualHosts
signal-event domain-create proxypassdomain.com
But im lost in the technicalitys. I presume that the xxx is my exchange server internal ip numer say 192.168.2.200 Should i then replace the server name "exchange.coso.com" where it says proxypassdomain?
And with MSexchange it schould work secure (HTTPS) in the wiki it says that it has not been tested with htttps. Please does anybody have some experiance in this issue or so guidence.
Thanks from "newbie Mike"
-
polarair
I updated the FAQ which should clarify usage for you.
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Proxy_Pass
with MSexchange it schould work secure (HTTPS) in the wiki it says that it has not been tested with https.
Try it first & let us know.
The old beta contrib did support http & https so you may have to resort to using that, if the db commands method doesn't pass https for you or otherwise tweak the code/settings.
-
Ok this is what i did, but the server makes a listing that i dont understand
[root@red ~]# db domains set exchange.coso.com domain Namerserver internet
[root@red ~]# db domains setprop exchange.coso.com ProxyPassTarget http://192.168.2.200
[root@red ~]# db domains setprop exchange.coso.com TemplatePath ProxyPassVirtualHosts
[root@red ~]# signal-event domain-create exchange.coso.com
[root@red ~]#
I now get www.exchange.coso.com type hostnames.
Again i only want to create exchange.coso.com and let the mail run there and let the outlookweb users get to this server from the outside world.
I making a hostname with a local forward to 192.168.2.200 not easier? But will it pass all the data to this host including http mail?
sorry but i seam to ask difficult things.
-
polarair
db domains setprop exchange.coso.com ProxyPassTarget http://192.168.2.200
db domains setprop proxypassdomain.com ProxyPassTarget http://xxx.xxx.xxx.xxx/
You left out the trailing slash
-
polarair
db domains setprop exchange.coso.com ProxyPassTarget http://192.168.2.200
db domains setprop proxypassdomain.com ProxyPassTarget http://xxx.xxx.xxx.xxx/
You left out the trailing slash
OOPPS :oops: :oops: :oops:
But now i get this (in HTTPS):
Bad Gateway
The proxy server received an invalid response from an upstream server.
So im lost. I get the connection so thats nice... Is there something i'm forgetting? From the inside i checked and it workt. so if i use http://192.168.2.200/exchange or http://exchange.coso.com/exchange it works.
If i use from the outside http://exchange.coso.com/exchange it does not.
If i try to get to the webserver https://exchange.coso.com i see nothing on the webserver. If i use the http:// then i see the ISS start page of the windows server running the exchange box.
Again im lost
-
polarair
If i use from the outside http://exchange.coso.com/exchange it does not.
Is that domain configured in external DNS records to point to your sme servers external IP ?
If i try to get to the webserver https://exchange.coso.com i see nothing on the webserver.
Perhaps the https is not being proxypassed correctly. That warning was given in the wiki.
You might like to report your results to the bugtracker.