[exim] match in exim 4.77

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Nikita Koshikov
Date:  
À: exim-users
Sujet: [exim] match in exim 4.77
Hello list,

I have a question regarding next exim 4.77 update and "match" clutching.
Reading Phil's announce letter it's a bit unclear to me what will work and how correctly remake current configs if it won't work.

Few examples:

1)
{match_ip{$sender_host_address}{iplsearch;EXIM_ROOT/local/bad_auth_hosts}}

Lookups are now not allowed, so should I define new hostlist and make iplsearch there or maybe exist some better way?
>{match_ip{$sender_host_address}{+new_hostlist}} ?


2)
{match_ip{$sender_helo_name}{@[]}}
@[] - if I'm correct - this is internal variable to exim - will it be allowed ?

3)
${if !match{$sender_helo_name}{\\.}}
This should work - pure regex, Am I right ?

4)
Final one
${if forany\
    {<,\
       ${lookup{$sender_host_address}iplsearch{EXIM_ROOT/local/allow_ip_senders}}\
    }\
    {match{${lc:$sender_address}}{$item}}\
}


allow_ip_senders have format like this:
IP        Sender
1.1.1.1        trusted@???, services-.*@???


What is the right way to make such functionality in upcoming exim release?