On Monday 02 April 2007 18:02, Carlo Wood wrote:
> I am trying to route mail as function of the existance of a header.
> Because everything is failing so far, I am doing tests. My latest
> test is:
>
> spamtest:
>   debug_print = "R: spamtest for $domain"
>   domains = "${if exists{CONFDIR/hubbed_hosts}\
>                    {partial-lsearch;CONFDIR/hubbed_hosts}\
>               fail}"
>   condition = ${if match [EMAIL PROTECTED] {1}}
                                 ^
Since header field names can contain any character except colon, you have to 
terminate the header field name with a colon:

    condition = ${if match {$h_To:[EMAIL PROTECTED] {1}}
                                 ^

Recent versions of Exim should detect these kinds of errors and suggest that 
you might have forgotten the colon.

-- 
Magnus Holmgren        [EMAIL PROTECTED]
                       (No Cc of list mail needed, thanks)

  "Exim is better at being younger, whereas sendmail is better for 
   Scrabble (50 point bonus for clearing your rack)" -- Dave Evans

Attachment: pgptRKf4k5kQ6.pgp
Description: PGP signature

-- 
## 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