1

Topic: How do I run roundcubemail instead of Sogo?

The roundcubemail interface does not work
mail.server.com/mail Error
"/opt/www/roundcubemail/index.php " is not found (2: No such file or directory),

mail.server.com  Sogo opens

How to launch roundcubemail?
-------------------------------------------------
File /etc/nginx/nginx.conf
user www-data;
worker_processes 1;
pid /var/run/nginx.pid;

events {
worker_connections 1024;
}

http {
include /etc/nginx/conf-enabled/*.conf;
include /etc/nginx/sites-enabled/*.conf;
}
----------------------------------------------------
1.6.2 PGSQL edition.
Debian 10.2.1-6
Nginx

----

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

2

Re: How do I run roundcubemail instead of Sogo?

/opt/www/roundcubemail/index.php is not found (2: No such file or directory)

repair the softlinks, then it should work

3

Re: How do I run roundcubemail instead of Sogo?

Did you choose to install Roundcube during iRedMail installation?
Do you have /opt/www/roundcubemail-x.y.z/ directory?

4

Re: How do I run roundcubemail instead of Sogo?

No /opt/www/roundcubemail-x.y.z/

5

Re: How do I run roundcubemail instead of Sogo?

How do I install Roundcube after installing iRedMail?

6

Re: How do I run roundcubemail instead of Sogo?

If you still keep your iRedMail installer directory, e.g. /root/iRedMail-1.6.2/, then you can install it with steps below:

- Inside /root/iRedMail-1.6.2/, append this line in file `config`:

export USE_ROUNDCUBE=YES

- Re-run iRedMail installer:

bash iRedMail.sh

When it asks your confirm to use existing config file, answer yes.

7

Re: How do I run roundcubemail instead of Sogo?

1. Inside /root/iRedMail-1.6.2/, append this line in file `config`:
export USE_ROUNDCUBE=YES

2. bash iRedMail.sh

3. A line has been added. - [ INFO ] Configure Roundcube webmail.

4. mail.server.com  Sogo opens

5. mail.server.com/mail
DATABASE ERROR!
Unable to connect to the database.
Contact the server administrator.

6. There is a folder in the directory /opt/www/roundcubemail-1.5.3/



Tell me how to launch the roundcubemail interface?

8

Re: How do I run roundcubemail instead of Sogo?

Do you have correct SQL database, username, password in /opt/www/roundcubemail/config/config.inc.php?

9

Re: How do I run roundcubemail instead of Sogo?

I changed the password for the Postgresql user "roundcube". Registered in "/opt/www/roundcubemail/config/config.inc.php "
The error of connecting to the database remained.
The "roundcubemail" database is connected under the "roundcube" user. There are no tables in the roundcubemail database. How do I upload tables to the database?

root@mail:/var/lib/postgresql# psql -U roundcube
Password for user roundcube:
psql (13.9 (Debian 13.9-0+deb11u1))
Type "help" for help.

roundcube=>
roundcube=> \c roundcubemail
You are now connected to database "roundcubemail" as user "roundcube".
roundcubemail=> \dt
Did not find any relations.
roundcubemail=>

10

Re: How do I run roundcubemail instead of Sogo?

Log Postgresql
2023-06-01 14:25:14.256 MSK [2708] roundcube@roundcubemail ERROR:  relation "session" does not exist at character 13
2023-06-01 14:25:14.256 MSK [2708] roundcube@roundcubemail STATEMENT:  INSERT INTO "session" ("sess_id", "vars", "ip", "changed") VALUES ('1t574g42k84ds4hgjif5bm6ebu', 'dGVtcHxiOjE7bGFuZ3VhZ2V8czo1OiJydV9SVSI7dGFza3xzOjU6ImxvZ2luIjtza2l>
2023-06-01 14:26:54.648 MSK [2738] vmail@vmail LOG:  could not receive data from client: Connection reset by peer

11

Re: How do I run roundcubemail instead of Sogo?

How to create a new postgresql database and tables in the database for roundcubemail?

12

Re: How do I run roundcubemail instead of Sogo?

How to completely remove only roundcube? And restart the installation so that there is a request to create a database for roundcube?