1 (edited by TomKep 2015-01-08 22:47:06)

Topic: [SOLVED] Sogo mail group

==== Required information ====
- iRedMail version: 0.9.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):LDAP
- Linux/BSD distribution name and version: Ubuntu 14.04
iRedmail with SOGo on LDAP without Roundcube.
====
Helo

Like my other topics about mail aliases, in this I ask about mail group and normal group create in iRedmail with SOGo.
I have problem to find information about this. I don't know what I should search.
iRedmail config or SOGo config? Perhaps other ?

Mail Group (in my thinking) - that is group of users with one mail address. When I send mail for this address all users from groups receive this mail. Send mail for this group is possible only for group moderators or member of group.

Normal Group - that is group of users ( with or without mail address). When I create appointment or task and add this group name for recipients, all users from this group should receive invitation.

Could you help me ?

----

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

2

Re: [SOLVED] Sogo mail group

iRedMail has "mail group" as you described, no "normal group".
To create mail group, you can create it with ldap management too manually by following our tutorial:
http://www.iredmail.org/docs/ldap.add.mail.list.html

Or, you can buy our web admin panel to make your life easier: http://www.iredmail.org/admin_panel.html

Screenshot of mail group creation with iRedAdmin-Pro:
http://www.iredmail.org/images/iredadmin/maillist_create.png

3

Re: [SOLVED] Sogo mail group

Hi.
I used this guide and it works.
When I create mail and I'm typing group name into To: field - system suggest me rest of group mail address and this is OK.
But when I try search group mail in global address book, I can't find it..

My policy is domain.
Can I Do something with this ?

My sogo.conf
SOGoUserSources = (
        {
            type = ldap;
            hostname = "ldap://127.0.0.1:389";
            baseDN = "o=domains,dc=mydomain,dc=pl";
            bindDN = "cn=vmailadmin,dc=mydomain,dc=pl";
            bindPassword = "password";
            filter = "objectClass=mailUser AND accountStatus=active AND enabledService=mail";
            scope = SUB;
            userPasswordAlgorithm = ssha;
            IDFieldName = mail;
            bindFields = (mail);
            CNFieldName = cn;
            UIDFieldName = mail;
            IMAPLoginFieldName = mail;
            SearchFieldNames = (cn, sn, displayName, telephoneNumber, mail, shadowAddress);
            canAuthenticate = YES;
            displayName = "Global Address Book";
            id = ldap_auth;
            isAddressBook = YES;
        }
     );

4

Re: [SOLVED] Sogo mail group

TomKep wrote:

But when I try search group mail in global address book, I can't find it..

Please turn on debug mode in OpenLDAP and show us detailed log of this searching.

Reference: turn on debug mode in OpenLDAP.
http://www.iredmail.org/docs/debug.openldap.html

5

Re: [SOLVED] Sogo mail group

My openldap log:
Jan  8 00:44:21 poczta slapd[12232]: conn=1008 fd=24 ACCEPT from IP=127.0.0.1:42112 (IP=0.0.0.0:389)
Jan  8 00:44:21 poczta slapd[12232]: conn=1008 op=0 BIND dn="cn=vmailadmin,dc=mydomain,dc=pl" method=128
Jan  8 00:44:21 poczta slapd[12232]: conn=1008 op=0 BIND dn="cn=vmailadmin,dc=mydomain,dc=pl" mech=SIMPLE ssf=0
Jan  8 00:44:21 poczta slapd[12232]: conn=1008 op=0 RESULT tag=97 err=0 text=
#comment (now I try search zarzad@mydomain.pl - this is mailList(group))
Jan  8 00:44:21 poczta slapd[12232]: conn=1008 op=1 SRCH base="o=domains,dc=mydomain,dc=pl" scope=2 deref=0 filter="(&(|(cn=*zar*)(sn=*zar*)(displayName=*zar*)(telephon$
Jan  8 00:44:21 poczta slapd[12232]: conn=1008 op=1 SRCH attr=*
Jan  8 00:44:21 poczta slapd[12232]: <= bdb_substring_candidates: (displayName) not indexed
Jan  8 00:44:21 poczta slapd[12232]: conn=1008 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
Jan  8 00:44:21 poczta slapd[12232]: conn=1008 op=2 UNBIND
Jan  8 00:44:21 poczta slapd[12232]: conn=1008 fd=24 closed
Jan  8 00:44:28 poczta slapd[12232]: conn=1009 fd=24 ACCEPT from IP=127.0.0.1:42115 (IP=0.0.0.0:389)
Jan  8 00:44:28 poczta slapd[12232]: conn=1009 op=0 BIND dn="cn=vmailadmin,dc=mydomain,dc=pl" method=128
Jan  8 00:44:28 poczta slapd[12232]: conn=1009 op=0 BIND dn="cn=vmailadmin,dc=mydomain,dc=pl" mech=SIMPLE ssf=0
Jan  8 00:44:28 poczta slapd[12232]: conn=1009 op=0 RESULT tag=97 err=0 text=
#comment (now I try search tomasz....@mydomain.pl - this is mailUser)
Jan  8 00:44:28 poczta slapd[12232]: conn=1009 op=1 SRCH base="o=domains,dc=mydomain,dc=pl" scope=2 deref=0 filter="(&(|(cn=*tom*)(sn=*tom*)(displayName=*tom*)(telephon$
Jan  8 00:44:28 poczta slapd[12232]: conn=1009 op=1 SRCH attr=*
Jan  8 00:44:28 poczta slapd[12232]: <= bdb_substring_candidates: (displayName) not indexed
Jan  8 00:44:28 poczta slapd[12232]: conn=1009 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
Jan  8 00:44:28 poczta slapd[12232]: conn=1009 op=2 UNBIND
Jan  8 00:44:28 poczta slapd[12232]: conn=1009 fd=24 closed

After this I changed my sogo.conf and now is ok

SOGoUserSources = (
......
filter = "objectClass=mailUser AND accountStatus=active AND enabledService=mail";
to
filter = "objectClass=mailUser OR objectClass=mailList AND accountStatus=active AND enabledService=mail";
........

But maybe other solutions will be better ?
What with displayedInGlobalAddressBook ?

6

Re: [SOLVED] Sogo mail group

Maybe we should use this instead:

filter = "accountStatus=active AND enabledService=mail AND enabledService=displayedInGlobalAddressBook";