[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vps-mail] Limit files size on procmail and clamav



Great!  Thanks to everyone for the active thread on this.

As a follow-up, I am assuming that it would be preferred to put the limit in the sendmail config instead of the procmailrc as it should saves some processes and time?

Jonathan


On Mon, 22 Nov 2004, Bennett Lanford wrote:

On Fri, Nov 19, 2004 at 08:17:30PM -0700, Jonathan Duncan wrote:
- how to limit e-mail file sizes coming in?

If you want sendmail to limit the size of incoming messages, you can add
something like this to your sendmail mc file:

define(`confMAX_MSG_SIZE', `2048000')dnl

substituting your favorite maximum message size (in bytes) for 2048000.
(Note the two different kinds of single quotes used above--they are
significant!!)

Then regenerate your sendmail.cf and restart sendmail (if you're on VPS2).

Unless you tell sendmail otherwise, the maximum incoming message size is
unlimited.

If you don't know how to generate a cf file from a macro configuration
file, ask and I (or someone else) can tell you how. (Make sure to mention
whether you're on VPS1 or VPS2.)

Ben

--
Bennett Lanford
ben@xxxxxxxxxxxxx
======================================================================
This is <vps-mail@xxxxxxxxxxxx>       <http://www.perlcode.org/lists/>
Before posting a question, please search the archives (see above URL).

======================================================================
This is <vps-mail@xxxxxxxxxxxx>       <http://www.perlcode.org/lists/>
Before posting a question, please search the archives (see above URL).


Main Index | Thread Index
Match: Format: Sort by:
Search: