1

Topic: Adding Sogo on Ubuntu 22.04

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

Dear all,

I tried to add SOGO to my current Ubuntu 22.04 installation. It bases originally on iRedMail version 1.6.2 and was continuously updated to the currently most recent version 1.6.8. It is the LDAP version.

For this I read through the following two main documents:

  • forum.iredmail.org/topic10440-installation-of-sogo-after-initial-install.html and

  • docs.iredmail.org/sogo-centos-6-mysql.html

As it was not clear to me if I need to download the full installer of iRedmail 1.6.8 for adding the new feature, I decided to go with the manual one basing on CentOS6 and altering the corresponding information.

So I added the repository in a way, that overcomes the "apt-key depreciated" issue in Ubuntu 22.04. Also the repository installation on the Sogo website didn't fully support me:

sudo wget -O- "keys.openpgp.org/vks/v1/by-fingerprint/74FFC6D72B925A34B5D356BDF8A27B36A6E2EAE9" | sudo gpg --dearmor | sudo tee /usr/share/keyrings/sogo_nightly.pgp

and created a sogo.list file in /etc/apt/sources.list.d/ containing

deb [signed-by=/usr/share/keyrings/sogo_nightly.gpg] packages.sogo.nu/nightly/5/ubuntu/ jammy jammy

This links the repository to the corresponding keyfile for security reasons.

Now, things started to become tricky. For CentOS6, the following packages were supposed to be installed:

iredmail Docs wrote:

sogo sope49-gdl1-mysql sogo-activesync sogo-ealarms-notify sogo-tool

Only sogo and sogo-activesync have been found in the current Ubuntu repository. Nevertheless I continued.

Now, when creating the database, the following commands after generating the database are provided:

iredmail Docs wrote:
GRANT SELECT ON vmail.mailbox TO sogo@localhost;

CREATE VIEW sogo.users (c_uid, c_name, c_password, c_cn, mail, domain) AS SELECT username, username, password, name, username, domain FROM vmail.mailbox WHERE enablesogo=1 AND active=1;

Actually in my installation, (LDAP) there is no vmail database existing or it is at least not listed to me when showing me all databases.

So, how can / should I continue?

I hope, with all the explanation, I showed that I was digging into the topic for quite a while by myself before asking for help.

P.S.: As no urls are allowed in the forum any more, I had to remove all https in front of the internet addresses. So the code is not always complete.

----

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

2

Re: Adding Sogo on Ubuntu 22.04

mak wrote:

As it was not clear to me if I need to download the full installer of iRedmail 1.6.8 for adding the new feature, I decided to go with the manual one basing on CentOS6 and altering the corresponding information.

You should use the 1.6.2 installer you downloaded for initial iRedMail installation.

Another solution is: setup a new VM, install latest iRedMail-1.6.8, then you get a working SOGo installation you can refer to.

- Refer to iRedMail source code to setup apt repository, get package names you need to install:
https://github.com/iredmail/iRedMail/bl … #L399-L420
- Refer to iRedMail source code to setup required SQL database:
https://github.com/iredmail/iRedMail/bl … ns/sogo.sh
- Copy SOGo config files (/etc/sogo/) from VM, and update SQL/LDAP credentials in /etc/sogo/sogo.conf.

By the way, installing (new, available) component is as easy as few clicks on web UI with iRedMail Easy platform[1] and upcoming iRedMail Enterprise[2] (consider it as a on-premises iRedMail Easy platform).

[1] https://www.iredmail.org/easy.html
[2] https://docs.iredmail.org/pro.html