On Thu, Jan 22, 2009 at 10:46:09AM +0530, ram wrote:

> > Search order is documented in the transport(5) man page.  When 
> > multiple tables are present, each table is searched in the 
> > order specified.  The first match stops the search.  Since 
> > your regexp matches the first user+extens...@domain search, no 
> > further searches will be performed.
>
> But the hash file matches the domain,  why wouldnt that take precedence
> over the hash table 

Because a list of tables is one logical concatenated table, and
the documented lookup keys are tried in turn against the full
set of tables, so the highest priority lookup key matching in
a lower-priority table wins over a less specific in a higher
priority table:

        for key in $keys
            for table in $tables
                value = lookup(table, key)
                if value is not nil
                    return value
        return nil

-- 
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majord...@postfix.org?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.

Reply via email to