: Depending on which flavour of qpsmtpd you're running, this (register()) : is probably not be the right place for opening connections. The connection : would be shared by all sub processes of qpsmtpd and is likely to trash : the data. The connect hook is guaranteed to happen after any fork()s. : : Away from that I like the idea (and no, there's currently no hook for this).
The forks occur when an smtp connect happens, right? I was envisioning having the rrd class opened in the register, written to by each fork when it gets to the hook_queue_pre / hook_deny phase (protected by a flock), and then the whole thing closed down when qpsmtpd shuts down. In the case I'm working with the shutdown isn't a big deal since the rrd connection itself is done through a pipe but the shutdown method would be nice to sync out remaining data in the queue. At the momnet I have a few programs that currently do all this but was trying to encapsulate the whole scheme into a plugin to make it easier to manage -- Matthew Harrell Every morning is the dawn of a Bit Twiddlers, Inc. new error. [EMAIL PROTECTED]
