Re: [Exim] routing only non-local mail to spamassassin

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Robert Kehl
CC: exim-users
Subject: Re: [Exim] routing only non-local mail to spamassassin
On Thu, 11 Sep 2003, Robert Kehl wrote:

> This one should do it:
>
> spamcheck_router:
>   driver = accept
>   hosts = !129.246.0.0/16
>   transport = spamcheck
>   local_parts = lsearch;/etc/mail/spamusers
>   no_verify
>   condition = "${if and { {!def:h_X-Spam-Flag:}\
>                           {!eq {$received_protocol}{spam-scanned}}\
>                         }{1}{0}}"


Sorry, there is no "hosts" option for routers. It is an ACL condition.
To test the sending host in a router, you do have to make use of
$sender_host_address in a "condition" option.


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book