[rbldnsd] stand alone rbldnsd server, no bind
Michael Tokarev
mjt at tls.msk.ru
Mon Sep 13 21:10:36 MSD 2004
Scot W wrote:
> --- Michael Tokarev <mjt at tls.msk.ru> wrote:
>
[]
>>First of all, why do you think you (her?) need a box,
>>or even rbldnsd? If you're using CBL (as you mentioned
>>below), or DSBL, or whatever, it should be ok to use any
>>similar blocklist as described, by performing direct
>>queries to official nameservers, without setting up
>>your own "caching" rbldnsd.
>
> Originally I set her mail server to query spamhaus,
> several of the sorbs lists and cbl. This was catching
> most, but several very abusive addresses (Ameritech to
> name one) were not listed but sending a lot of viruses
> and spam. I thought rbldnsd would allow her to "fine
> tune" what got stopped without having to pay for
> Postini (as we use).
Depending on the MTA, it may be better/simpler/whatever
to use local block/whitelists for that. You don't
usually need a nameserver for the task. Most MTAs
have an ability to enter a list of IP addresses or
domains or whatever from which you don't want to
accept mail (or the opposite), and on Win platform,
that's usually done with a GUI.
[]
>>>\
>>> -b127.0.0.1/53 \
>>> maps.nonprofit.local:ip4set:blocked"
>>>
>>>
>>>File in /usr/local/etc/rbldnsd is named blocked.txt
>>
>>"blocked" or "blocked.txt" ? ;)
>
> File is named "blocked.txt. Went with that naming
> convention since the file rsynced from cbl is
> list.txt. Did not know what the last entry should be.
It's the file name, exactly. If you put your data into
"blocked.txt", specify "blocked.txt" in rbldnsd command
line. If the file is named "blocked", specify "blocked"
in command line. Simple as that. I just noted you're
inconsistent in your examples.
[]
>>>rbldnsd: file blocked.txt(2): invalid or
>>
>>unrecognized special entry
>>
>>Hmm. what's the *exact* content of line #2?
>
> Copied and pasted Lines 1-10:
> :127.0.0.2:BLOCKED for E-Mail abuse. See Open RBL or
> SenderBase to see what RBLs have your IP listed.
>
> #$TTL 3600
>
> 12.0.0.0-12.23.3.3
>
> 12.23.3.5-12.32.152.19
>
> 12.25.164.64-12.25.164.127
>
> 12.32.152.21-12.36.12.38
>
> 12.32.43.128-12.32.43.255
>
> 12.36.12.40-12.39.3.209
>
> 12.39.3.211-12.96.247.24
>
> 12.96.247.40-12.144.148.53
Oh-uh. That's difficult to see where's the problem
here - your mail client somehow garbles the content
(and forces too short lines by word-wrapping), and
as you see, there's extra empty line after each real
line in the data. So I suspect there are <cr>s out
there, aka DOS (or Win) line-terminators. Somehow
I haven't thought about such a possibility before, --
to make rbldnsd recognize this line terminators as
well as traditional unix one, -- and noone come
across this problem before too.
[]
> Guess I don't know. What does gedit put in?
I never used and even seen gedit, sorry. Can
you edit other config files with it? Does it
have some "line terminator" indicator somewhere?
I dunno. For example, vim displays "[dos]" at
the bottom line if the file's line terminator
is <cr><lf>.
[]
But before going further, I still suggest you to
think whenever you really need a nameserver, and
don't have any more easy way to accomplish the
task.
Note also that whomever will manage the list
will need to add/remove entries to/from it
somehow, so your friend will need to have
account on the box or you will have to
create some webinterface...
/mjt
More information about the rbldnsd
mailing list