[Exim] Question about 'condition' parameter

Top Page
Delete this message
Reply to this message
Author: Axel Hollanda
Date:  
To: exim-users
Subject: [Exim] Question about 'condition' parameter
Hi there,

I have a situation here, my condition parameter for black list isn't
working the way it is:

       condition =     ${if match \
                       {$sender_address} \
                       {${lookup mysql{select content from user_hbl \
                        where username='${quote_mysql:$local_part}' \
                        and content='$sender_address'}}} \
                       {no}{yes}}


Perhaps it's syntax failure, but Exim doesn't complain about it. If
the user exists, the query returns a real condition, the check is made
correctly, but if "lookup failure" is returned, whenever mysql says
there's no answer for that query, the condition is set to failed. What
do I need:

  if $sender_adress matches content @ mysql_black_list_table
     block mail
  or
  if $header_subject matches content @ mysql_black_list_table
     block mail


The header_subject part isn't implemented yet.

PS: I would appreciate if anyone of you can send me a tip for using the
"or" of if statement either.

Thanks.

--
###################################################-------...
# Axel Hollanda                                             `
# ahollanda@???                                     ;
#############################################################