I have been running spamd from OpenBSD on :
FreeBSD g-noc.net 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 3
09:36:13 UTC 2005 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
for a while now, and I just encountered a small problem.
I want to create a home-made blacklist so that all connexions made from
any of the addresses to my port 25 are tarpitted. However, even if the
address is added in the <spamd> table by spamd-setup, new connexions
still show up as "grey", instead of being spotted as being blacklisted
and then tarpitted.
Here is the relevent configs, followed by evidence of the problem. Hope
someone can point me to a solution !
spamd.conf: (comments trimmed out)
:msg="SPAM. Your address %A is in the spews level 1 database\n\
See http://www.spews.org/ask.cgi?x=%A for more details":\
# Provided by Bob Beck at the University of Alberta
:msg="SPAM. Your address %A appears in a list of known spammers":\
:msg="SPAM. Your address %A appears in my homemade list of known
table <spamd> persist
table <spamd-white> persist
table <spamd-mywhite> persist file "/var/mail/whitelist.txt"
rdr pass inet proto tcp from <spamd-mywhite> to any port smtp ->
127.0.0.1 port smtp
rdr pass inet proto tcp from <spamd> to any port smtp -> 127.0.0.1 port
rdr pass inet proto tcp from !<spamd-white> to any port smtp ->
127.0.0.1 port spamd
(only one single line, no empty line at the end)
spamd-setup output :
[EMAIL PROTECTED] sudo spamd-setup -d
blacklist spews1 14939 entries
Getting http://www.[location hidden]
blacklist beck 17251 entries
blacklist blackl 1 entries
We see here that the IP address is effectively added to the <spamd>
table, and the daemon should know that it is blacklisted :
[EMAIL PROTECTED] sudo pfctl -t spamd -vTshow|grep -A5 188.8.131.52
No ALTQ support in kernel
ALTQ related functions disabled
Cleared: Fri May 26 10:43:24 2006
In/Block: [ Packets: 0 Bytes:
In/Pass: [ Packets: 30 Bytes:
Out/Block: [ Packets: 0 Bytes:
Out/Pass: [ Packets: 30 Bytes:
However, logs show that when an incoming connexion is made, instead of
being tarpitted, it is treated as a normal one and is considered grey :
May 26 10:55:05 g-noc spamd: 184.108.40.206: connected (1/0)
May 26 10:55:06 g-noc spamd: (GREY) 220.127.116.11: <> ->
May 26 10:55:06 g-noc spamd: 18.104.22.168: disconnected after 1
$ spamdb |grep 22.214.171.124
So, my question is : how can I create a list that spamd will know about
and will tarpit every connexion with a source address contained in the
list and with destination port = 25 ? I'm sure I'm very close, but I
have been trying for a while now and can't figure this one out.
Thanks for any help you guys can provide !
email@example.com mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"