Re: [exim] Blocking names in e-mailaddresses

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Peter Velan
Date:  
À: exim-users
Sujet: Re: [exim] Blocking names in e-mailaddresses
am 2006-03-29 17:17 schrieb Jens Strohschnitter:
> okay. I have upgraded my 4.20 on a testmachine to 4.60. So nwildlsearch
> works. But a message via other users than the blocked ones that contained
> in my blacklist were also blocked. Any mail I sent to the host, from different
> users were blocked.
>
> My exim.conf-entry looks like:
> acl_smtp_data = acl_check_data
> .
> .
> .
> acl_check_data:
>
> deny    message = $acl_m1 "${address:$h_From:}"
>         set acl_m1 = ${lookup {${address:$h_From:}} nwildlsearch{/tmp/blacklist}}
>         condition = ${if eq {$acl_m1} {} {no} {yes} }

>
>
> The log reports:
> 2006-03-29 17:21:37 1FOcUL-0000tn-KP H=XXXXX (XXXXXX) [1.1.1.1] F=<sender@???> rejected after DATA


$h_From: contains the full header-line,
e.g.: "From: support blabla <exim-ml@???>"

${address:$h_From:} contains the extracted e-mail address
e.g.: "exim-ml@???"

if you want to filter out the word "support" from the variable $h_From:,
then you should not use the address extractor "${address:$h_From:}"

Write your config stanza as:

deny message = $acl_m1
set acl_m1 = ${lookup {$h_From:} nwildlsearch{/tmp/blacklist} }
condition = ${if eq {$acl_m1} {} {no} {yes} }

> The blacklist looks like:
> support : Blocked mails from support


this should be ok

Peter