1

Topic: Unable to save user preferences in SOGo

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.1
- Deployed with iRedMail Easy or the downloadable installer? Downloadable installer
- Linux/BSD distribution name and version: Ubuntu 20.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- 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.
====

This is just information for anyone experiencing this issue.

Using SOGo v5 when trying to update a user's preferences, the message "service temporarily unavailable" appears.

The SOGo log contains the message "[ERROR] <0x0x561ec0bdeb00[SOGoSieveManager]> Sieve connection failed on sieve://127.0.0.1:4190/?tls=YES"

According to the SOGo documentation, you can use TLS providing a fully qualified domain is used or if using  127.0.0.1 you need to append '&tlsVerifyMode=allowInsecureLocalhost'.

So after changing:

SOGoSieveServer = "sieve://127.0.0.1:4190/?tls=YES";

in /etc/sogo/sogo.conf to:

SOGoSieveServer = "sieve://127.0.0.1:4190/?tls=YES&tlsVerifyMode=allowInsecureLocalhost";

and restarting SOGo, I'm able to save user preferences and no more "Sieve connection failed" messages.

----

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

2

Re: Unable to save user preferences in SOGo

I confirm it on V5 ! (thanks)

3

Re: Unable to save user preferences in SOGo

Thanks for the feedback. Better update few other parameters too:

    SOGoSMTPServer = "smtp://127.0.0.1:587/?tls=YES&tlsVerifyMode=allowInsecureLocalhost";
    SOGoMailingMechanism = smtp;
    SOGoSMTPAuthenticationType = PLAIN;

    SOGoIMAPServer = "imap://127.0.0.1:143/?tls=YES&tlsVerifyMode=allowInsecureLocalhost";

    SOGoSieveServer = "sieve://127.0.0.1:4190/?tls=YES&tlsVerifyMode=allowInsecureLocalhost";

4

Re: Unable to save user preferences in SOGo

Update: i added upgrade tutorial for SOGo v4 -> v5 here:
https://docs.iredmail.org/upgrade.sogo.4.to.5.html

5

Re: Unable to save user preferences in SOGo

The problem occur when use script to create LDAP account (create_mail_user_OpenLDAP.py or create_mail_user_OpenLDAP.sh).

Both scripts do not add following attributes to LDAP (the attributes are added when create user from iRedAdmin)

enabledService: managesievetls
enabledService: sievetls

To add both attribute to a user, create following file (addsieve.ldif) Change email and domain to yours.

dn: mail=test@example.com,ou=Users,domainName=example.com,o=domains,dc=example,dc=com
changetype: modify
add: enabledService
enabledService: managesievetls

dn: mail=test@example.com,ou=Users,domainName=example.com,o=domains,dc=example,dc=com
changetype: modify
add: enabledService
enabledService: sievetls

Then, call it use following command:

ldapmodify -x -D "cn=Manager,dc=example,dc=com" -w "LDAP_PASSWORD" -f addsieve.ldif

After add both attributes to user, the preference can be saved.

6

Re: Unable to save user preferences in SOGo

joke wrote:

The problem occur when use script to create LDAP account (create_mail_user_OpenLDAP.py or create_mail_user_OpenLDAP.sh).

Fixed. Thanks for the feedback.
https://github.com/iredmail/iRedMail/co … db2a3d556b