On Sun, Jul 02, 2000 at 07:51:00AM +0200, Steffan Hoeke wrote:


> > I would like to limit some of my users to file seizes not above 1 MB
> > How do I implement that.
 
> man qmail-smtpd:
>        databytes
>             Maximum  number  of  bytes allowed in a message, or 0
>             for no limit.  Default: 0.  If a message exceeds this
>             limit,  qmail-smtpd returns a permanent error code to
>             the client; in contrast,  if  the  disk  is  full  or
>             qmail-smtpd   hits   a  resource  limit,  qmail-smtpd
>             returns a temporary error code.
> 
>             databytes counts bytes as  stored  on  disk,  not  as
>             transmitted  through  the network.  It does not count
>             the  qmail-smtpd  Received  line,   the   qmail-queue
>             Received line, or the envelope.
> 
>             If  the  environment  variable  DATABYTES  is set, it
>             overrides databytes.

What is the format of the file ?

/var/qmail/control/databytes
# ---------------
# databytes for qmail
1000
# ---------------

 
> AFAIK there's no easy way to implement a per-user basis.
> Or you'd have to try to experiment with setting DATABYTES in tcprules/
> tcpserver.
> databytes should be in /var/qmail/control ....

Thank you for giving the directory of the file
I do not find that in the man pages.

I suppose the best would be to implement some user disk quota 

  
Thanks 
Jacob
 

Reply via email to