1

Topic: Switch from RoundCube to SOGo

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version 0.9.8 MYSQL edition.
- Linux/BSD distribution name and version: Ubuntu 18.4 Server (no gui)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello, I need help with migrating from RoundCube to Sogo. To do this I edited conf file in instalation folder to SOGO=Yes and restarted reinstalation and now both work, example.com/mail goes to roundcube and example/SOGo to sogo.

I want to know how to make it defoult now? I tried to rerun instalation again checking only sogo and deselecting Roundcube they are both stll here. I just want for example.com to redirect to SOGo directly. thank you

----

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

2

Re: Switch from RoundCube to SOGo

I have tried to edit /var/www/html/index.html to:


<html>
        <head>
                <meta HTTP-EQUIV="REFRESH" content="0; url=/SOGo/">
        </head>
        <body>
                <p><a href="https://example.com/SOGo">Redirect</a></p>
        </body>

</html>


No results. Can anyone help please?

3

Re: Switch from RoundCube to SOGo

I also tried to edit /etc/nginx/sites-available/00-defoult-ssl.conf ,
and coment the line with roundcube:
#include /etc/nginx/templates/Roundcube.tmpl;
but only thing that happens is that it still redirects to /mail, it just does it on 404 instead of roundcube.
Help anyone?

4

Re: Switch from RoundCube to SOGo

stefan.perovic wrote:

I just want for example.com to redirect to SOGo directly.

Check file /var/www/html/index.html, it's generated by iRedMail, update it to the redirect example.com to example.com/SOGo.

5

Re: Switch from RoundCube to SOGo

ZhangHuangbin wrote:
stefan.perovic wrote:

I just want for example.com to redirect to SOGo directly.

Check file /var/www/html/index.html, it's generated by iRedMail, update it to the redirect example.com to example.com/SOGo.

I did that here:

stefan.perovic wrote:

I have tried to edit /var/www/html/index.html to:


<html>
        <head>
                <meta HTTP-EQUIV="REFRESH" content="0; url=/SOGo/">
        </head>
        <body>
                <p><a href="https://example.com/SOGo">Redirect</a></p>
        </body>

</html>


No results. Can anyone help please?

But I cannot get that to work. Is there another option? Or way to remove Roundcube without effecting emails?

6

Re: Switch from RoundCube to SOGo

ZhangHuangbin wrote:
stefan.perovic wrote:

I just want for example.com to redirect to SOGo directly.

Check file /var/www/html/index.html, it's generated by iRedMail, update it to the redirect example.com to example.com/SOGo.

Also have I tried o edit nginx/templates/sogo.tmpl and ucoment this:
# Redirect /mail to /SOGo
location ~ example.com { rewrite ^ https://example.com/SOGo; }

7

Re: Switch from RoundCube to SOGo

So in the end it works on IE and mozzila, not chrome,

so I found a non-elegant solution.

1. Manualy removed all roundcube files
2. went into the var/www/html
3. made new folde "mail (mkdr mail)
4.cp index.html mail/index.html

even if browser redirects to /mail it will find index.html in there that is redirecting it back to sogo so it has nowhere to go.