Zeljko Culek: [ Charset ISO-8859-2 unsupported, converting... ] > Hello everyone, > > I need some help with postfix+LDAP config and delivery mode. > > We're using Postfix 2.6.6 on Centos 6.4. Before, we used Qmail with the > same LDAP (on old Debian). Our LDAP accounts have the attribute > > deliveryMode > > which we used for mailing lists (OK, they are in fact "mailing groups" > rather than lists). When the attribute is set to > > deliveryMode = nolocal > > Qmail did not deliver mail to the list "mailbox", only to the accounts > on the list/group. > > Now with Postfix I can't achieve the same behaviour. Can Postfix (I now > it can, but don't know how :)) be set up not to deliver the mail to the > list mailbox if the list has the attribute deliveryMode = nolocal?
As documented, Postfix alias expansion works as follows: 1) Look up the address in the alias table. 2) If the lookup result is "does not exist", deliver to the address in step 1. 3) Otherwise, deliver to all addresses in the lookup result. Postfix uses this approach whether the alias file is an indexed file or whether it is an LDAP database. It is your responsibility to produce an ldap_table(5) query that produces the desired result. Wietse