On Thu, Oct 06, 2011 at 11:04:01AM -0300, Bevan Agard wrote: > I am trying to configure postfix to pull the values of a LDAP user group and > distribute the email accordingly. I have gotten as far as having it pull > the info however it passes it as one long comma separated string and as such > it is not correctly delivering email. Below is a copy of my config and the > results of a postmap
You can use groups to implement virtual alias rewriting, or local aliases. You cannot do virtual(8) *delivery* to a group. This means that group expansion MUST not happen in virtual_mailbox_maps, where you are replacing an address with its mailbox location. Rather, group expansion MUST ONLY happen when in alias_maps or virtual_alias_maps, where you are replacing an address with one or more target addresses. > # LDAP Dump > > # Entry 1: cn=eGroup-IT,ou=Groups,dc=mam,dc=gov > dn: cn=eGroup-IT,ou=Groups,dc=mam,dc=gov > cn: eGroup-IT > description: IT mail Group list > mail: egroup...@mam.gov.tt > member: uid=agardb,ou=Users,dc=mam,dc=gov > member: uid=bartholomewd,ou=Users,dc=mam,dc=gov > member: uid=bhagoon,ou=Users,dc=mam,dc=gov > member: uid=coopern,ou=Users,dc=mam,dc=gov > objectclass: mailGroup > objectclass: top > > > # ldap-user.cf > > server_host = ops.mam.gov.tt > search_base = dc=mam,dc=gov > version = 3 > query_filter = (mail=%s) > result_attribute = uid > special_result_attribute = member > terminal_result_attribute = member > leaf_result_attribute = uid > result_format = %s/Maildir/ This result format is not suitable for group expansion. It is only suitable for delivery to a mailbox in virtual_mailbox_maps, which must be one-to-one. -- Viktor.