Discussion:
Uribl for myself
u***@deiszner.de
2008-10-02 20:18:30 UTC
Permalink
Hello,

i want to start my own local uribl.

Spamassassin should read a raw-textfile for example /home/spamblack.txt
where some url's are in

wunschurlaub.biz
euromillion.de

and another......

If match one of these entries, the Mail should marked with X Points.

How do i implement this?

Thx

Sebastian
Kris Deugau
2008-10-02 21:12:13 UTC
Permalink
Post by u***@deiszner.de
Hello,
i want to start my own local uribl.
Spamassassin should read a raw-textfile for example /home/spamblack.txt
where some url's are in
wunschurlaub.biz
euromillion.de
and another......
If match one of these entries, the Mail should marked with X Points.
How do i implement this?
Mmm. To literally match URIs against a local flat text file, you'll
need to write a plugin that does just that.

However, it's probably easier to do one of two things:

1) Create a script that takes the flatfile and writes out a SpamAssassin
config file with URI rules for each URI in a suitable location

2) Create a script to stuff the URIs into a DNS zone of your own, and
duplicate a suitable configuration fragment from eg URIBL or SURBL.

I've done both of these; the first for a while with SA2.5x, the second
starting with SA2.63 shortly after a patch appeared to look up URIs in
DNS instead of relying on great long lists of URI rules.

-kgd
mouss
2008-10-03 08:20:57 UTC
Permalink
Post by Kris Deugau
Post by u***@deiszner.de
Hello,
i want to start my own local uribl.
Spamassassin should read a raw-textfile for example
/home/spamblack.txt where some url's are in
wunschurlaub.biz
euromillion.de
and another......
If match one of these entries, the Mail should marked with X Points.
How do i implement this?
Mmm. To literally match URIs against a local flat text file, you'll
need to write a plugin that does just that.
maybe by modifying the accessdb plugin. I didn't check this though.
Post by Kris Deugau
1) Create a script that takes the flatfile and writes out a SpamAssassin
config file with URI rules for each URI in a suitable location
2) Create a script to stuff the URIs into a DNS zone of your own, and
duplicate a suitable configuration fragment from eg URIBL or SURBL.
and here, rbldnsd may be a good choice if the list becomes large.
Post by Kris Deugau
I've done both of these; the first for a while with SA2.5x, the second
starting with SA2.63 shortly after a patch appeared to look up URIs in
DNS instead of relying on great long lists of URI rules.
-kgd
Yet Another Ninja
2008-10-02 21:08:20 UTC
Permalink
Post by u***@deiszner.de
Hello,
i want to start my own local uribl.
Spamassassin should read a raw-textfile for example /home/spamblack.txt
where some url's are in
wunschurlaub.biz
euromillion.de
and another......
If match one of these entries, the Mail should marked with X Points.
How do i implement this?
Using rbldnsd you can run a full featured RBL
http://www.corpit.ru/mjt/rbldnsd.html

or if its only a few URIs its simpler and cheaper to use a couple of uri
rules

Continue reading on narkive:
Loading...