SOGo groups and users mail address

Hi,
I have the NethServer join with AC, in SOGo creating a new email I can see the users of the global address book by typing the first letters, but the groups do not appear even if they have an email address in the global address book;
in the global address book group I can see the email addresses;
SOGo version 4.0.7, can I upgrade to 4.1.0? how do i update it?
Thanks

HI

For now you need to upgrade to 7.7 before to update SOGo, but do not hurry it is not a major version change

Hi, my version is NethServer 7.7.1908, is there a solution to the problem?

each problem gets a solution, if you cannot find a solution, it is because you have no problem

yum update sogo\* sope\* --enablerepo=nethforge-testing

as you can see it is testing

the LDAP addressbooks is set to email address of users, I am not sure that group gets an email address in LDAP, it is a trick we did to send email to a group

in the global address book group I can see the email addresses of the group, but if I create a new message I only see users email addresses


sure, but check it out

dn: uid=admin,ou=People,dc=directory,dc=nh
uidNumber: 1000
gidNumber: 1000
uid: admin
shadowMax: 99999
shadowWarning: 7
shadowMin: 0
loginShell: /usr/libexec/openssh/sftp-server
homeDirectory: /var/lib/nethserver/home/admin
shadowInactive: -1
shadowExpire: -1
gecos: admin
shadowLastChange: 18198
shadowFlag: -1
cn: admin
sn: admin
objectClass: posixAccount
objectClass: shadowAccount
objectClass: inetOrgPerson
structuralObjectClass: inetOrgPerson
entryUUID: 63c1439a-8eb2-1039-972a-ab07715586c3
creatorsName: cn=libuser,dc=directory,dc=nh
createTimestamp: 20191029161037Z
mail: admin@nethservertest.org
userPassword:: e0NSWVBUfSQ2JHBqOFpiMGdydnRQV2xLRjQkT3NUMzNXZ3FFZUhrb2hOaDJ3d
 0hCTU1OczhCbDR1Q3k3QnAvR1NMNWd3U3MxS1VXbkQudko2WnQyWS9Dcy9rUjF4akN6dUZGM3hx
 by5xMHV1TzB2ODA=
entryCSN: 20191029161400.617116Z#000000#000#000000
modifiersName: cn=libuser,dc=directory,dc=nh
modifyTimestamp: 20191029161400Z

dn: cn=domain admins,ou=Groups,dc=directory,dc=nh
gidNumber: 1001
objectClass: posixGroup
structuralObjectClass: posixGroup
entryUUID: 63ee7040-8eb2-1039-972b-ab07715586c3
creatorsName: cn=libuser,dc=directory,dc=nh
createTimestamp: 20191029161037Z
memberUid: admin
cn: domain admins
entryCSN: 20191029161038.085504Z#000000#000#000000
modifiersName: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
modifyTimestamp: 20191029161038Z

in LDAP the group doesn’t get a mail field like the user, SOGo retrieve the addressbook from LDAP, not sure we can find it

you have a remote authentification hum…

not tested but if in /etc/sogo/sogo.conf

you change

    id = groups;
    type = ldap;
    CNFieldName = cn;
    UIDFieldName = cn;
    IDFieldName = cn;
    baseDN = "ou=Groups,dc=directory,dc=nh";
    bindDN = "cn=ldapservice,dc=directory,dc=nh";
    bindPassword = "Z59OUcMHGUaidA_x";
    scope = ONE;
    canAuthenticate = YES;
    MailFieldNames = ("mail");
    displayName = "ns7loc8 groups";
    hostname = ldap://127.0.0.1;
    isAddressBook = NO;

to

    isAddressBook = YES;

then systemctl restart sogod

I already have isAddressBook = YES;

image

indeed in the global address book group I can see the email addresses of the group

but when I create new messages writing the initials I don’t see the group’s email

sorry for my bad English :slightly_frowning_face:

I changed

MailFieldNames = ("userPrincipalName");
to
MailFieldNames = ("mail");

now I see the groups email correctly when I create a new message :wink:

can I leave this change? will it be overwritten?
Thanks

yes you need to make a custom template, but in the meanwhile I need to check if we use it…I tested with openldap

1 Like

what is your windows server, does mail is a default ldap field for group email

Windows server 2019 standard

@davidep do we use the mail attribute for group in samba AD or openldap ?

Did you test to send the email to the group email, does each group people receives the email?

I tried now it’s not working, the email doesn’t reach the support group members :cry:
in NethServer on the email address I see the group

I also created a public folder support, if I delete it it arrives to the members of support group


therefore the public “support” folder, if present, has priority;

I confirm that if there is no public folder the group members receive the email !!!
it’s right?

It doesn’t surprise me, postfix does not connect to LDAP, so it doesn’t know about the group members, it is a limitation of the remote authentification, with a local authentication you can create a mail alias for the group, did you try ?

if support does not have a public folder if from outside email I send an email to support@xxx.it it arrives to the members of the group, same thing if from a local account from SOGo I send to support@xxx.it arrives to the members of the support group

mailboxes group

email addresses

postfix and dovecot deliver mail you have group members

1 Like

to be short, you want I enable this in the conf of SOGo ?