On Wed, Aug 09, 2006 at 09:54:37PM +0200, Peter J. Holzer wrote: > > For qpsmtpd-forkserver, you can have one database connection per SMTP > connection (which may be several messages, but is usually only one > message).
That's the way I do it actually. > While you can open a database connection in the pre-connection > hook, many database protocols aren't designed to be used that way and > either won't work at all or produce subtle bugs. I agree. > If setting up a > connection is really a performance bottleneck, you could start a > middle-tier "proxy server" in the pre-connection hook and use some > lightweight protocol to talk with that. I'd be wary of the added > complexity, though. > I did some tests with my current setup and performances seems ok :) Thanks for your help.
