RE: [Exim] help required : custom black lists

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Thomas Kinghorn
Fecha:  
A: 'Nico Erfurth'
Cc: Exim-Users (E-mail)
Asunto: RE: [Exim] help required : custom black lists
Thanks Nico.

Again, you saved my butt.

Regards,

Tom Kinghorn



-----Original Message-----
From: Nico Erfurth [mailto:masta@perlgolf.de]
Sent: 10 January 2003 01:49
To: Thomas Kinghorn
Cc: Exim-Users (E-mail)
Subject: Re: [Exim] help required : custom black lists


Thomas Kinghorn wrote:
> Good day.
>
> Is it possible to create a custom blacklist?
>
> I keep getting spammed from jhgpdrdrmniog@??? but
> the custom rule i have set up blocks the entire domain, not just the user.
>
> Any help would be appreciated.
>
> Rules below:
>
> <snip>
>
> acl_check_rcpt:
>   accept  hosts = :
>   deny    local_parts   = ^.*[@%!/|] : ^\\.

>
>   accept  local_parts   = postmaster
>           domains       = +local_domains
>   deny message = rejected because $sender_host_address is in a custom

black
> list at company name (company number)
> deny hosts =
> $lsearch{/usr/exim/custom_blacklist/custom_blacklist/$domain}}

    ^misses {


This blocks a host, not the sender, and the syntax is incorrect, use

If you want block based on hosts, use
deny message = rejected because of blabla
      hosts   = \
lsearch;/usr/exim/custom_blacklist/custom_blacklist/$domain


if you want to block by sender, use

deny message = rejected because of blabla
      senders = \
lsearch;/usr/exim/custom_blacklist/custom_blacklist/$domain


or

lsearch*@;/usr/exim/custom_blacklist/custom_blacklist/$domain
if you later want to allow lines like

*@domain.tld: blocked because X


ciao