Subject: Re: Limit Mail Size
To: Redouane Najah Semlali <rns@azure.net>
From: Michael K. Sanders <msanders@confusion.net>
List: port-i386
Date: 10/30/1998 13:48:57
In message <3639A6FD.FF2BC74B@azure.net>, Redouane Najah Semlali writes:
>Is there any way to limit the size of an e-mail sent or received ?
>
>Thanks in advance for your help.

Since this isn't specific to the i386 port, it would have been more 
appropriate to send it to netbsd-help.  Please direct any follow-ups there.

You don't say what MTA you're using, so I'll assume that you're using
the stock Sendmail that ships with NetBSD.  If you're using M4 to
generate your config file, you can add the following to the .mc file:

  # 2MB (2*1024*1024 bytes) limit for local mail delivery
  define(`LOCAL_MAILER_MAX', `2097152')dnl

This will only affect the local mailer-- there are other definitions
for the other mailers that you can also use.

Read /usr/share/sendmail/README more information.