Thanks guys This was a big help. I added the virtual_alias_map directive created the associated file, had the return values be email addresses and boom all went smooth and creamy like fresh churned butter.
Thanks again Bevan Trust that all thing would work out for the good. Keep standing. Keep believing. Keep hoping. Keep moving forward. Advertise Your goods and services for free on Trin e-Ads http://www.trin-e-ads.com On Thu, Oct 6, 2011 at 1:54 PM, Simeon Ott <simeon....@onnet.ch> wrote: > > On 06.10.2011, at 16:04, Bevan Agard wrote: > > Hello > > 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 > > # 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/ > > # postmap -q egroup...@mam.gov.tt ldap:/etc/postfix/ldap-users.cf > agardb/Maildir/,bartholomewd/Maildir/,bhagoon/Maildir/,coopern/Maildir/ > > I would like it to pass each value individually. Can anyone help? > > > Trust that all thing would work out for the good. > Keep standing. Keep believing. Keep hoping. Keep moving forward. > > Advertise Your goods and services for free on Trin e-Ads > http://www.trin-e-ads.com > > > I'm not an expert, but I can show you how we did it on our mailserver. > > virtual_alias_maps = ldap:valias, ldap:vgroup > vgroup_server_host = ldap.example.com > vgroup_search_base = ou=domains,dc=example,dc=com > vgroup_scope = sub > vgroup_query_filter = (&(mailalias=%s)(objectClass=groupOfNames)) > vgroup_special_result_attribute = member > vgroup_result_attribute = mail > vgroup_version = 3 > > > valias is just another table for common mail aliases, so you can ignore > this > > dn: cn=intern,ou=customerdom.com,ou=domains,dc=example,dc=com > objectClass: groupOfNames > objectClass: groupOfNamesExt > cn: intern > member: cn=empl01,ou=customerdom.com,ou=domains,dc=example,dc=com > member: cn=empl02,ou=customerdom.com,ou=domains,dc=example,dc=com > member: cn=empl03,ou=customerdom.com,ou=domains,dc=example,dc=com > description: Distribution List for interal mails > mailalias: int...@customerdom.com > > hope this helps > >