Johan Almqvist wrote:
On Mar 9, 2006, at 08:56, Fred Moyer wrote:
Greetings,
I wrote a plugin to limit the size of messages allowed through
Qpsmtpd. It's crude, waiting for the message to be spooled to disk,
but I didn't see a way of grabbing the body size before the
transaction object was created. Perhaps someone here can enlighten me.
There is support for this in stock qpsmtpd (inherited from qmail-smtpd)
via the file config/databytes :) [see lib/Qpsmtpd/SMTP.pm, sub_data].
Do'h! I dug around the code but couldn't find that feature, I was
wondering why there wasn't a hook to support it. Maybe an empty config
file should be added to config.sample?
Anyway, it was easy enough to put together, not to mention a bit of fun.
-Johan