Greylisting is an interesting approach to spam. I first started using it in the form of OpenBSD’s pf and spamd tools back in 2007. That said, I now let Google handle my incoming email.
Today I was trying to get spamd-setup to run:
spamd-setup: Can't connect to spamd on port 8026: Connection refused
I couldn’t figure that one out. But eventually I stumbled upon it…
The problem was spamlogd. It wasn’t running. So I tried starting it:
$ sudo /usr/local/etc/rc.d/obspamlogd start Starting obspamlogd. spamlogd: couldn't initialize pcap: Device not configured
The solution: load the missing kernel module: pflog
$ kldstat Id Refs Address Size Name 1 5 0xffffffff80200000 11cd9b0 kernel 2 1 0xffffffff81612000 2a134 pf.ko 3 1 0xffffffff8163d000 1582 fdescfs.ko
Now, load the missing kernel module:
$ sudo kldload pflog
And now verify that it’s loaded:
$ kldstat Id Refs Address Size Name 1 7 0xffffffff80200000 11cd9b0 kernel 2 2 0xffffffff81612000 2a134 pf.ko 3 1 0xffffffff8163d000 1582 fdescfs.ko 4 1 0xffffffff8163f000 9e1 pflog.ko
and now we can start spamdlogd:
$ sudo /usr/local/etc/rc.d/obspamlogd gd start Starting obspamlogd.
And confirm that it is still running:
$ ps auwx | grep spamlogd _spamd 90295 0.0 0.0 18144 2316 ?? Ss 10:00AM 0:00.01 /usr/local/libexec/spamlogd
OK. Now let’s get back to the original problem:
$ sudo /usr/local/sbin/spamd-setup Password: $
Ahh good! Everything is now working.