On Wed, Apr 23, 2014 at 02:19:45PM +0200, Frederik Himpe wrote: > Now I have a user (user1) which has set up e-mail forward in gosa, which > is stored in the ldap server as gosaMailForwardingAddress: > [email protected]
Presumably this is via an LDAP table in virtual_alias_maps. > Now in my /etc/aliases I also have > address: [email protected], [email protected] Presumably "example.com" is listed in $mydestination. > The problem I am experiencing, is that when e-mail is send to > [email protected], the mail is delivered in user1 and user's 2 inbox, > but it is not forwarded to [email protected] This is expected. Recursive expansion of local aliases(5) bypasses virtual aliases for all domains in $mydestination. Only remote addresses are re-queued for indirect delivery. The solution is not list $myorigin (example.com) in $mydestination, rather make it a virtual alias domain, and use virtual alias maps to rewrite virtual alias addresses in $myorigin to appropriate "mailbox" domains, one of which is in $mydestination, and is further expanded via aliases(5), but addresses on the right hand side of aliases(5) entries would typically not be "local", and thus expanded indirectly via a new queue file and thus recursively via virtual aliases. -- Viktor.
