1

Topic: Sogo on Centos 8 - installer doesn't ask to install it

Hi,

I made a fresh install on CentOS 8 which should support SOGo according to the table https://www.iredmail.org/download.html but the installer doesn't ask if you want to install it.
After digging I have found in dialog / web_applications.sh that has been disabled because the packages are not supposed to be available.

# SOGo team doesn't offer binary packages for CentOS 8 (yet).
    [X "$ {DISTRO}" == X'RHEL '-a X "$ {DISTRO_VERSION}" == X'8'] && export DIALOG_SELECTABLE_SOGO = 'NO'

The packages now seems to be available for CentOS 8, could you please update the installer to gets SOGo available in the installer dialog?
In my installation I have added inside the config file export

USE_SOGO='YES'

in order to have SOGo installed.

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.2.1
- Deployed with iRedMail Easy or the downloadable installer? Downloadable installer
- Linux/BSD distribution name and version: Centos 8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL/MariaDB
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

----

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

2

Re: Sogo on Centos 8 - installer doesn't ask to install it

SOGo team didn't have binary packages for CentOS 8 (and Ubuntu 20.04) while iRedMail-1.2.1 was released, that's why it's disabled.
Since it requires some more changes in iRedMail installer to enable and configure SOGo correctly, i will not repack iRedMail-1.2.1 to enable it. Please wait for upcoming iRedMail release. Sorry about this.

3

Re: Sogo on Centos 8 - installer doesn't ask to install it

Hi Zhang, thanks for your reply! I was imagine that this was the reason, so no worries, give me a shout if you want to me to test something, this is a test system where I was testing the migration to a new server.

4

Re: Sogo on Centos 8 - installer doesn't ask to install it

Could you help test the latest iRedMail developments edition? You can get it from GitHub:
https://github.com/iredmail/iRedMail

Both iRedAPD and mlmmjadmin have been migrated to Python-3, but iRedAdmin(-Pro) is still py2.

5

Re: Sogo on Centos 8 - installer doesn't ask to install it

Sure, for now I had time to just upgrade iRedAPD and seems it went fine, when I have time I need to check that effectively is working below the output after the upgrade:

[root@mail2 ~]# git clone [url]https://github.com/iredmail/iRedAPD.git[/url]
Cloning into 'iRedAPD'...
remote: Enumerating objects: 148, done.
remote: Counting objects: 100% (148/148), done.
remote: Compressing objects: 100% (108/108), done.
remote: Total 5467 (delta 69), reused 82 (delta 39), pack-reused 5319
Receiving objects: 100% (5467/5467), 868.35 KiB | 2.52 MiB/s, done.
Resolving deltas: 100% (3998/3998), done.
[root@mail2 ~]# cd iRedAPD/tools/
[root@mail2 tools]# bash upgrade_iredapd.sh
* Detected Linux/BSD distribution: RHEL
* Found iRedAPD directory: /opt/iredapd, symbol link of /opt/iRedAPD-3.6
* Found iRedAPD config file: /opt/iredapd/settings.py
* Add new SQL tables - if there's any
* Checking dependent Python modules:
  + [required] python-sqlalchemy
  + [required] dnspython
  + [required] requests
Install package: python3-sqlalchemy python3-dns
CentOS-8 - AppStream                                                                                            21 kB/s | 4.3 kB     00:00
CentOS-8 - Base                                                                                                 25 kB/s | 3.9 kB     00:00
CentOS-8 - Extras                                                                                               10 kB/s | 1.5 kB     00:00
CentOS-8 - PowerTools                                                                                           27 kB/s | 4.3 kB     00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64                                                          72 kB/s |  34 kB     00:00
Extra Packages for Enterprise Linux 8 - x86_64                                                                  55 kB/s |  24 kB     00:00
iRedMail                                                                                                        24 kB/s | 2.9 kB     00:00
Inverse SOGo Repository                                                                                        5.2 kB/s | 2.9 kB     00:00
Dependencies resolved.
===============================================================================================================================================
 Package                            Architecture           Version                                             Repository                 Size
===============================================================================================================================================
Installing:
 python3-sqlalchemy                 x86_64                 1.3.2-1.module_el8.1.0+245+c39af44f                 AppStream                 1.9 M
 python3-dns                        noarch                 1.15.0-8.el8                                        BaseOS                    253 k

Transaction Summary
===============================================================================================================================================
Install  2 Packages

