SOGo login only email address

just an example, you move only the file that you need to modify

do rm -rf /etc/e-smith/templates-custom/etc/sogo/sogo.conf

then follow up

wait the example is not good. Let me some time to test it in real condition, except if someone beat me first

Of course. I think the problem is caused by the SOGo version, at least I think so

Thank you very much for your help.

You should read about Templates — NethServer 7 documentation

the issue is not relevant from the SOGo version

@stephdl
Thanks for your advice, I will look into it, but unfortunately I have a more serious problem right now.

Wish you best luck.

Thank you for the well wish, it arrived. I was lucky


Solution:
mkdir -p /etc/e-smith/templates-custom//etc/sogo/sogo.conf/
cp /etc/e-smith/templates/etc/sogo/sogo.conf/* /etc/e-smith/templates-custom/etc/sogo/sogo.conf/

vi /etc/e-smith/templates-custom/etc/sogo/sogo.conf/45user_source


} elsif($sssd->isAD){
# user source: AD
$bindPassword =~ s/"/"/;

   $OUT .= <<EOF 

/* 45 AD authentication */
SOGoUserSources =(
{
id = AD_Users;
type = ldap;
CNFieldName = cn;
IDFieldName = $CustomEmailField;
UIDFieldName = sAMAccountName;
IMAPLoginFieldName = $CustomEmailField;
canAuthenticate = YES;
bindDN = “$bindDN”;
bindPassword = “$bindPassword”;
baseDN = “$userDN”;
bindFields = $CustomEmailField;
hostname = $ldapURI;
filter = “(objectClass=‘user’) AND (sAMAccountType=805306368)”;
MailFieldNames = ("$CustomEmailField");
scope = SUB;
displayName = “$DomainName users”;
isAddressBook = YES;
},



vi /etc/e-smith/templates-custom/etc/sogo/sogo.conf/50webinterface
/* 50 Web Interface */
SOGoVacationEnabled = YES;
SOGoForwardEnabled = YES;
SOGoSieveScriptsEnabled = YES;
SOGoMailAuxiliaryUserAccountsEnabled = {$sogod{‘MailAuxiliaryUserAccountsEnabled’} || “YES”};
SOGoMailCustomFromEnabled = YES;
SOGoForceIMAPLoginWithEmail = YES;
//SOGoFirstDayOfWeek = 1;
//SOGoMailReplyPlacement = “above”;
//SOGoMailSignaturePlacement = “above”;

signal-event nethserver-sogo-update

Important!
After elsif, you need to change id = AD_Users according to the highlighted lines.
Do not use the SOGoForceIExternalLoginWithEmail option, instead add the SOGoForceIMAPLoginWithEmail option in the 50webinterface file according to the highlighted line.

Can someone confirm that he also manages to set it up?

2 Likes

waves
we could imagine to make it up inside the module. Sorry but for now I am busy on NS8

No worries. I was able to solve my current problem. The rest will happen


1 Like