On Monday, August 04, 2008 at 15:56 CEST,
     Aaron Bennett <[EMAIL PROTECTED]> wrote:
> I need to be able to BOTH forward email and, optionally, deliver it
> locally as well.  I think I've gone about this wrong but it's easy to
> change...
> 
> Everything is in ldap.  I've been using virtual_alias_maps to hold the
> forwarding information.  What happens there though is that if it hits
> there it never tries to store the mail locally.  What I want is to
> figure out how to get this behavior:
> 
> 1.  If user has forwarding set, forward the mail
> 2.  if user wants local deliver, deliver it locally
> 
> These are independent of each other and are easily determined from
> ldap.

Set up an alias on the following form:

[EMAIL PROTECTED]                [EMAIL PROTECTED],[EMAIL PROTECTED]

In your LDAP map configuration this could translate to something like:

query_filter = mail=%s
result_attribute = mail, mailForwardingAddress

Obviously depending on your LDAP schema.

-- 
Magnus Bäck
[EMAIL PROTECTED]

Reply via email to