Re: [exim] X-headers based routing

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Carlo Wood
Date:  
À: exim-users
CC: ssmeenk
Sujet: Re: [exim] X-headers based routing
On Mon, Apr 02, 2007 at 07:22:13PM +0200, Sander Smeenk wrote:
> Quoting Carlo Wood (carlo@???):
> > >  Is it possible to route messages on the base of
> > >         " X-headers "
> > This is exactly what I need too.
> > No matter what I tried, it seems that $header_* is not defined/usable
> > in a router definition :/ (See my previous mail)

>
> Hey! But values set in ACL's are ($acl_mN)! Hmm....
>
> :)
> Sander


This also does not work. I added the follow to an ACL that
is being executed:

warn
  set acl_m0 = "Hello World"
  spam = Debian-exim:true
  condition = ${if >={$spam_score_int}{40}}
  message = X-Spam-Status: Yes, score=$spam_score required=4.0\n\
            X-Spam-bar: $spam_bar\n\
            X-Spam-Report: $spam_report
  delay = 20s
  control = fakereject
  logwrite = :main: Classified as spam (score $spam_score)
  logwrite = :reject: SPAM: $spam_report



Note that I set acl_m0.
Also note that this acl IS being executed: the mail is delivered
and the X-Spam-Status: etc have been added to it.

I added to the router:

spamtest:
  debug_print = "R: spamtest for $domain acl_m0 is $acl_m0"
  domains = "${if exists{CONFDIR/hubbed_hosts}\
                   {partial-lsearch;CONFDIR/hubbed_hosts}\
              fail}"
  condition = ${if def:header_To: {yes}{no}}
 etc...


This then outputs:

R: spamtest for alinoe.com acl_m0 is
checking "condition"
spamtest router skipped: condition failure


Note that the value of acl_m0 is EMPTY.

--
Carlo Wood <carlo@???>