Hi,
Am trying to get spamd greylisting to work.
(I'm using OpenBSD 4.0 Stable on an i386 machine.)
Nothing is coming through. When I check maillog, I see nothing except
my email client logging on to check for email
var/log/messages says:
spamd[12555]: listening for incoming connections
pflog shows just rule:
rdr pass log inet proto tcp from <spamd> to any port smtp -> 127.0.0.1
port spamd
being the only one being used.
/var/db/spamd has 0 bytes and is never updated.
it's permissions are:
-rw-r--r-- 1 _spamd wheel 0 Jan 29 00:53 spamd
I know I must be missing something pretty simple, but I'm just
not seeing it.
I hope some of you can point me in the right direction, and
that I've provided enough info.
I've also googled for the last day and a half, and haven't
run across.
I just want to get something running good enough to at least
let my email server pass legit email, while I learn spamd.
Thanks, Ed
My rc.conf says:
spamd_flags=YES
spamd_grey=YES
spamlogd_flags="-v -g -G7:4:864"
my pf.conf says:
ext_if="sk0"
table <spamd> persist
table <spamd-white> persist
rdr pass log inet proto tcp from <spamd> to any port smtp -> 127.0.0.1
port spamd
rdr pass log inet proto tcp from !<spamd-white> to any port smtp ->
127.0.0.1 port spamd
pass in log on $ext_if proto tcp to ($ext_if) port smtp keep state
pass out log on $ext_if proto tcp from ($ext_if) to port smtp keep
state
my spamd.conf says:
all:\
:spews1:china:korea:
# Mirrored from http://www.spews.org/spews_list_level1.txt
spews1:\
:black:\
: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":\
:method=http:\
:file=www.openbsd.org/spamd/spews_list_level1.txt.gz:
# Mirrored from http://www.spews.org/spews_list_level2.txt
spews2:\
:black:\
:msg="SPAM. Your address %A is in the spews level 2 database\n\
See http://www.spews.org/ask.cgi?x=%A for more details":\
:method=http:\
:file=www.openbsd.org/spamd/spews_list_level2.txt.gz:
# Mirrored from http://www.okean.com/chinacidr.txt
china:\
:black:\
:msg="SPAM. Your address %A appears to be from China\n\
See http://www.okean.com/asianspamblocks.html for more
details":\
:method=http:\
:file=www.openbsd.org/spamd/chinacidr.txt.gz:
# Mirrored from http://www.okean.com/koreacidr.txt
korea:\
:black:\
:msg="SPAM. Your address %A appears to be from Korea\n\
See http://www.okean.com/asianspamblocks.html for more
details":\
:method=http:\
:file=www.openbsd.org/spamd/koreacidr.txt.gz:
#relaydb-black:\
# :black:\
# :msg="SPAM. Your address %A is in my relaydb list.":\
# :method=exec:\
# :file=/usr/local/bin/relaydb -4lb:
#relaydb-white:\
# :white:\
# :method=exec:\
# :file=/usr/local/bin/relaydb -4lw:
# Whitelists are done like this, and must be added to "all" after each
# blacklist from which you want the addresses in the whitelist removed.
#
#whitelist:\
# :white:\
# :method=file:\
# :file=/var/db/whitelist.txt:
/var/db/spamd permissions:
-rw-r--r-- 1 _spamd wheel 0 Jan 29 00:53 spamd
pflog contains just a list of entries logged from rule
rdr pass log inet proto tcp from <spamd> to any port smtp -> 127.0.0.1
port spamd
that look like this:
Jan 29 00:25:30.133110 rule 1/(match) rdr in on sk0: 216.xx.xx.xx.2325 >
127.0.0.1.8025: S 3946324822:3946324822(0) win 65535 <mss 1440,nop,nop,sackOK>
(DF)
_______________________________________________
Openbsd-newbies mailing list
[email protected]
http://mailman.theapt.org/listinfo/openbsd-newbies