Re: [exim] autoreply vacation complexity troubles

Góra strony
Delete this message
Reply to this message
Autor: Kjetil Torgrim Homme
Data:  
Dla: Wolfgang Hennerbichler
CC: exim-users
Temat: Re: [exim] autoreply vacation complexity troubles
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:$local_part@$domain})}\
              {$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.