Source

iredmail / iRedMail / samples / postfix / ldap / recipient_bcc_maps_user.cf

Diff from to

iRedMail/samples/postfix/ldap/recipient_bcc_maps_user.cf

 bind_pw         = RBUuFDo31MJbLkJgrwkaKkmRg7Cldw
 search_base     = ou=Users,domainName=%d,PH_LDAP_BASEDN
 scope           = one
-query_filter    = (&(mail=%s)(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=recipientbcc))
+query_filter    = (&(|(mail=%s)(&(enabledService=shadowaddress)(shadowAddress=%s)))(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=recipientbcc))
 result_attribute= userRecipientBccAddress
 debuglevel      = 0