The text under "TABLE SEARCH ORDER" describes that the search order
is first user+extension@domain, second user@domain, third domain, etc.

The text "Tables will be searched in the specified order until a
match is found" means that it first searches all tables for
user+extension@domain, second all tables for user@domain, third all
tables for domain, and so on.

If you must match a domain before an address in that domain, then
you would need to use one regexp or pcre-based table for the whole
lot.  Those tables are searched with the complete address only, and
the first pattern is matched first.

/@example\.com$/        reply for high-priority domain
/^user@example\.com$/   reply for specific user.

Unless you have thousands of transport_maps entries, the performance
should be OK.

        Wietse

Reply via email to