[exim] ACL deny senders

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: SW & Work SaS
Dátum:  
Címzett: exim-users
Tárgy: [exim] ACL deny senders
Hello

Thanks to your help I've done some step with the rules I'd like to setup

in this case I would like to deny messages coming from certain users or
certain domains
but, as the users/domains can change a little, just keeping a base I would
like to see if there's a match with part of the string

I came to this


  deny
    condition =
${lookup{$sender_address}wildlsearch{/etc/myaclsenderdeny}{yes}{no}}
    message = TO $header_to is unwelcome_01 - SUBJECT: $header_subject



myaclsenderdny is a text file that contains the strings to look for in the
$sender_address that, if I've understood, is the same as $header_from (from
field)
the strings are contained one per row
for example

...
sample
mytest
firstpart@
@second
bottom.com
...

if I understood well wildlsearch does the search and it is not case
sensitive to lowercase or uppercase will match the same
if the one of the strings contained into the file matches part of
$sender_address thre should be the deny.

Well, I say "should" because here come my email and help request
I've tried to put the three lines under acl_smtp_rcpt and acl_smtp_data but
no luck, the email is sent anyway.

Surely I'm doing something wrong,
hope someone can help

TIA
Flaviano