On Tue, Feb 02, 1999 at 01:19:30PM +0000, Lara Marques wrote:
> I would like to know if it is possible to accept mail with a
> certain size not higher then a predefined limit for individual
> users. And where can I set the limit of mail for all users if
> the above is not possible.
>
> I am assuming that the "databytes" file in the control directory
> needs to be created so that a size is handled by smtpd ??
For mail injected via qmail-inject, there's no direct way of controlling
the message size. I suppose you could accept all locally injected mail and
redirect it to some virtual domain entry and then check for size.
For mail coming in via SMTP, the value of control/databytes controls the
maximum size of message that is allowed in. This setting can be overridden
by the DATABYTES environment variable, settable from tcpserver. See the man
page for qmail-smtpd.
The one problem with qmail's smtpd is that it does not make use of the
SIZE parameter to the MAIL FROM command to reject the message right away;
it accepts the entire message, and then checks to see if it is big. If so,
it bounces it, otherwise accepts it. This means that if someone sends me a
15 MB message, and I have my databytes set to 100 K, I'll still have to
accept the entire message before returning a negative response. It would be
nice if qmail-smtpd understood the SIZE keyword.
--
Anand
System Administrator
Africa Online Ltd
http://www.anand.org