On Wed, Aug 08, 2012 at 12:07:09PM -0700, email builder wrote:

> >>  2) it's not intuitive to me that the query I have given to postifx
> >>  is conditionally executed. 
> > 
> > And THAT is precisely what the documentation says.
> 
> And THAT is merely what I was asking to have confirmation of
> (not sure why that is so difficult)...

It is difficult only because you prefer to believe fanciful
interpretations a plainly stated behaviour. The query is
suppressed, it never happens, <insert Monty Python parrot skit>.

The documentation is concise, but not (at least in this case)
ambiguous.

> because it's not intuitive,

It is intuititive if you understand that Postfix makes multiple
lookups for a single key, some of which contain only the user or
the domain part. The low-level table driver (LDAP, MySQL, ...)
does not know which part of the address it is handed, or even
whether the lookup key is an address at all.

Thus, when a lookup key does not resembe an full email address, it
is not possible to determine whether the key has a domain part or
not. Instead of making meaningless queries that may produce incorrect
results, Postfix suppresses the query.

> and also because this fact is IMO buried too deep in the documentation.

It is documented in the paragraph that describes the "%d" syntax.
Don't use "%d" in queries without reading what it does. There is
surely no better place to describe "%d" semantics than in the
associated paragraph of the query syntax definitions.

-- 
        Viktor.

Reply via email to