Hi, I am trying to set up a group distribution list for postfix using LDAP but with no luck. What I have on the system running on Ubuntu Server 10.04-32bits is Postfix 2.7.0, Dovecot, openLDAP and Squirrelmail. I got everything working - which means I can send and receive emails both internally and externally. My next goal is to set up a group of people (i.e. our staff) for email distribution. For example: if I want to send an email intended for every staff, I can type it in [email protected] and the email will be sent to everybody in that group list. So what I am stuck on is how to set up for the ldap group. I have the following ldif file called groupdistribution.ldif dn: uid=allstaff,ou=groups,dc=example,dc=com #objectClass: ldapgroup objectClass: inetOrgPerson objectClass: posixGroup cn: allstaff sn: allstaff uid: allstaff mail: [email protected] description: Company staff Distribution # add the group members all of which are # assumed to exist under accounts member: uid=sam.gordon,ou=accounts,dc=example,dc=com member: uid=mick.higgins,ou=accounts,dc=example,dc=com I got error when trying to do ldapadd, the error message adding new entry "uid=allstaff,ou=groups,dc=example,dc=com" ldap_add: Object class violation (65) additional info: invalid structural object class chain (inetOrgPerson/posixGroup) I then tried to do it without objectClass: posixGroup, I got adding new entry "uid=allstaff,ou=groups,dc=example,dc=com" ldap_add: Object class violation (65) additional info: attribute 'member' not allowed I tried to use memberdn and memberaddr, none of these worked. I tried to google to get other info but to no avail. I think I need the mail attribute for uid=allstaff when doing the postmap. I am at a loss here - do not know what to do. Here is a sample of one of my user's detail in LDIF format dn: cn=dovecot,ou=accounts,dc=example,dc=com objectClass: person cn: dovecot sn: dovecot dn: uid=sam.gordon,ou=accounts,dc=example,dc=com objectClass: person objectClass: posixAccount cn: Samantha Gordon sn: Gordon uid: sam.gordon uidNumber: 1004 gidNumber: 1004 userPassword: {CRYPT}dlUtxwTUGWQP homeDirectory: /home/vmail/sam.gordon Any help would be greatly appreciated. Thank you
You cannot add a "Person" schema to a Group schema inetOrgPerson posixGroup You can write your own schema for postfixGroup as well.
Thank you Mark_N for your reply. Sorry about the delay. It's now working. I ended up using virtual_alias_maps. Thank you for looking into this issue of mine