Re: [Exim] help required : custom black lists

Top Page
Delete this message
Reply to this message
Author: Nico Erfurth
Date:  
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