Re: [exim] Spam Scanning Issue

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Phil Pennock
Dátum:  
Címzett: Matt
CC: exim-users
Tárgy: Re: [exim] Spam Scanning Issue
On 2007-12-31 at 14:19 -0600, Matt wrote:
> # Spam Assassin
> spamcheck_director:
>   driver = accept
>   condition = "${if and { \
>                         {!def:h_X-Spam-Flag:} \
>                         {!eq {$received_protocol}{spam-scanned}} \
>                         {!eq {$received_protocol}{local}} \


> Is there any way to tell it not to scan messages if the source IP is in:
>
> /etc/virtual/pophosts
>
> That file contains a list of IP's that have authenticated with POP3 in
> last fifteen minutes.
>
> Or how about if its sent by an authenticated user?


Add extra
{condition} \
lines to the and{...} contents.

{!match_ip {$sender_host_address}{/etc/virtual/pophosts}} \
{!eq {$authenticated_id}{}} \

The match_ip expansion condition takes an IP (v4 or v6) and a hostlist
restricted to containing IP addresses; an item in a named list can just
be a file, provided that each line is just an item in the list, or a
line starting '#' for a comment.

-Phil