1

Topic: Clean install ubuntu 18.04 --> SOGo missing

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8 MARIADB edition.
- Linux/BSD distribution name and version: Ubuntu 18.04.1 LTS
- 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.
====
i performed a clean install on new server.
Got "502 bad gateway" from Nginx

Checked /var/log/nginx/error.log

2018/08/01 20:37:08 [error] 1165#1165: *1900 connect() failed (111: Connection refused) while connecting to upstream, client: xxx.xxx.xxx.xxx, server: _, request: "GET /SOGo HTTP/1.1", upstream: "http://127.0.0.1:20000/SOGo", host: "yyy.yyy.yyy.yyy"

Checked SOGo running --> was not intalled

apt install sogo

/etc/sogo/sogo.conf
{
  SOGoProfileURL = "postgresql://sogo:password@127.0.0.1:5432/sogo/sogo_user_profile";
  OCSFolderInfoURL = "postgresql://sogo:password@127.0.0.1:5432/sogo/sogo_folder_info";
  OCSSessionsFolderURL = "postgresql://sogo:password@127.0.0.1:5432/sogo/sogo_sessions_folder";
  OCSEMailAlarmsFolderURL = "postgresql://sogo:password@127.0.0.1:5432/sogo/sogo_alarms_folder";
  SOGoLanguage = English;
  SOGoAppointmentSendEMailNotifications = YES;
  SOGoMailingMechanism = smtp;
  SOGoSMTPServer = 127.0.0.1;
  SOGoTimeZone = UTC;
  SOGoSentFolderName = Sent;
  SOGoTrashFolderName = Trash;
  SOGoDraftsFolderName = Drafts;
  SOGoIMAPServer = "imaps://localhost:143/?tls=YES";
  SOGoSieveServer = "sieve://localhost:4190/?tls=YES";
  SOGoIMAPAclConformsToIMAPExt = YES;
  SOGoVacationEnabled = NO;
  SOGoForwardEnabled = NO;
  SOGoSieveScriptsEnabled = NO;
  SOGoFirstDayOfWeek = 0;
  SOGoMailMessageCheck = manually;
  SOGoMailAuxiliaryUserAccountsEnabled = NO;
  SOGoMemcachedHost = 127.0.0.1;
}

But this is postgresql? Which is not installed either?

I presumed SOGo was automatically installed with the correctly configured backend DB?

I dare not install postgresql, I do not want to overwrite any configurations...

Any help greatly appreciated.

TIA,
Jord

----

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

2

Re: Clean install ubuntu 18.04 --> SOGo missing

Did you choose SOGo during iRedMail installation wizard?

3 (edited by jwegge 2018-08-02 23:28:05)

Re: Clean install ubuntu 18.04 --> SOGo missing

I think I did.

ZhangHuangbin wrote:

Did you choose SOGo during iRedMail installation wizard?

Is it possible to run the wizard a second time?

4

Re: Clean install ubuntu 18.04 --> SOGo missing

jwegge wrote:

Checked SOGo running --> was not intalled
apt install sogo

If you chose to install SOGo during iRedMail installation, iRedMail will install the package and config it (/etc/sogo/sogo.conf) for you. So seems you didn't choose SOGo during installation.

Check file "iRedMail-0.9.8/config", does it contain one line like below?

export USE_SOGO='YES'
jwegge wrote:

Is it possible to run the wizard a second time?

It's not recommended. I suggest reinstalling Ubuntu server, then install iRedMail.

5

Re: Clean install ubuntu 18.04 --> SOGo missing

No, I do have SOGO_DB_PASSWD & SOGO_SIEVE_MASTER_PASSWD

Will re-install

6

Re: Clean install ubuntu 18.04 --> SOGo missing

If no 'export USE_SOGO='YES'', then you did not choose SOGo during iRedMail installation.