Hello, everybody!
Can anybody help me with this:
I have a piece of code:
warn !senders = :
set acl_m55 = ${lookup mysql{MYSQL_TESTCLIENT_DOMAIN_AWL}{$value}{0}}
it gives me
>>> check set acl_m55 = ${lookup mysql{SELECT src_domain FROM EXIM.whitelist_domains WHERE src_domain='${lc:$sender_address_domain}'}{$value}{0}}
>>> = rt.ru
now I'd like to use it with regex to block some hosts
just like this:
exim -be '${if match{mailer.smart.ru}{\N\.rt.ru$\N}{1}}' #<-- yields nothing and this is what I want
but without using regex it yeilds 1:
exim -be '${if match{mailer.smart.ru}{rt.ru}{1}}'
1
Is it possible to achieve this kind of behavior with something like this (not working as I want - yields nothing):
warn condition = ${if match{$$sender_host_name}{\N\.$acl_m55$\N}{1}}
I have tried to google something like this but with no success
--
С уважением,
Костырев Александр
системный администратор