Re: [Exim] ACL: Howto deny email from a list of given hosts/…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Nico Erfurth
Dátum:  
Címzett: Sven Geggus
CC: exim-users
Tárgy: Re: [Exim] ACL: Howto deny email from a list of given hosts/IP-Adresses?
Sven Geggus wrote:
> Hi there,
>
> I'm using an ACL like this:
>
> deny    message = Keep your SPAM
>             hosts = ${if exists{/etc/exim/spamserver} \
>             {lsearch*@;/etc/exim/spamserver}}

>
> Unfortunately this does not work as expected :(
>
> One entry in /etc/exim/spamserver is 217.237.187.10 which is not beeing
> blocked when running exim -bh 217.237.187.10:
>
>
>>>>check hosts = ${if exists{/etc/exim/spamserver} {lsearch*@;/etc/exim/spamserver}}
>>>>host in "lsearch*@;/etc/exim/spamserver"? no (end of list)
>>>>deny: condition test failed
>
>
> This does wok when a hostname is entered, but often Spammers just use
> unresolvable Addresses or like in my example adddresses with lots of
> different revverse Names.
>
> Any hints?


why do you use *@? have you ever seen a hostname like hostname@????

it shuld be lsearch;/etc/exim/spamserver, or if you want wildcard
domains, partial-lsearch*;/etc/exim/spamserver

Ohhh, and please try to keep your Newsgroup-header internal only....

Nico