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. Since I'm holding everything
else constant, I'm not sure why hash vs ldap would make any
difference. Logs from the directory server indicate the same lookups
in both cases (minus the domain lookups where the hash table is used)
with the same results. Is this a bug that's been fixed since this is
such an ancient version, or am I missing something here?

Steve

Reply via email to