On Tue, 2007-05-08 at 07:55 +0200, Wolfgang Hennerbichler wrote:
> On 08.05.2007, at 03:07, Kjetil Torgrim Homme wrote:
> > we set $address_data to contain all the attributes for that user from
> > LDAP early on.
> 
> I'd be very intersted in that "early on" stage when it comes to  
> finding out if the user is in the $h_To or $h_CC fields. Could you  
> also give me an example on that one?

we don't do any checking of $h_To: or $h_Cc:, so I'm not sure what
you're asking here.

anyway, here's the router which sets address_data.  it should be your
first router or thereabouts.  our LDAP schema is very non-standard, so
this is only meant as an illustration.

set_address_data:
  driver = redirect
  local_part_suffix = +*
  local_part_suffix_optional
  address_data = ${lookup ldap {LDAP_BASE?\
                                target,targetType,mailPause,uid,spoolInfo,\
                                spamAction,spamLevel,defaultMailAddress,\
                                forwardDestination,IMAPserver,tripnote,\
                                tripnoteActive?sub?\
                                (mail=${quote_ldap:[EMAIL PROTECTED])}\
                          {$value}}
  # ph10's recommended way of writing a non-routing router: "Use a
  # redirect router that redirects to the same address; set the
  # redirect_router option to point to the next router."
  # If we only need to set "address_data", we can cheat and set "data"
  # to the empty string.  The router will decline, but that's fine.
  data = 

-- 
Kjetil T.



-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to