Re: [exim] if match condition in exim4

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Cyborg
Data:  
Para: exim-users
Asunto: Re: [exim] if match condition in exim4
Am 29.08.2013 16:44, schrieb Prashanth Katuri:
> 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>

>


RegExpression should be encapsulated with \N .. check the exim.docs for
the exact syntax.