On Thu, May 26, 2011 at 01:05:47PM -0700, Stephen Ingram wrote:

> I'm using postfix 2.3.3 on CentOS 5.3 and have experienced differing
> results depending on how I have postfix lookup the virtual domains
> hosted by postfix.
> 
> First, for virtual_alias_domains lookup:
> 
> postmap -q 4test.net hash:/etc/postfix/domains
> postmap -q 4test.net ldap:/etc/postfix/domains
> 
> both yield the result 4test.net.
> 
> I'm using ldap lookup for virtual_alias_maps such that:
> 
> postmap -q u...@4test.net ldap:/etc/postfix/virtual
> 
> yields u...@4test.net.
> 
> If I use virtual_alias_domains = hash:/etc/postfix/domains, everything
> works as expected. However, if I use
>       virtual_alias_domains = ldap:/etc/postfix/domains,
> 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.

-- 
        Viktor.

Reply via email to