Qmail allows you to override the databytes control file (which sets the maximum message size accepted) with an environment variable:
http://www.qmail.org/man/man8/qmail-smtpd.html
Qpsmtpd should do the same (and it would allow us to reset $ENV{DATABYTES} in plugins to allow larger messages to or from certain addresses).
Attached is a patch to SMTP.pm.
Thinking about this on similar lines to RELAYCLIENT, the idea of setting an env var doesn't work very well with single-process servers like the SelectServer (which is working v.well for me, fwiw). Would it be better to have a method on the Connection (or some other) class that does a (member || ENV || config) bit of code and includes a setter for the member variable?
Matt.
