[exim] exim condition isn't matching or result don't assign

Top Pagina
Delete this message
Reply to this message
Auteur: deisler
Datum:  
Aan: exim-users
Onderwerp: [exim] exim condition isn't matching or result don't assign
Hello.
I want from $spf_received get part "(bla-bla)" and assign the result to
another variable.
But match don't work or result don't assign to another variable.
Help me, please.

condition:
---------------------------
|warn    add_header    = $spf_received
             logwrite      = "SPF status: spf_result = $spf_result; 
spf_smtp_comment = $spf_smtp_comment"
             set acl_c_spf_for_dkim = ${if 
match{$spf_received}{\N\(.*\)\N}{$1}}
             logwrite      = $acl_c_spf_for_dkim
-----------------------


debug:
-----------------------
processing "warn"
check add_header = $spf_received
                  = Received-SPF: pass (mail.example.com: domain of 
yandex.ru designates 77.88.61.49 as permitted sender) 
client-ip=77.88.61.49; envelope-from=user@???; 
helo=forward10.mail.yandex.net;
check logwrite = "SPF status: spf_result = $spf_result; spf_smtp_comment 
= $spf_smtp_comment"
                = "SPF status: spf_result = pass; spf_smtp_comment = "
LOG: MAIN
   "SPF status: spf_result = pass; spf_smtp_comment = "
check set acl_c_spf_for_dkim = ${if match{$spf_received}{\N\(.*\)\N}{$1}}
                              =
check logwrite = $acl_c_spf_for_dkim
                =
LOG: MAIN


warn: condition test succeeded in ACL "acl_check_rcpt"
----------------------
|