Zhang Huangbin:
> Dear Postfix developers,
> 
> I posted a question about how to construct a sql/ldap query to query
> accounts without extension part in email address last month:
> http://marc.info/?t=142608818300004&r=1&w=2
> 
> For example, query recipient 'user+extens...@domain.com' with LDAP filter:
> 
> query_filter    = (mail=%s)
> query_filter    = (mail=%u@%d)
> 
> It will always include '+extension' part in filter. The feature i'm requesting

Postfix will automatically query with
1) the full email address,
2) the address without extension, 
3) the domain. 

This is documented in virtual(5), canonical(5), access(5), transport(5),
and so on.

If Postfix did not do 1) before 2), then you would never be able
to make an alias etc. that matches an extended address only.

The 1/2/3 query order is currently hard-coded. It should be made
configurable.

        Wietse

Reply via email to