On Wed, Mar 11, 2015 at 11:32:43PM +0800, Zhang Huangbin wrote:
> Dear all,
> 
> According to Postfix document, virtual(8), 'user+extens...@domain.ltd'
> is looked up first, then 'u...@domain.ltd'. Is it possible to
> skip/ignore the address extension and just query 'u...@domain.ltd'?
> (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.

Reply via email to