Matus UHLAR - fantomas:
> I could probably do it using postconf to get virtual_alias_maps and
> "postmap -q" to expand aliases. But I'd like to know order in which they are
> expanded by postfix:
> 
> - do I need to query repeatedly, until virtual_alias_expansion_limit is
>   reached?
>   (postmap -q returns first query)
> 
> - how to repeat queries, if multiple lookup maps are used?
>   Repeat first map until no expansions are made or cycle through all maps
>   with all lookups?

Postfix code works as follows:

    for each query pattern # user@domain, @domain, localpart, ...
        for each map in mumble_maps 
            search the map for the query pattern

I left out the code that takes a search result and does something
depending on the query pattern that was matched (user@domain,
@domain, localpart, ...).

The reason for this arrangement of the two loops is that the query
patterns were generated by hand-crafted code, one iteration at a
time. We could change that with a data-driven approach, but it would
be incompatible with existing behavior.

        Wietse

Reply via email to