Total download size: 2.2 M
Installed size: 11 M
Downloading Packages:
(1/2): python3-dns-1.15.0-8.el8.noarch.rpm                                                                     1.9 MB/s | 253 kB     00:00
(2/2): python3-sqlalchemy-1.3.2-1.module_el8.1.0+245+c39af44f.x86_64.rpm                                       5.2 MB/s | 1.9 MB     00:00
-----------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                          3.9 MB/s | 2.2 MB     00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                       1/1
  Installing       : python3-dns-1.15.0-8.el8.noarch                                                                                       1/2
  Installing       : python3-sqlalchemy-1.3.2-1.module_el8.1.0+245+c39af44f.x86_64                                                         2/2
  Running scriptlet: python3-sqlalchemy-1.3.2-1.module_el8.1.0+245+c39af44f.x86_64                                                         2/2
  Verifying        : python3-sqlalchemy-1.3.2-1.module_el8.1.0+245+c39af44f.x86_64                                                         1/2
  Verifying        : python3-dns-1.15.0-8.el8.noarch                                                                                       2/2

Installed:
  python3-sqlalchemy-1.3.2-1.module_el8.1.0+245+c39af44f.x86_64                         python3-dns-1.15.0-8.el8.noarch

Complete!
* Create directory /opt/iRedAPD.
* Copying new version to /opt/iRedAPD
* Copy old config file: settings.py (/opt/iredapd/settings.py -> /opt/iRedAPD/settings.py)
* Copy custom plugins: /opt/iRedAPD-3.6/plugins/custom_*.py.
* Set correct owner and permission for /opt/iRedAPD: root:root, 0500.
* Set permission for iRedAPD config file: /opt/iRedAPD/settings.py -> 0400.
* Re-create symbol link: /opt/iredapd -> /opt/iRedAPD
* Remove existing systemd service files.
* Copy systemd service file: /opt/iredapd/rc_scripts/iredapd.service -> /lib/systemd/system/iredapd.service.
Created symlink /etc/systemd/system/multi-user.target.wants/iredapd.service → /usr/lib/systemd/system/iredapd.service.
Redirecting to /bin/systemctl restart rsyslog.service
* Replace py2 by py3 in cron jobs.
* Restarting iRedAPD service.
* Upgrade completed.
< NOTE > If iRedAPD doesn't work as expected, please post your issue in our
< NOTE > online support forum: [url]http://www.iredmail.org/forum/[/url]
< NOTE >
< NOTE > * Turn on debug mode: [url]http://www.iredmail.org/docs/debug.iredapd.html[/url]
< NOTE > * iRedAPD log file is /var/log/iredapd/iredapd.log.

iRedAPD log

[root@mail2 tools]# cat /var/log/iredapd/iredapd.log
Jun  1 18:51:54 mail2 journal[928]: iredapd Starting iRedAPD (version: 3.6, backend: mysql), listening on 127.0.0.1:7777.
Jun  1 18:51:54 mail2 journal[928]: iredapd Loading plugin (priority: 100): reject_null_sender
Jun  1 18:51:54 mail2 journal[928]: iredapd Loading plugin (priority: 99): wblist_rdns
Jun  1 18:51:54 mail2 journal[928]: iredapd Loading plugin (priority: 90): reject_sender_login_mismatch
Jun  1 18:51:54 mail2 journal[928]: iredapd Loading plugin (priority: 80): greylisting
Jun  1 18:51:54 mail2 journal[928]: iredapd Loading plugin (priority: 60): throttle
Jun  1 18:51:54 mail2 journal[928]: iredapd Loading plugin (priority: 50): sql_alias_access_policy
Jun  1 18:51:54 mail2 journal[928]: iredapd Loading plugin (priority: 40): amavisd_wblist
Jun  1 18:51:54 mail2 journal[928]: iredapd No SRS domain and/or secret strings in settings.py, not loaded.
Jun  4 16:29:59 mail2 journal[915]: iredapd Starting iRedAPD (version: 3.6, backend: mysql), listening on 127.0.0.1:7777.
Jun  4 16:29:59 mail2 journal[915]: iredapd Loading plugin (priority: 100): reject_null_sender
Jun  4 16:29:59 mail2 journal[915]: iredapd Loading plugin (priority: 99): wblist_rdns
Jun  4 16:30:00 mail2 journal[915]: iredapd Loading plugin (priority: 90): reject_sender_login_mismatch
Jun  4 16:30:00 mail2 journal[915]: iredapd Loading plugin (priority: 80): greylisting
Jun  4 16:30:00 mail2 journal[915]: iredapd Loading plugin (priority: 60): throttle
Jun  4 16:30:00 mail2 journal[915]: iredapd Loading plugin (priority: 50): sql_alias_access_policy
Jun  4 16:30:00 mail2 journal[915]: iredapd Loading plugin (priority: 40): amavisd_wblist
Jun  4 16:30:00 mail2 journal[915]: iredapd No SRS domain and/or secret strings in settings.py, not loaded.

6

Re: Sogo on Centos 8 - installer doesn't ask to install it

dark-vex wrote:

Jun  4 16:29:59 mail2 journal[915]: iredapd Starting iRedAPD (version: 3.6, backend: mysql), listening on 127.0.0.1:7777.

