On Wed, Mar 11, 2015 at 11:32:43PM +0800, Zhang Huangbin wrote:
> Dear all,
>
> According to Postfix document, virtual(8), '[email protected]'
> is looked up first, then '[email protected]'. Is it possible to
> skip/ignore the address extension and just query '[email protected]'?
> (by the way, i want to ignore the extension in SQL/LDAP lookup.)
Not at present. You can only suppress lookups for bare keys which
can happen when the domain is $myorigin or matches $mydestination
by interpolating the lookup key into the query via '%u@%d' instead
of '%s'. That will filter out keys with no @domain part.
This logic happens in the *SQL and LDAP table drivers, while the
sequencing of lookup keys happens above that layer, and is not
currently configurable. Configurable case-folding and lookup key
selection is not currently implemented.
--
Viktor.