1

Topic: Cross domain calendar Sharing in Sogo

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 2021062401 (Backend: mariadb, Date: 2021-06-25 13:59:11) iRedMail Easy: https://www.iredmail.org/easy.html
- Deployed with iRedMail Easy or the downloadable installer? Easy
- Linux/BSD distribution name and version:  Ubuntu 18.04
- 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. no logs, general question
====

Hello,
is there a way to share a calendar from user@domain1.com to user@domain2.com?

It works if I try from user1@domain.com to user2@domain.com, however, I have a scenario with a company that has multiple domains and they need to sync the calendar in between them?

Thank you

----

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

2

Re: Cross domain calendar Sharing in Sogo

Sharing across all domains hosted on same server is disabled by default, but if all domains on same server are owned by same company, then you can enable this in iRedMail Easy web portal:

- Go to mail server profile page
- Click the "Settings" tab, find section "SOGo Groupware"
- Toggle on option "Allow cross-domain global address book".
- Save your change and click the "Apply Saved Changes" button on top of page.

3

Re: Cross domain calendar Sharing in Sogo

thank you for your response.

What if only some of the domains on the server are belonging to the same company, is it possible to allow cross-domain only for specific domains? Thank you

4

Re: Cross domain calendar Sharing in Sogo

stefan.perovic wrote:

What if only some of the domains on the server are belonging to the same company, is it possible to allow cross-domain only for specific domains? Thank you

It's impossible in this case since SOGo doesn't offer a flexible way to query / filter the accounts.

5

Re: Cross domain calendar Sharing in Sogo

Is there any way to enable this feature in iRedmail standalone ?

6

Re: Cross domain calendar Sharing in Sogo

AndreyEver wrote:

Is there any way to enable this feature in iRedmail standalone ?

What does this mean?

7

Re: Cross domain calendar Sharing in Sogo

As you wrote:
"Sharing across all domains hosted on same server is disabled by default, but if all domains on same server are owned by same company, then you can enable this in iRedMail Easy web portal:"

my question is: how to set it up if I'm using iRedmail Standalone with iRedAdmin-Pro (not iRedMail Easy) ?

8

Re: Cross domain calendar Sharing in Sogo

this just edits a sogo config file

9

Re: Cross domain calendar Sharing in Sogo

AndreyEver wrote:

my question is: how to set it up if I'm using iRedmail Standalone with iRedAdmin-Pro (not iRedMail Easy) ?

As @Cthulhu mentioned, just update SOGo config file /etc/sogo/sogo.conf.
iRedMail Easy updates the same file / parameter for same feature, except it exposes options on web UI for easier management.

10 (edited by AndreyEver 2022-12-20 22:36:40)

Re: Cross domain calendar Sharing in Sogo

I tried set
SOGoDomainsVisibility = ((domain1.com, domain2.com, domain3.com));

but it does not work. If I'm not mistaken it works only when user domains defined as:

>>>      domains = {
>>>        dom1.de = {
>>>          SOGoMailDomain = dom1.de;
>>>          SOGoUserSources = (
>>>                  {
>>>                    type = sql;
>>>                    id = dom1_dir;
>>>                    DomainFieldName = "domain";
>>>                    viewURL =
>>>    [2]"postgresql://sogo:passw...@mail.lan:5432/mail/sogo_users";
>>>                    SOGoDomainsVisibility = ((dom1.de, dom2.de));
>>>                    canAuthenticate = YES;
>>>                    isAddressBook = YES;
>>>                    userPasswordAlgorithm = ssha;
>>>                  }
>>>          );
>>>        };
>>>        dom2.de = {
>>>          SOGoMailDomain = dom2.de;
>>>          SOGoUserSources = (
>>>                  {
>>>                    type = sql;
>>>                    id = dom2_dir;
>>>                    DomainFieldName = "domain";
>>>                    viewURL =
>>>    [3]"postgresql://sogo:passw...@mail.lan:5432/mail/sogo_users";
>>>                    SOGoDomainsVisibility = ((dom1.de, dom2.de));
>>>                    canAuthenticate = YES;
>>>                    isAddressBook = YES;
>>>                    userPasswordAlgorithm = ssha;
>>>                  }
>>>          );
>>>        };
>>>      };

which is not the case how it's configured on iRedmail install

11 (edited by dave.opc 2023-12-19 02:42:03)

Re: Cross domain calendar Sharing in Sogo

ZhangHuangbin wrote:

just update SOGo config file /etc/sogo/sogo.conf.
iRedMail Easy updates the same file / parameter for same feature

Sorry for digging old topic, but was searching for this feature.
Can you be more specific, what to change?

PS solution found:
comment out these 2 lines and restart sogo.service
// SOGoEnableDomainBasedUID = YES;
// DomainFieldName = "domain";