On Fri, 25 Oct 2002, Jon James wrote:
> Hi peeps,
>
>
> I am trying to get exim 4.05 to spam check mail with spamassassin then
You should upgrade to 4.10.
> forward that checked mail onto a certain host. Can anyone point me in
> the right direction ?
Please wrap your lines at 72 chars.
> at the min i have the folling
>
>
> spamcheck_router:
> no_verify
> check_local_user
^^^^^^^^^^^^^^^^ Remove this, or the router will be started only when
$local_part is a local user on this machine.
> # When to scan a message :
> # - it isn't already flagged as spam
> # - it isn't already scanned
> condition = "${if and { {!def:h_X-Spam-Flag:} {!eq {$received_protocol}\
> {spam-scanned}}} {1}{0}}"
I think it's better to have the condition without the header-check,
otherwise spammers can send with X-Spam-Flag: 0 and you condition will let
them fall through.
condition = ${if eq {$received_protocol}{spam-scanned}{0}{1}}
Would be better
> driver = accept
> transport = spamcheck
>
>
> hub_route:
> driver = manualroute
> transport = remote_smtp
> route_list = *fluidic-space.org.uk 192.168.1.1
>
The routers are in THIS order?
> This works fine, checks all mail for spam but..... mail for
> fluidic-space.org.uk does not get checked and gets routed direct to
> 192.168.1.1
See my explanation above.
ciao