Re: [Exim] lsearch in system-filter

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Markus Orlich
Dátum:  
Címzett: exim-users
Tárgy: Re: [Exim] lsearch in system-filter
On 08-03, Markus Orlich (markus@???) wrote:
> --
> Hallo
>
> [...]
>
> Now my question:
> Is it possible to use lsearch in the system-filter for matching a
> host- or domain-name given in the file "list"?


You can forget my question. I've found a possible solution with
-> if ${lookup{${domain:$h_from:}}lsearch{/usr/exim/list}{yes}{no}} is yes
-> then    fail    "Your host is blacklisted through our internal \
->                  list.\nIf you have questions about, feel free \
->                  to ask <abuse@???>"
->         finish
-> endif


which matches a domain in a flat file named "list" like
-> sexe.com
-> erotikxpress.com
-> [...]

Markus

--
There is no spam like no spam..