How 'bout a test function...
I seem to remember that we had to install tcpwrappers at one point
(oh so long ago, it appears).
And there was a utility to check functionality.
---
suggested syntax changes:
-t - testing mode (requires -e or -d or -i)
-e - email address to check
-d - domain to check
-i - ip address to check
----
Say you run:
milter-greylist -t -e test@...
and the response is:
delayed
or: (note, there could be multiple entries)
not delayed from 66.163.187.78 till 2006-06-26 08:35:10
not delayed from 66.163.187.79 till 2006-06-29 12:35:10
or:
autowhitelisted
or for more beautific info...:
Milter-greylist version: 1.84
Email : test@...
From IP : 66.163.187.78
Valid till : 2006-06-26 08:30:10
Whitelisted: auto
or:
milter-greylist
Version: 1.84
Testing mode
E-mail : test@...
From IP : 66.163.187.78
1st Connection: 2006-06-26 08:28:20
---
Say you run:
milter-greylist -t -d domain.com
and the response is:
all delayed
or: (note, there could be multiple entries)
webmster@... not delayed from 66.163.187.78 till 2006-06-26
08:35:10
user@... not delayed from 66.163.187.79 till 2006-06-29 12:35:10
or:
autowhitelisted
or for more beautific info...:
Milter-greylist version: 1.84
Domain : domain.com
Email : test@...
From IP : 66.163.187.78
Valid till : 2006-06-26 08:30:10
Whitelisted: auto
Email : webmaster@...
From IP : 66.163.187.78
Valid till : 2006-06-26 08:30:10
Whitelisted: auto
or:
milter-greylist
Version: 1.84
Testing mode
Domain : domain.com
E-mail : test@...
From IP : 66.163.187.78
1st Connection: 2006-06-26 08:28:20
E-mail : webmaster@...
From IP : 66.163.187.78
1st Connection: 2006-06-26 08:28:20
---
Say you run:
milter-greylist -t -i 66.163.187.78
and the response is:
delayed
or: (note, there could be multiple entries)
webmaster@... not delayed from 66.163.187.78 till 2006-06-26
08:35:10
user@... not delayed from 66.163.187.78 till 2006-06-29 12:35:10
or:
autowhitelisted
or for more beautific info...:
Milter-greylist version: 1.84
Email : test@...
From IP : 66.163.187.78
Valid till : 2006-06-26 08:30:10
Whitelisted: auto
Email : user@...
From IP : 66.163.187.78
Valid till : 2006-06-26 08:30:10
Whitelisted: auto
or:
milter-greylist
Version: 1.84
Testing mode
E-mail : test@...
From IP : 66.163.187.78
1st Connection: 2006-06-26 08:28:20
... I guess I could just write a perl script to read the db and do
the same thing.. but just a thought.
Bill
On Jun 23, 2006, at 3:33 AM, Ranko Zivojnovic wrote:
> 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
> * ...
>
>
> R.
>
>
>
> ------------------------ Yahoo! Groups Sponsor --------------------
> ~-->
> Something is new at Yahoo! Groups. Check out the enhanced email
> design.
> http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/W4wwlB/TM
> --------------------------------------------------------------------
> ~->
>
>
> Yahoo! Groups Links
>
>
>
>
>
>Message
Re: [milter-greylist] /var/milter-greylist/greylist.db
2006-06-23 by Bill Levering
Attachments
- No local attachments were found for this message.