Re: [exim] Searching Regex From A File

Pàgina inicial
Delete this message
Reply to this message
Autor: Mike Cardwell
Data:  
A: exim-users
Assumpte: Re: [exim] Searching Regex From A File
Mike Cardwell wrote:

> You want to use wildlsearch. Example:
>
> root@haven:/etc/exim4# cat test
> \N^imta\-[0-9]{1,2}\.everyone\.net$\N Everyone.Net
> root@haven:/etc/exim4# exim4 -be
> '${lookup{imta-1.everyone.net}wildlsearch{/etc/exim4/test}{$value}{}}'
> Everyone.Net
> root@haven:/etc/exim4# exim4 -be
> '${lookup{imta-X.everyone.net}wildlsearch{/etc/exim4/test}{$value}{}}'
>
> root@haven:/etc/exim4#


You can probably just leave the skip_greet_grey_spam file as it is, and
do this:

condition =
${lookup{$sender_host_name}wildlsearch{/etc/exim/skip_greet_grey_spam}{yes}{no}}

--
Mike Cardwell - IT Consultant and LAMP developer
Cardwell IT Ltd. (UK Reg'd Company #06920226) http://cardwellit.com/
Technical Blog: https://secure.grepular.com/blog/