Re: [exim] exiscan, prevent double scan

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Patrick von der Hagen
Dátum:  
Címzett: Den
CC: exim-users
Tárgy: Re: [exim] exiscan, prevent double scan
Den schrieb:
> Hello!
> There are 2 'Exim version 4.63' servers.
> It is possible to prevent double content scanning by exiscan on the second
> mail server?
> It was possible by using variable 'exiscan_crypt_salt' in old versions.

You can start your data-acl with something like

accept condition = ${if and {\
                                {def:h_X-Scan-Signature:}\
                                {eq {${hmac{md5}\
                                  {iWillNotTellYou}\
                                  {$body_linecount}}}\
                                  {$h_X-Scan-Signature:}\
                                }\
                              }\
                         {1}{0}}
         logwrite = correct X-Scan-Signature, size=$message_size



and end it with
warn message = X-Scan-Signature: ${hmac{md5}{iWillNotTellYou}\
                 {$body_linecount}}
accept


That frame would prevent running any tests between those statements, if 
the message has been processed by your servers before AND nothing has 
changed the linecount. If some Mailinglist appends a footer, you'll have 
to either accept double-scanning in that particular case or do something 
more complicated.
-- 
CU,
    Patrick.