Re: [exim] Help with router

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Antonio Cocco
Data:  
Para: exim-users
Assunto: Re: [exim] Help with router
>
>
>On Sunday 06 May 2007 17:53, Antonio Cocco wrote:
>>  delspam:
>>     driver = accept
>>     condition = ${if match {$h_X-Spam-Status}{"Yes"} {Yes}{No}}
>>     transport = rmspam

>
>There should be a colon after $h_X-Spam-Status (to terminate the header name).
>An expansion failure should occur otherwise, so perhaps you made a typo in
>your mail. Also note that you can drop "{Yes}{No}". ${if} by default returns
>true if the condition is true and the empty string (a false value) otherwise.


Thank You for your answer but unfortunately this did not work.

The router gets called 3 times (why??)

the first:
5306 --------> delspam router <--------
5306 local_part=address domain=prova.cocco.it
5306 checking "condition"
5306 delspam router skipped: condition failure

the second

5306 --------> delspam router <--------
5306 local_part=address domain=prova.cocco.it
5306 checking "condition"
5306 delspam router skipped: condition failure

the third:

5308 --------> delspam router <--------
5308 local_part=address domain=prova.cocco.it
5308 Yes (5.2/1.0) SpamAssassin 3.2.0 (2007-05-01)
5308   (+++++)
5308   ---- Start of SpamAssassin Report
5308   *  2.9 TVD_SPACE_RATIO BODY: TVD_SPACE_RATIO
5308   *  2.3 MISSING_SUBJECT Missing Subject: header
5308   *  0.0 EMPTY_MESSAGE Message appears to have no textual parts and no
5308   *      Subject: text
5308   ---- End of SpamAssassin Report
5308 checking "condition"
5308 delspam router skipped: condition failure


the third in case of non spam:
--------> delspam router <--------
5312 local_part=pippo domain=prova.cocco.it
5312 No (0.0/1.0) SpamAssassin 3.2.0 (2007-05-01)
5312 ()
5312 ---- Start of SpamAssassin Report
5312 ---- End of SpamAssassin Report
5312 checking "condition"
5312 delspam router skipped: condition failure


Thank you

Antonio