RE: [Exim] Choosing who check

Góra strony
Delete this message
Reply to this message
Autor: Tony Lucas
Data:  
Dla: 'exim-users@exim.org'
Temat: RE: [Exim] Choosing who check
>On Wed, 8 Aug 2001, Cherubini Enrico wrote:
>
>> I'm building up a mailserver with amavis and I would like how to

check only
>
>wild guess, condition = ${lookup mysql{...
>
>in the amavis director ?
>
>but this really is a wild guess.
>

If its of any help, below is the lines I use, to switch amavis on and
off on a per domain basis:

MYSQL_ANTIVIR = SELECT id FROM domains WHERE domain='${domain}' AND
antiv='Y'

condition = "${if or {{eq {${lookup mysql{MYSQL_ANTIVIR}{yes}}}{}}{eq
{$received_protocol}{scanned-ok}}} {0}{1}}"

Not sure if its totally technically correct, but it works perfectly.

The domains table, is just a table with 'id' 'domain name' and 'antiv'
fields in.

Regards,

Tony Lucas
XCalibre Communications Ltd
http://www.xcalibre.co.uk