Re: [Exim] Basic Domain e-mail address blocking

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Email-Lists SureStorm.com
Date:  
À: Wakko Warner
CC: Russell King, exim-users
Sujet: Re: [Exim] Basic Domain e-mail address blocking
If you do not need a database i have the solution because i have set up
this too reading a file. The config is this

----------- exim.conf -------------

...
acl_smtp_mail = acl_check_mail
...

######################################################################
#                       ACL CONFIGURATION                            #
#         Specifies access control lists for incoming SMTP mail      #
######################################################################


begin acl

acl_check_mail:

  deny    message       = Blacklisted for spamming ($sender_host_address)
             senders            =
lsearch;/etc/exim/spammeraddrs:*@lsearch;/etc/exim/spammeraddrs
  accept


...
(rest of acl block and rest of file continues here)

-------------------- /etc/exim/spammeraddrs ----------------------------

#
# This file lists spammer that are not allowed to relay mail to
surestorm.com
#
gmx.de
privat.dk
whoever.com
zwallet.com
netzero.com
userfake@???

----------------------------------------------------------------------------------


This is all that you need.

If you need more help, just drop me an email.

Best regards,

jonathan



Wakko Warner wrote:

>>acl_smtp_rcpt = check_domains
>>
>>And then in the ACL section:
>>
>>deny hosts = dbm;/etc/spam
>>         message = Domain name not permitted.

>>
>>All gets rejected... I know I'm probably overlooking something obvious being very new to Exim and all..
>>Any pointers would be great.
>>
>>
>
>I don't see how all gets rejected.  Looks like you want:
>deny senders = dbm*@;/etc/spam
>     mesage = ...

>
>if you block a domain, you do *@domain.com, or a single spammer you do
>spammer@??? or ispamyou@???
>
>As someone else suggested:
>deny senders = @@dbm*;/etc/spam
>     mesage = ...

>
>Then for the above example, you use:
>domain.com    *
>somewhere.com    spammer:ispamyou

>
>I prefer this way because you can block say 100 users at many domains and
>exim will lookup by domain and then check for the sender in the list.
>Blocking localparts for all domains like:
>*    randomspammer

>
>Will block randomspammer@??? and randomspammer@??? ...
>
>--
> Lab tests show that use of micro$oft causes cancer in lab animals
>
>--
>
>## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
>
>
>