[Kolab-devel] $mydestination in an ldap map

Andreas Hasenack andreas at conectiva.com.br
Wed Aug 17 22:13:36 CEST 2005


I don't think postfix variables such as $mydestination are expanded in
a ldap map file definition. For example,
ldap:/etc/postfix/ldapdistlist.cf:
(...)
server_host = ldap://127.0.0.1:389
search_base = dc=kolab,dc=conectiva
domain = $mydestination <-------------------
query_filter = (&(objectClass=kolabGroupOfNames)(!(kolabDeleteFlag=*))(mail=%s))
(...)

When running "postmap -q -v postmaster at kolab.conectiva ldap:/etc/postfix/ldapdistlist.cf"
I get:

(...)
postmap: cfg_get_int: /etc/postfix/ldapdistlist.cf: debuglevel = 0
postmap: dict_open: ldap:/etc/postfix/ldapdistlist.cf
postmap: dict_ldap_lookup: In dict_ldap_lookup
postmap: match_string: kolab.conectiva ~? $mydestination <===========
postmap: match_list_match: kolab.conectiva: no match <===============
postmap: dict_ldap_lookup: Skipping lookup of
'postmaster at kolab.conectiva'

So that should probably be "domain = @@@postfix-mydestination@@@" in the
template file instead, no?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.kolab.org/pipermail/devel/attachments/20050817/06f4c524/attachment.sig>


More information about the devel mailing list