Jakob Hirsch wrote:


1. there is no need to nest multiple "and" conditions

You missed a subtlety in the OPs condition -- the inner and has {no}{yes}, implying that he acutally intended a nand between those two conditions, not an and. So:

condition = ${if and \
              { \
                { eq {$local_part}{test} } \
                { !eq {$interface_port}{2525} } \
                { !and \
                  { \
                    { eq {$sender_host_name}{myhost.foobar.de} }\
                    { match {$header_content-type:}{\N^text/plain.*\N}}\
                  } \
                } \
              }{yes}{no} \
            }

should work for you. If that still fails (which would be a genuine exim bug), try replacing !and{{eq...}{match...}} with or{{!eq...}{!match...}}.

- Marc

--
## List details at http://www.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to