Re: [Exim] Blocking senders

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Nico Erfurth
Ημερομηνία:  
Προς: Peter Ang
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] Blocking senders
Peter Ang wrote:
> I am using Exim 4.14 and have tried using the following statement in my
> ACLs:
>
>   deny    sender_domains = /etc/exim/abuse/sender_domains
>           senders = /etc/exim/abuse/sender

>
> The files are just a list of domains and sender addresses. I have tried
> putting the lines under "acl_check_rcpt" and "acl_check_data" but both
> don't work.


It will only work when you've listed the domain AND the sender, use one
of the following instead:

require message = Go away, or I'll replace you with a very small \
                   shellscript
         !sender_domains = /etc/exim/abuse/sender_domains
         !senders = /etc/exim/abuse/sender


---------------------------------------------------------------------
deny message = Your domain is blackliste
      sender_domains = /etc/exim/abuse/sender_domains


deny message = Your address is blacklisted
      senders = /etc/exim/abuse/sender


---------------------------------------------------------------------
(Don't know for sure whatever this one works or not, but it should)

deny message = Your domain or address is blacklisted
      senders = *@/etc/exim/abuse/sender_domains:/etc/exim/abuse/sender


---------------------------------------------------------------------
And the last one:
Put everything together in one file, make it a dbm/cdb/whatever file,
use *@domain.tld for the blocked domains and use the following ACL

deny message = Your domain or address is blacklisted
      senders = cdb*@;/etc/exim/abuse/senders.cdb


Ok, this should be enough option ;) (TMTOWTDI)

Nico