> ... The other solution (letting mod_smtpd read the whole > thing into a buffer and then passing the buffer) seems way too memory > hungry for me.
I was trying to figure that out too. It seems like a bad idea to read the whole thing into memory because the buffer could easily require several tens of megabytes.
