On Wed, Jul 01, 2015 at 11:01:18AM +0200, Markus Rosjat wrote: > Hi there, > > just a simple question, is there a way to seperate the spamdb logs into logs > for white-, grey- and blacklist entries? > It would make the lookup make much easier when something goes wrong :) >
I just use: alias G='spamdb|grep SP;spamdb|grep PED;spamdb|grep G' when I want to peek at what is NOT WHITE on the log. This lets me quickly whitelist something new, like I just signed up or registered for a site. No way for me to know its IP address beforehand. You can write a very small perl or shell program to scan the database and append to your new logs. Keep this script running in the background. Have it regularly run spamdb, split off each WHITE, GREY, BLACK line. Check your new logfiles to see if any of these lines already exists, if not, append the new entry to appropriate log. There may also be other ways to accomplish this, see what others say. Chris Bennett

