[exim] if match condition in exim4

Góra strony
Delete this message
Reply to this message
Autor: Prashanth Katuri
Data:  
Dla: Exim-users
Temat: [exim] if match condition in exim4
Hi,

I have been trying to work on the below if match condition and getting below error.

Below is the condition:

slb_directory_mail_routes:
  driver = manualroute
  transport = remote_smtp
  domains = directory-mail.slb.com
  route_list =  * "${if match {$sender_host_name}{mail\\.slb\\.com|(gb0135|fea)mta\\d\{2\}\\..*\\..*\\.slb\\.com|usxsl05(0|1|2|3)\\.slb\\.atosorigin-asp\\.com|nl0105ex
c\\d\{2\}\\.eur\\.slb\\.com|sx00(2|3|4|6)\\.ddc-nl0105\\.slb\\.com|nl0230mbx\\d\{2\}n(1|2)\\.dir\\.slb\\.com}\
                    # We can trust that it has been scanned and send it to directory-mail.slb.com
                    {directory-mail.slb.com}\
                    # If the message hasn't been scanned send it to the relay
                    {gateway.mail.slb.com}\
                   }" bydns


I am getting below error.

pkaturi@gb0882ldaptst00 >exim -bt test687@???
ldap@??? cannot be resolved at this time: slb_directory_mail_routes router: failed to expand "${if match {$sender_host_name}{mail\.slb\.com|(gb0135|fea)mta\d{2}\..*\..*\.slb\.com|usxsl05(0|1|2|3)\.slb\.atosorigin-asp\.com|nl0105exc\d{2}\.eur\.slb\.com|sx00(2|3|4|6)\.ddc-nl0105\.slb\.com|nl0230mbx\d{2}n(1|2)\.dir\.slb\.com}{directory-mail.slb.com}{gateway.mail.slb.com}}": missing or misplaced { or }
    <-- test687@???<mailto:test687@slb.com>


Can you shed me some light as I don't see any issues with this condition on exim-3.36, but now we are on exim-4.80.1.


Thanks,
Prashanth Katuri
Directory services admin
Schlumberger
Desk: 713 513 1198
Cell: 682 888 2474