Page 1 of 1

Change default webmail URL

Posted: Mon Mar 06, 2006 4:22 am
by burhankhalid
Is it possible to change the default webmail url to something other than /webmail?

Posted: Mon Mar 06, 2006 11:31 am
by natkins
Hi burhankhalid,

The easiest way to do this is to do this:

1. Shut down Tomcat (/opt/scalix-tomcat/bin/shutdown.sh)
1a. Make sure it really shut down with ps -ef | grep tomcat
2. Change the file /opt/scalix-tomcat/conf/Catalina/localhost/scalix-swa.xml.
Change the mention of "webmail" to something else of your choosing
3. Remove directory /opt/scalix-tomcat/webapps/webmail
4. Remove /opt/scalix-tomcat/work/Catalina/localhost/webmail
5. Restart Tomcat (/opt/scalix-tomcat/bin/startup.sh)

When you restart Tomcat will extract the war file mentioned in scalix-swa.xml into the directory of your choosing in /opt/scalix-tomcat//webapps.

Remember when you upgrade or reinstall Scalix you will lose these changes.

Hope that helps,

Nick.

Posted: Tue Mar 07, 2006 4:57 am
by burhankhalid
Nick:

Thanks for your response. I managed to solve this problem by creating a subdomain and pointing it -- redirect using Apache to domain.com:8080/webmail -- and this works great.

My problem was that /webmail was being used by our existing system, and I didn't want to completely replace it -- yet.

That solved the problem on the external SWA host, but on the internal one (dedicated Tomcat for SWA) I would like to have webmail running on the default 'root' directory. So if someone types webmail.domain.com -- instead of showing the default Tomcat index page, it would show the SWA login (I have already altered Tomcat to listen on 80 -- there is no Apache on this box).

I created a hack by using a redirect in JSP (basically, altering the index.jsp file) but I would like to know what is the more 'proper' way to do this (similar to what you described with extracting the war files, etc.)

Sorry for my ignorance in this matter, I'm only vaguely familiar with Tomcat.

Thanks for your help,
Burhan