Savoy, Jim wrote:
I see that my auto-whitelist file is now quite large. In just 4 months, it has grown from 0 to
335 megs. Is there a way to pare that file down?

If you're running a sitewide AWL on any kind of scale beyond a few tens of domains, and a couple hundred accounts, you should probably look at putting it in SQL - it's a *lot* easier to maintain there.

Beyond that, I've never seen a real solution better than the trim_whitelist script I adapted from the check_whitelist script way back with SA2.5something. I still use it on a couple of low-volume legacy domain servers to keep their BDB-based AWL from running away on me.

Unfortunately I've also seen a couple of reports on this list that it tends to hog memory and will probably bog down your mail system if you run it on a large AWL file. :/ I don't recall if there was any workaround posted.

Call it from cron regularly (I find daily works well). Note you'll need up to double the disk space occupied by the current file as it completely rewrites the whole thing in order to actually reduce the disk usage - simply deleting entries won't shrink the file.

http://www.deepnet.cx/~kdeugau/spamtools/

Or should I maybe just stop spamd, delete
the file, and restart spamd? (will that do me any harm?).

Well, by deleting the file, you purge all of the history various senders have acquired on your system - it may not do any harm, but it may also cause a few FPs for senders whose first message after the deletion happens to be spammier than usual.

-kgd

Reply via email to