Although you sound as though you have done your research I can't help but wonder if you are optimising the right thing at the right time.
Sending, transferring, delivering and receiving an email is a complex process generally involving lots of network traffic.
Do you know how quickly qmail will get email out of your system? Not necessarily to boxes located on the same LAN, but boxes located distantly on the Internet?
I would be very surprised if your Net::SMTP script or open( MAIL, "|/foo/qmail-foo" ) script was unable to get messages into the system as fast as qmail could get them out.
You don't really need to worry about efficiency as long as you can keep up with qmail's sending.
Have I got the wrong end of the stick? Do you have some numbers? Could you please elaborate?
"Premature optimisation is the root of all evil" |