[Exim] Condition with and

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Jan Suchanek
Date:  
À: exim-users
Sujet: [Exim] Condition with and
Hello,

I have a little problem with using a condition with "and". I have
following condition:

condition =     "${if and {\
                                 {!eq\
                                         {{${lookup
pgsql{SQL_REJECT_LIST}}}{lc:$sender_address}}\
                                 }\
                                 {eq\
                                         {{${lookup
pgsql{IS_A_LIST}}}{lc:$local_part}}\
                                 }\
                         }{true}{false}}"



The idea is that the transport is called by this router when both
conditions are true. When I try the condition with some test cases I can
see (with -d) that in some cases one,both or none of the lookups fail
but the router is called every time.

Any ideas what I am doing wrong (or a hint how I can debug the condition
any further)?

Thanks.

Greetings, Jan Suchanek

--
Jan Suchanek,
Universitaet Ulm,
Abteilung Medieninformatik,
Fakultaet fuer Informatik,

89069 Ulm, Germany
Raum: O27/3302

Tel.: +49/(0)731-5031312, Fax: +49/(0)731-5031302