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

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Sven Geggus
Dátum:  
Címzett: exim-users
Tárgy: [Exim] ACL: Howto deny email from a list of given hosts/IP-Adresses?
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?

Sven

--
"Those who do not understand Unix are condemned to reinvent it, poorly"
(Henry Spencer)

/me is giggls@ircnet, http://sven.gegg.us/ on the Web