From: "Ranko Zivojnovic" <ranko@...>
To: <milter-greylist@yahoogroups.com>
Sent: Friday, June 23, 2006 5:33 AM
Subject: Re: [milter-greylist] /var/milter-greylist/greylist.db
> On Fri, 2006-06-23 at 11:39 +0200, Michael Menge wrote:
> > >
> > > If you want to alter the database, IMO, the right way is a
command
> > line
> > > tool that would talk to the daemon through a Unix socket
> > >
> >
> > This tool could also be used to dump the db and stop the milter.
>
> I have this already in progress, though not done yet...
>
> It would be useful for me to know as to what other commands would be
> useful to have.
>
> Things I have in mind currently are:
> * Ping daemon to see if alive or stuck
> * Reconfigure
> * Force db dump
> * Clean shutdown of daemon
> * Increase/decrease debugging level
> * Stats, and these could be the following:
> * Current thread count
> * Total number of connections to daemon
> * Greylisted responses count
> * Whitelisted responses count
> * Greylisted entries
> * Whitelisted entries
> * Expired count
> * ...
>
Dunno if this is worthwhile to most, but if the logs, after rereading
a modified config file, would report when a bad syntax has been
entered would be helpful. Twice recently, unbeknownst to me, I made a
typo, but the milter kept on going but did not tell me about the bad
syntax. Apparently it reads down to the mistake, and stops and loads
the defaults instead. The first time, I noticed in the maillog that
the delay had changed to 30 mins instead of my setting of 8 mins.
Plus, I got some complaints from users that they were being delayed by
the greylist. I stopped & restarted the milter and then saw the syntax
error reported nicely or me on line #209. Corrected it anf all was
fine again.
Then, when the recent thread showed up and redirecting the milter GL
logs to a separate filter, I thought I would be more likely to spot
any other such mistake. Not so. I had just happened to make another
mistake with this new log setup and still didn't see the goof until I
completely stopped/restarted again and saw the error.
I know the best solution is not to make mistakes, but haste does make
waste at times. Am I missing the error somehow already by it's
re-reading of the config, or do I need to stop/restart to guarantee I
see any errors made?
A humble user & Sys Admin....