hook_helo_parse working?

2008-03-07 Thread crayon
I'm trying to write a plugin that uses hook_helo_parse but am not having any success. Some debugging shows my function gets called, it returns a CODE ref, but the ref'd sub never gets called here's a simple example: sub hook_helo_parse { my $self = shift; my $ref = \parser;

new plugin: check_system_load

2008-03-07 Thread Steve Kemp
This seems like rather an obvious idea: Reject new connections if the system load is too high. But surprisingly there seem to be no plugins which I could find implementing it. So here's mine: http://mail-scanning.com/qpsmtpd/system-load This reads /etc/qpsmtpd/max_system_load,

Re: new plugin: check_system_load

2008-03-07 Thread Peter Eisch
On 3/7/08 3:39 PM, Steve Kemp [EMAIL PROTECTED] wrote: This seems like rather an obvious idea: Reject new connections if the system load is too high. But surprisingly there seem to be no plugins which I could find implementing it. I had posted this one to the list back a couple years

Re: new plugin: check_system_load

2008-03-07 Thread Matt Sergeant
Note - you'd be better off using Linux::SysInfo (on Linux, obviously) to save the backtick call. On 7-Mar-08, at 4:39 PM, Steve Kemp wrote: This seems like rather an obvious idea: Reject new connections if the system load is too high. But surprisingly there seem to be no plugins which

Re: new plugin: check_system_load

2008-03-07 Thread Steve Kemp
On Fri Mar 07, 2008 at 17:48:22 -0500, Matt Sergeant wrote: Note - you'd be better off using Linux::SysInfo (on Linux, obviously) to save the backtick call. Noted. I'll update the code to use that where possible. (Right now I figured portability would be a good thing - although I realise