Re: [exim] 4xx for mail-abuse.org rbl

Top Page
Delete this message
Reply to this message
Author: exim-users
Date:  
To: Randy Bush
CC: exim users
Subject: Re: [exim] 4xx for mail-abuse.org rbl
Randy Bush schrieb:

> i am trying to do something like
>
>   # Reject messages from senders listed in these DNSBLs
>   deny    message       = reject mail from dialup
>           dnslists      = dialups.mail-abuse.org

>
>   # Reject messages from senders listed in these DNSBLs
>   deny    message       = reject mail from rbl blackholed sites
>           dnslists      = blackholes.mail-abuse.org

>
>   # Warn on messages from senders listed in these DNSBLs
>   deny    message       = reject mail from qil spam sources
>           dnslists      = qil.mail-abuse.org/warn

>
> but
>
>   o there is likely something simpler and more commonly done.  and
>     i dislike being off the beaten track for no good reason.  so
>     apply clue bat, please


Why don't you use the statements given in the default configuration
file? No need to reinvent the wheel.


#############################################################################
# There are no checks on DNS "black" lists because the domains that
# contain these lists are changing all the time. However, here are two
# examples of how you could get Exim to perform a DNS black list
# lookup at this point. The first one denies, while the second just
# warns.
#
# deny    message       = rejected because $sender_host_address is \
#                         in  a black list at \
#                         $dnslist_domain\n$dnslist_text
#         dnslists      = black.list.example
#
# warn    message       = X-Warning: $sender_host_address is in a \
#                         black list at $dnslist_domain
#         log_message   = found in $dnslist_domain
#         dnslists      = black.list.example
#############################################################################


>
>   o in the last one, qil.mail-abuse.org, i want to generate a
>     4xx, not a 5xx.  i suspect i am not accomplishing this with
>     the /warn, but i could be incorrect.  hit me again, please.


If you want to give a temporary error, then you have to use the "defer"
instead of the "deny" statement. Check the spec for more info on how to
write your own ACL rules.

BTW: You have to be a paying customer to be able to access the MAPS lists.

HTH,
Patrick