Hi,
I have a mail alias set up in LDAP with no local member addresses:

dn: cn=jeff,ou=warp2biz,ou=accounts,dc=mycompany,dc=com
objectClass: mailGroup
cn: jeff
mail: j...@mycompany.com
accountStatus: active
memberaddr: j...@othercompany.net

However, sending to j...@mycompany.com results in a bounce because
Cyrus thinks it is a local user:

Oct 23 05:07:28 athena cyrus/lmtpunix[8156]:
verify_user(mycompany.com!user.jeff) failed: Mailbox does not exist

But the mail is still delivered to j...@othercompany.net.

Adding a memberdn entry with other _local_ addresses does not cause
the bounce. Only an alias with a memberaddr entry and no local
mailboxes causes it to bounce.
I am using the model described in 'man ldap_table'.

virtual_alias_maps = ldap:/etc/postfix/virtual_alias_maps.cf
virtual_mailbox_maps = ldap:/etc/postfix/virtual_mbox_maps.cf

virtual_alias_maps.cf:
...
query_filter     = (&(mail=%s)(accountStatus=active))
result_attribute = memberaddr
special_result_attribute = memberdn
terminal_result_attribute = maildrop
leaf_result_attribute = mail

virtual_mbox_maps.cf:
...
query_filter     = (&(mail=%s)(accountStatus=active))
result_attribute = uid

Thanks.

-- James

Reply via email to