On Thu, May 26, 2011 at 01:27:24PM -0700, Stephen Ingram wrote:

> >> I receive an error "User unknown in virtual alias table"
> >> and the mail is bounced.
> >
> > Likely the LDAP table incorrectly returns results that don't depend
> > on the lookup key, or for additional unintended lookup keys.
> >
> >> Since I'm holding everything
> >> else constant, I'm not sure why hash vs ldap would make any
> >> difference.
> >
> > Because the table contents are not equivalent. Try:
> >
> > ? ?postmap -q example.com ldap:/etc/postfix/domains
> >
> > if this returns "4test.net", that's your problem.
> 
> That query returns nothing. Here are the ldap parameters I'm using:
> 
> query_filter = 
> (&(objectClass=postfixVirtualDomain)(virtualDomain=%s)(entryActive=TRUE))
> result_attribute = virtualDomain

In that case you have unintended lookup keys in the table for domains
whose users are not universally virtual alias users. Remember that all
addresses in a virtual alias domain MUST rewrite to a *real* domain.

-- 
        Viktor.

Reply via email to