[exim] ACL with condition match

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Jim Pazarena
Date:  
À: exim-users
Sujet: [exim] ACL with condition match
I am unclear as to the matching performed in my ACL condition.
I want to reject any incoming which have a $sender_helo_name
that "contains"    *adsl*ameritech, which invariably are spammers
with their direct adsl connections whom are not going thru their
ISP's mail server.


I wrote:
deny message = We don't want your spam! Go away!
log_message = adsl-ameritech reject
condition = \
   ${if and {   \
     {match{$lc:$sender_helo_name}}{adsl}}  \
     {match{$lc:$sender_helo_name}}{ameritech}} \
     }{true}{false}}


do I need to have a match of {*adsl*} {*ameritech*} ?

this regex stuff confuses me.

or can I create simply:
${if {match{$lc:$sender_helo_name}{*adsl*ameritech*}}{true}{false}}

thanks!
Jim