Re: [exim] Condition problem.

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Max Lock
Dátum:  
Címzett: exim users
Tárgy: Re: [exim] Condition problem.
http://www.datanet.co.uk/default.aspx http://www.datanet.co.uk/default.aspx

--------------------------------------------------------------------------

I've tweaked things a bit. I realised that for domains that don't want
spam I can add a deny acl instead of a blackhole router...



deny
    message = No SPAM allowed here
    condition = ${if and{\
                        {eq{$h_X-spam_flag:}{YES}{0}{1}}\
                        {${lookup mysql{MYSQL_Q_DROPSPAM}{$value}}}\
                       }}


However this still errors

2008-11-25 15:48:24 1L509F-00049c-5S H=mailfeed.datanet.co.uk
[80.68.32.18] F=<max.lock@???> temporarily rejected after
DATA: failed to expand ACL string "${if
and{{eq{$h_X-spam_flag:}{YES}{1}{0}}{${lookup mysql{SELECT DISTINCT
domain FROM mail.virusscreen WHERE domain = '$domain' AND dumpspam =
'1'}{$value}}}}}": missing } at end of condition inside "and" group

Removing the {0}{1} from after the eq gives

2008-11-25 15:32:52 1L4zuD-00046w-5O H=mailfeed.datanet.co.uk
[80.68.32.18] F=<max.lock@???> temporarily rejected after
DATA: failed to expand ACL string "${if
and{{eq{$h_X-spam_flag:}{YES}}{${lookup mysql{SELECT DISTINCT domain
FROM mail.virusscreen WHERE domain = '$domain' AND dumpspam =
'1'}{$value}}}}}": condition name expected, but found "${lookup mysql{S"
inside "and{...}" condition

I'm lost.

-Cheers Max

--------------------------------------------------------------------------
Max Lock - Senior Systems Administrator
Datanet - Hosting & Connectivity
0845 130 6010
0845 130 6020
mailto:Max.Lock@datanet.co.uk
http://www.datanet.co.uk/
Registered Office: DATANET.CO.UK Limited, Aspen House, Barley Way, Ancells Business Park, Fleet, Hampshire, GU51 2UT Registered in England - No. 3214053
Providing Internet Solutions for Business since 1996, Datanet, over 12 years of excellence in service, support and IP solutions
http://www.datanet.co.uk/awards_and_affiliates.aspx
http://www.datanet.co.uk/datacentre_diary.aspx