I expect it to log version number '4.0', not '3.6'.
Please try to restart "iredapd" service and check /var/log/messages immediately, i guess it's not running.

7

Re: Sogo on Centos 8 - installer doesn't ask to install it

ZhangHuangbin wrote:
dark-vex wrote:

Jun  4 16:29:59 mail2 journal[915]: iredapd Starting iRedAPD (version: 3.6, backend: mysql), listening on 127.0.0.1:7777.

I expect it to log version number '4.0', not '3.6'.
Please try to restart "iredapd" service and check /var/log/messages immediately, i guess it's not running.

You're right! There is missing web.py module

Jun  6 21:03:34 mail2 python3[1029]: Traceback (most recent call last):
Jun  6 21:03:34 mail2 python3[1029]:  File "/opt/iredapd/iredapd.py", line 20, in <module>
Jun  6 21:03:34 mail2 python3[1029]:    from libs import __version__, daemon, utils
Jun  6 21:03:34 mail2 python3[1029]:  File "/opt/iRedAPD/libs/utils.py", line 18, in <module>
Jun  6 21:03:34 mail2 python3[1029]:    from web import sqlquote
Jun  6 21:03:34 mail2 python3[1029]: ModuleNotFoundError: No module named 'web'

Do you want me to install it through pip "pip3 install web.py"? Let me know if there is any specific version to specify, thanks!

8

Re: Sogo on Centos 8 - installer doesn't ask to install it

Yes please install it with pip3:

pip3 install web.py>=0.51

9

Re: Sogo on Centos 8 - installer doesn't ask to install it

Done, iRedAPD now starts but seems there is missing also 'pymysql'

Jun  8 16:37:58 mail2 journal[2037]: iredapd Error while creating SQL connection: ModuleNotFoundError("No module named 'pymysql'",)
Jun  8 16:37:58 mail2 journal[2037]: iredapd Error while creating SQL connection: ModuleNotFoundError("No module named 'pymysql'",)
Jun  8 16:37:58 mail2 journal[2037]: iredapd Error while creating SQL connection: ModuleNotFoundError("No module named 'pymysql'",)
Jun  8 16:37:58 mail2 journal[2037]: iredapd Starting iRedAPD (version: 4.0, backend: mysql), listening on 127.0.0.1:7777.
Jun  8 16:37:58 mail2 journal[2037]: iredapd Loading plugin (priority: 100): reject_null_sender
Jun  8 16:37:58 mail2 journal[2037]: iredapd Loading plugin (priority: 99): wblist_rdns
Jun  8 16:37:58 mail2 journal[2037]: iredapd Loading plugin (priority: 90): reject_sender_login_mismatch
Jun  8 16:37:58 mail2 journal[2037]: iredapd Loading plugin (priority: 80): greylisting
Jun  8 16:37:58 mail2 journal[2037]: iredapd Loading plugin (priority: 60): throttle
Jun  8 16:37:58 mail2 journal[2037]: iredapd Loading plugin (priority: 50): sql_alias_access_policy
Jun  8 16:37:58 mail2 journal[2037]: iredapd Loading plugin (priority: 40): amavisd_wblist
Jun  8 16:37:58 mail2 journal[2037]: iredapd No SRS domain and/or secret strings in settings.py, not loaded.

I have installed it via yum but it's at version 0.8.0, it seems fine at iRedAPD startup but it's ok the one shipped through yum or should I pickup the latest (0.9.3) via pip3?

Jun  8 16:40:38 mail2 journal[2182]: iredapd Starting iRedAPD (version: 4.0, backend: mysql), listening on 127.0.0.1:7777.
Jun  8 16:40:38 mail2 journal[2182]: iredapd Loading plugin (priority: 100): reject_null_sender
Jun  8 16:40:38 mail2 journal[2182]: iredapd Loading plugin (priority: 99): wblist_rdns
Jun  8 16:40:38 mail2 journal[2182]: iredapd Loading plugin (priority: 90): reject_sender_login_mismatch
Jun  8 16:40:38 mail2 journal[2182]: iredapd Loading plugin (priority: 80): greylisting
Jun  8 16:40:38 mail2 journal[2182]: iredapd Loading plugin (priority: 60): throttle
Jun  8 16:40:38 mail2 journal[2182]: iredapd Loading plugin (priority: 50): sql_alias_access_policy
Jun  8 16:40:38 mail2 journal[2182]: iredapd Loading plugin (priority: 40): amavisd_wblist
Jun  8 16:40:38 mail2 journal[2182]: iredapd No SRS domain and/or secret strings in settings.py, not loaded.

10

Re: Sogo on Centos 8 - installer doesn't ask to install it

dark-vex wrote:

it's ok the one shipped through yum or should I pickup the latest (0.9.3) via pip3?

the one in yum repo is ok. smile