Re: [exim] ACL with condition match

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Wakko Warner
Date:  
À: Jim Pazarena
CC: exim-users
Sujet: Re: [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.


Or virus infected machines. Are you sure they HELO as that, or is it just
the hostname?

> 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}}


If the hostname (like adsl-###-###-###-###.ameritech.com), then try this:
    hosts = ^adsl.*\.ameritech\.com$



--
Lab tests show that use of micro$oft causes cancer in lab animals