>> Why don't you use the postfix 'virtual_alias_maps'
LDAP lookup map for
>> your 'mailAddressAlias' entries? That way postfix
will perform a second
>> lookup for the final mailbox
('virtual_mailbox_maps') which is always an
>> 'mail' attribute in your case. Afterwards
courier-authlib needs only to
>> perform 'mail' attribute lookups, as specified
above.
>
> Sorry, I didn't mention that I use virtual_alias_maps
in main.cf to forward
> mails.
> virtual_alias_maps =
ldap:aliases,hash:/etc/mail/virtual
>
> aliases_search_base = ou=Users,dc=domain,dc=com
> aliases_query_filter =
(&(objectClass=user)(mail=%s)(accountStatus=active))
> aliases_result_attribute = mailForwardingAddress
> aliases_scope = sub
> aliases_cache = yes
> aliases_bind = no
> aliases_version = 3
>
> It's the opposite use case. With
"mailAddressAlias" (that's a wrong name, I
> know, I should have used mailAlternateAddress) I want,
for
> example, "intercept" mails directed to people
no more working here, while
> with mailForwardinAddress I get the list of mail
addresses where I have to
> forward an incoming mail (usually external addresses).
From the postfix alias view there's no difference between a
"forwarding
alias" and a "local expanding alias". Either
an off-site address is
specified (forwarding) or an other "local address"
which will be caught
by the second virtual_mailbox lookup.
This leads to the question whats the difference in your
setup between a
normal 'dn: mail=user example.org...' and a 'dn:
mailAddressAlias=user2 example.org...' entry? In both cases the
mails
should/will be delivered locally, right? If yes, why are you
distinguish
those two cases?
regards
------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Courier-maildrop mailing list
Courier-maildrop lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/courie
r-maildrop
|