Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Connect » WORKING: Kerio webmail through Apache
  •  
dr_gaston

Messages: 6
Karma: 0
Send a private message to this user
Hi all,

Many people expressed the will to access the Kerio webmail through Apache in these forums ... well, here is how to do it.

We will use the proxy mechanism of Apache, and forward all requests to a subdomain on Apache to the Kerio webmail. Note: this assumes you are running name-base virtual hosting. This solution can easilly be adapted to other contexts (no virtual hosting, directory-based proxy instead of subdomain, ...) - browse the Apache documentation for more information.

- if Apache and the Kerio webmail are on the same physical server, you need to modify the Kerio webmail to be on a different port or it will conflict with Apache

- edit the 'httpd.conf' file in the apache/conf directory
--- enable the proxy and http_proxy modules by un-commenting the lines:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so

--- make sure you don't end up being an open proxy by adding the following lines in the general server directives section
# Proxy module configuration
# Don't be an open forward proxy!
#
ProxyRequests Off

--- add directives to proxy the subdomain 'webmail' to Kerio (replace 'mydomain.com' with your domain name, 'host' with IP or name of Kerio server, 'port' with the port Kerio webmail runs on)
#
# Configuration for webmail.mydomain.com
#
<VirtualHost *:80>
ServerName webmail.mydomain.com
<Location />
ProxyPass http://host:port/
ProxyPassReverse http://host:port/
</Location>
</VirtualHost>


- save the Apache configuration file, restart Apache.

Et voila ... now browsing to 'webmail.mydomain.com' brings the Kerio webmail login screen, and all is working well.

Enjoy, and please share comments, issues, questions, ... in this thread.

Dr_Gaston.

[Updated on: Mon, 21 March 2005 21:17]


Dr_Gaston.
  •  
sedell

Messages: 1168
Karma: 1
Send a private message to this user
Very nice. Do the KOC updates still function properly?

Scott



  •  
dr_gaston

Messages: 6
Karma: 0
Send a private message to this user
That is for accessing Kerio webmail through a browser ... not Kerio mail server through Outlook. Or does KOC get its updates through webmail?

Dr_Gaston.

Dr_Gaston.
  •  
sedell

Messages: 1168
Karma: 1
Send a private message to this user
Yes, KOC gets it's update from the webmail part of the server. Anyone who's turned off the webmail has inadvertently broken the KOC update.




  •  
dr_gaston

Messages: 6
Karma: 0
Send a private message to this user
Well ... since the Kerio webmail is not turned off, I guess there is no reason it would break the KOC update process. This setup just provides another way to access the webmail through an Apache server.

Dr_Gaston.
  •  
Iassen Hristov

Messages: 54
Karma: 0
Send a private message to this user
I think it will break, because AFAIK KOC is hardcoded to look for updates
at http://KMS_SERVER/updates/
or something of the sort.

However, you should be fine if you just copy the files from the KMS folder
to the same space in Apache. Or better yet create another virtual folder
that points to the kerio update folder.

--On Monday, March 21, 2005 14:18 -0700 dr_gaston <kerio<_at_>n.ganivet.net>
wrote:

>
>
> Well ... since the Kerio webmail is not turned off, I guess there is no
> reason it would break the KOC update process. This setup just provides
> another way to access the webmail through an Apache server.
>
> --
> Dr_Gaston.
>
>





  •  
seali

Messages: 55
Karma: 0
Send a private message to this user
This method will not break the KOC. It is just adding an additional method to access the webmail. It does not change the original webmail.
  •  
desquinn

Messages: 145
Karma: 0
Send a private message to this user
the KOC has a config option (update port) that points it to port 80, change it in the profile and it will work I think. Otherwise if you move webmail off port 80 then the updates will fail.

config option is stored under
HKEY_CURRENT_USER\Software\Kerio\Outlook Connector

as well as thru the client

Des Quinn
  •  
Iassen Hristov

Messages: 54
Karma: 0
Send a private message to this user
Yes, but you want to move the KMS web server to a different port. That is
the whole reason for needing Apache in the first place.

--On Tuesday, March 22, 2005 01:25 -0800 seali <kerio<_at_>sealsystems.net>
wrote:
>
> This method will not break the KOC. It is just adding an additional
> method to access the webmail. It does not change the original webmail.




  •  
arno_jenkins

Messages: 3
Karma: 0
Send a private message to this user
Could you help me out here?

I've looked over your work around and thought I had it, but things are not work as I had hoped. I'm running a Linux server with KMS 6.1.1 & Apache 2.x.

Every time I type in webmail.xyz.com it comes up with the index.html page, can you tell me if I missed something here?

<VirtualHost *:80>
ServerName webmail.xyz.com
<Location />
ProxyPass http://www.xyz.com:81/
ProxyPassReverse http://www.xyz.com:81/
</Location>
</VirtualHost>

P.S. KMS is running on port 81.

Thanks,
-arno
  •  
jandoemen

Messages: 36
Karma: 0
Send a private message to this user
Hi,

I just tried the same and it doesn't work as planned. When I surf to webmail.myowndomain.com then it shows me the page that I would see if I would type www.myowndomain.com. It seems that apache is not doing the port redirection.

So ... I need some help too.

Jan
  •  
sedell

Messages: 1168
Karma: 1
Send a private message to this user
Did you enable name based virtual hosting?

Scott
  •  
jandoemen

Messages: 36
Karma: 0
Send a private message to this user
yep, I have several domains with websites on 1 IP.
  •  
sedell

Messages: 1168
Karma: 1
Send a private message to this user
That was the only thing that came to mind at the moment. I just tried on a test box, and I'm getting 403 errors. I need to experiment more.

Scott
jandoemen

Messages: 36
Karma: 0
Send a private message to this user
I would love to have a sparring partner on this. I'm trying to find a solution too but no luck so far.

Keep you posted.
Jan
Previous Topic: KERIO BES connector authentication error with Connect_Administrator account
Next Topic: error with 6.6.2 and firefox 3.5 and 3.6
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Wed Nov 22 22:50:38 CET 2017

Total time taken to generate the page: 0.00493 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.