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:
> user1...@gmail.com

Presumably this is via an LDAP table in virtual_alias_maps.

> Now in my /etc/aliases I also have
> address: us...@example.com, us...@example.com

Presumably "example.com" is listed in $mydestination.

> The problem I am experiencing, is that when e-mail is send to
> addr...@example.com, the mail is delivered in user1 and user's 2 inbox,
> but it is not forwarded to user1...@gmail.com

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.

Reply via email to