Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Dec 96 08:48:24 -0800
From:      Cy Schubert - ITSD Open Systems Group <cschuber@uumail.gov.bc.ca>
To:        Ahmad Lokman <alhh@alurtenaga.com.my>
Cc:        "'security@freebsd.org'" <security@freebsd.org>
Subject:   Re: How to limit the size of the email from outside 
Message-ID:  <199612151648.IAA14854@passer.osg.gov.bc.ca>
In-Reply-To: Your message of "Mon, 16 Dec 96 00:02:06." <01BBEAE4.60915180@sting.alurtenaga.com.my> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Here I would like to know if anyone out there know how to prevent someone
> sending a large file of email to an email server. This will prevent the
> guy from jamming the server. Please give me any suggestion on this matter..

Try Maxsize in your Mlocal and Mprog statements.

This is what I use on my DEC Alpha desktop at work.

Mlocal,         P=/bin/mail, F=lsDFMrmn, S=10, R=20/40,
                Maxsize=1000000,
                A=mail -d $u
Mprog,          P=/usr/local/sendmail/smrsh, F=lsDFMeu, S=10, R=20/40, D=$z:/,
                Maxsize=1000000,
                A=sh -c $u

This limits incoming mail processed by by smrsh and /bin/mail to 1 million
bytes.

You can do the same with the Mstmp, Mesmtp, and Mrelay statements to limit
the size of outgoing mail as well.


Regards,                       Phone:  (250)387-8437
Cy Schubert                    OV/VM:  BCSC02(CSCHUBER)
Open Systems Support          BITNET:  CSCHUBER@BCSC02.BITNET
ITSD                        Internet:  cschuber@uumail.gov.bc.ca
                                       cschuber@bcsc02.gov.bc.ca

		"Quit spooling around, JES do it."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612151648.IAA14854>