trying to implement this stuck in some culprits i’am not able to figure out how to solve them.
This is the test case,
2 mail domains aamail.lan and bbmail.lan
4 users : john, marie, clair and peter
(The ultimate goal would be to assigning John and Marie to aamail.lan and Clair and Peter to bbmail.lan)
Even if we take the impossibility to have one identical username for two mail domains (ie foo@aamail.lan and foo@bbmail.lan) for granted, it just does not seem to add up.
After enforcing login with full e-mailaddress as described here, clair is able to login in as clair@aamail.lan and clair@bbmail.lan.
Even if clair logs in as clair@bbmail.lan the alphabetically first mail domain, @aamail.lan, is used by sogo. The latter could be caused by missing configuration of multi domain support sogo.
And this quasi multi domain setup does not work properly;
domains = {
aamail.lan = {
SOGoMailDomain = "aamail.lan";
SOGoUserSources =(
{
id = groupsaa;
type = ldap;
CNFieldName = cn;
UIDFieldName = cn;
IDFieldName = cn;
baseDN = "ou=Groups,dc=directory,dc=nh";
bindDN = "cn=sogo,dc=directory,dc=nh";
bindPassword = XXXX;
scope = ONE;
canAuthenticate = YES;
displayName = "{mail} groups";
hostname = "ldapi://";
isAddressBook = NO;
},
{
id = usersaa;
type = ldap;
CNFieldName = cn;
UIDFieldName = uid;
IDFieldName = mail;
bindFields = (mail);
baseDN = "ou=People,dc=directory,dc=nh";
bindDN = "cn=sogo,dc=directory,dc=nh";
bindPassword = XXXX;
scope = ONE;
filter = "accountStatus=active";
canAuthenticate = YES;
displayName = "{mail} users";
hostname = "ldapi://";
isAddressBook = YES;
}
);
};
bbmail.lan = {
SOGoMailDomain = "bbmail.lan";
SOGoUserSources =(
{
id = groupsbb;
.... / same credentials as aamail.lan
},
{
id = usersbb;
.... / same credentials as aamail.lan.
}
);
};
};
Login is oke, redirect to web page does not work
(addressbar browser after login: https://mail.sogo.lan/SOGo/so/SOGo/clair%40aamail.lan)
please share your thoughts