Hi ! Here is what I did to make postfix decompose OpenLDAP group to use it with SOGo and Thunderbird. My SOGo server (1.3.4) is a Debian Lenny and I have two MTA also with Debian Lenny.
Create a file /etc/postfix/ldap-groups.cf on your MTAs: version = 3 port = 389 server_host = 192.168.0.1 scope = sub search_base = dc=mydomain,dc=org query_filter = mail=%s special_result_attribute = member leaf_result_attribute = mail Modify /etc/postfix/main.cf: virtual_alias_maps = ldap:/etc/postfix/ldap-groups.cf Restart postfix, and create a group with a ldif file: dn: cn=Administrateurs,ou=People,dc=mydomain,dc=org objectClass: top objectClass: groupOfNames objectClass: extensibleObject cn: Administrateurs mail: [email protected] member: uid=guimonte,ou=People,dc=mydomain,dc=org member: uid=simmonsa,ou=People,dc=mydomain,dc=org And add it with ldapadd: ldapadd -x -D "cn=admin,dc=mydomain,dc=org" -w password -v -f administrateur.ldif And now I can send mail to this group and it works fine! -----Message d'origine----- De : Ludovic Marcotte [mailto:[email protected]] Envoyé : 22 décembre 2010 14:52 À : [email protected] Objet : Re: [SOGo] Openldap group in address book On 10-12-22 2:38 PM, Guimont, Éric wrote: [snip] > What i try to do is to send mails to a group of person using a group in ldap ! That won't work in SOGo directly - it won't decompose the group when sending mails. You could nonetheless do that at the MTA level. Simply create a LDAP map that decomposes the group based on its members, trivial to do with Postfix. Regards, -- Ludovic Marcotte [email protected] :: +1.514.755.3630 :: www.inverse.ca Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence (www.packetfence.org) -- [email protected] https://inverse.ca/sogo/lists -- [email protected] https://inverse.ca/sogo/lists
