On Wed, May 23, 2001 at 11:52:53AM +0300, Davidson Thaba wrote:
> Hello
>
> I would like to set a max size for mail sent to a specific Maildir and alert the
>recipient or the sender that such a mail has been rejected.
A simple C program that fstat's stdin (fd 0 :), checks the size, and,
if the message is too big, print a message and reject it by
return()'ing 100 (man qmail-command).
Your .qmail file would then look like (2 lines):
|sizechecker
./Maildir/
Note that a user can easily circumvent this if he can edit his .qmail
file.
Greetz, Peter.