1

Topic: How to uninstall roundcube from iredmail server please ?

==== Required information ====
- iRedMail version: iRedMail-0.8.6
- Store mail accounts in which backend MySQL
- Linux/BSD distribution name and version: debian 7.3 wheezy
- Related log if you're reporting an issue:
====

Hello,
I have a fresh install of iredmail server that works like a charm, so thank you to iredmail communauty.

My problem is that I prefer to use another webmail in case of roundcube.
I want to use afterlogic webmail lite, I installed it on the iredmail server, working with mysql also, and it works great.

Now, I want to remove roundcube, because I'd like to redirect www.mydomain.com to www.mydomain.com/afterlogic-webmail.

From now, whatever I do it always redirect mydomain.com to mydomain.com/mail wich is the installed roundcube address.

So I tryied to find the package with the command dpkg --get-selections | grep -i roundcube
but it return no result, so because I'm not very familiar with linux if I can't find the package, I'm not able to remove it properly.

I know I could try to make a new install with choice to not install roundcube, but if there's another solution, I would be glad to learn it.

Please excuse my english.
Thank you in advance.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2 (edited by riverco 2014-02-08 06:34:21)

Re: How to uninstall roundcube from iredmail server please ?

*in case you are on centos or RHEL else find the respective config files for apache on your linux flavor.*

Actually easy. You just change some apache file.

go to /etc/httpd/conf.d

edit roundcubemail.conf

this is the content of the file roundcubemail.conf
#
#
# Note: Please refer to /etc/httpd/conf.d/ssl.conf for SSL/TLS setting.
Alias /mail "/var/www/roundcubemail/"
<Directory "/var/www/roundcubemail/">
    Options -Indexes
</Directory>

change this to :

Alias /mail "/var/www/roundcubemail/"
<Directory "/var/www/WHATEVERDIR/">
    Options -Indexes
</Directory>

as you see this is the file that sets mail to the roundcubedir use your new dir now . (replace whateverdir with your squirrymail) as for roundcube you can just delete the entire roundcubeemail dir in /var/www/ but you don't have to.

as for redirecting www.whatever.com to www.whatever.com/mail it wil now work as you just corrected where /mail goes to.

reboot server just to be sure all changes worked.

regards,

3

Re: How to uninstall roundcube from iredmail server please ?

hello riverco,
thank you so much for your simple understanding answer.

I will do that now and let you know the result.

4

Re: How to uninstall roundcube from iredmail server please ?

OK so ... I think this is the right place to go, but for now it is not working.

In fact I don't have /etc/httpd/conf.d/roundcubemail.conf
but I found the right file in /etc/apache2/conf.d/roundcubemail.conf

this is the file:
#
# File generated by iRedMail (2014.02.06.01.48.45):
#
# Version:  0.8.6
# Project:  http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#

# Note: Please refer to /etc/apache2/sites-available/default-ssl for SSL/TLS setting.
Alias /mail "/usr/share/apache2/roundcubemail/"
<Directory "/usr/share/apache2/roundcubemail/">
    Options -Indexes
</Directory>


So I edited

#
# File generated by iRedMail (2014.02.06.01.48.45):
#
# Version:  0.8.6
# Project:  http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#

# Note: Please refer to /etc/apache2/sites-available/default-ssl for SSL/TLS setting.
Alias /mail "/usr/share/apache2/roundcubemail/"
<Directory "/var/www/afterlogic-webmail/">
    Options -Indexes
</Directory>

with afterlogic-webmail directory (/var/www is the right directory).

I rebooted the server, but it doesn't work, roundcube is not loading now but I have a "white page' connexion stopped.
Of course I tryied with another opera instance, but this is the same.

So I can acces to the webmail with this address:
http://mydomain/afterlogic-webmail/#

I will take a look tomorow, because now it's until 04AM, I need sleeping.

If you have an idea that could help more ...
Thanks.

5

Re: How to uninstall roundcube from iredmail server please ?

Check file /var/www/index.html on Debian/Ubuntu, it will redirect http://server/ to http://server/mail/

6

Re: How to uninstall roundcube from iredmail server please ?

ZhangHuangbin wrote:

Check file /var/www/index.html on Debian/Ubuntu, it will redirect http://server/ to http://server/mail/

it woks !

the file was
<html>
    <head>
        <meta HTTP-EQUIV="REFRESH" content="0; url=/mail/">
    </head>
</html>


I replaced with:

<html>
    <head>
        <meta HTTP-EQUIV="REFRESH" content="0; url=/afterlogic-webmail/#">
    </head>
</html>


- so now my defaut domain page is http://mydomain.com/afterlogic-webmail/#

I need to find a solution to makes it looks like
-> http://mydomain.com ... may be in using a redirection with my registrar
or
-> http://mydomain.com/webmail or http://webmail.mydomain.com

what would be the better thing to do without occur problems with iredmail server ?

thanks a lot anyway.

7

Re: How to uninstall roundcube from iredmail server please ?

cynos.fr wrote:

I need to find a solution to makes it looks like
-> http://mydomain.com

Maybe you want to adjust DocumentRoot parameter in Apache config file.