RE: [Exim] Choosing who check

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Tony Lucas
Fecha:  
A: 'exim-users@exim.org'
Asunto: 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