1 (edited by CrashXRU 2020-06-29 09:06:03)

Topic: Bug SOGo 4.3.2 all versions

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.2.1+
- Deployed with iRedMail offline
- Linux/BSD distribution name and version: Debian 10
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP -> Active Directory
- Web server: Nginx
- Manage mail accounts with iRedAdmin-Pro? NONE
====

options are included in the configuration

    SOGoSieveScriptsEnabled = YES;
    SOGoVacationEnabled = YES;
    SOGoForwardEnabled = YES;
    SOGoSieveFolderEncoding = UTF-8;

I want to add a mailbox to send a copy of letters, but the option is not active

in accounts created earlier there is an additional flag to enable forwarding, but in new ones it is not created

roll back to the old version of the SOGo is impossible.
on the official site there is no mention of a change in forwarding or additional parameters


base
sogo
table
sogo_user_profile
c_default

    "Forward": {
        "forwardAddress": [],
        "enabled": 0,
        "keepCopy": 1
    },
Post's attachments

29f87-clip-69kb.png
29f87-clip-69kb.png 65.75 kb, file has never been downloaded. 

Clip2net_200626155613.png
Clip2net_200626155613.png 22.34 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

2 (edited by CrashXRU 2020-06-29 14:00:11)

Re: Bug SOGo 4.3.2 all versions

fixed manual for all users

#! /bin/sh

##CLEAR
# Go to VMAIL dir
cd /data/vmail/vmail1/DOMAIN.COM/
# Create list by dir name
find . -maxdepth 1 -printf '%P\n' | sort > /data/mailbox.list
# Run on list
while read i; do
    if [ -n "$i" ]; then
        # Check exist Forward
         Forward=$(sogo-tool user-preferences get defaults $i -p /etc/sogo/sieve.cred Forward) > /dev/null 2>&1
         if [ -z "$Forward" ]; then
              echo user: $i add {"Forward": {"forwardAddress": [], "enabled": 0, "keepCopy": 1}}
              sogo-tool user-preferences set defaults $i -p /etc/sogo/sieve.cred Forward '{"Forward": {"forwardAddress": [], "enabled": 0, "keepCopy": 1}}'
         fi
    fi
done < /data/mailbox.list

3

Re: Bug SOGo 4.3.2 all versions

Thanks for sharing.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee