Hello good people,


Something has crossed my mind - is there a way to daisy-chain domains in
sogo.conf?

1. If I have 3 domains sharing the same server and same authentication
source, instead of creating different blocks for the domains, is there a
way to daisy-chain them in the same block?

Instead of:

domains = {
        domain1 = {
            SOGoMailDomain = domain1;
            SOGoUserSources = (
                {
               ................
                }
            );
        };

        domain2 = {
            SOGoMailDomain = domain2;
            SOGoUserSources = (
                {
               ................
                }
            );
        };

};

Maybe it's possible to do it differently, like:

domains = {
               domain1, domain2, domainN = {
               SOGoMailDomains = domain1, domain2, domainN;
              SOGoUserSources = (
                                   ................
                }
             );
        };
};


2. If I have 3 domains sharing same authentication source, can I just
create a single SOGoUserSources block, without the need to specify the
domains?
    Let's say I have several domains using same MySQL user source and other
several domains using LDAP user source, so I create a single MSQL user
source and
    a single LDAP user source, like:

/* MySQL */
SOGoUserSources =
    (
     {
       type = sql;
      id = directory;
      viewURL = "postgresql://sogo:[email protected]:5432/sogo/sogo_view";
      canAuthenticate = YES;
       isAddressBook = YES;
       userPasswordAlgorithm = md5;
    }
    );


 /* LDAP AD/Samba4 */
  SOGoUserSources = (
  {
   type = ldap;
   CNFieldName = cn;
   UIDFieldName = sAMAccountName;
   baseDN = "CN=users,dc=domain,dc=tld";
   bindDN = "CN=sogo,CN=users,DC=domain,DC=tld";
   bindFields = (sAMAccountName, mail);
   bindPassword = password;
   canAuthenticate = YES;
   displayName = "Public";
    hostname = "ldap://127.0.0.1:389";;
    filter = "mail = '*'";
    id = directory;
   isAddressBook = YES;
 }
);

And SOGo would try to authenticate against the 1st source, fail and try the
next source??


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)
-- 
[email protected]
https://inverse.ca/sogo/lists

Reply via email to