From owner-freebsd-questions@FreeBSD.ORG Thu Feb 19 11:20:22 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CDB7316A4CE for ; Thu, 19 Feb 2004 11:20:22 -0800 (PST) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F57E43D1D for ; Thu, 19 Feb 2004 11:20:22 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i1JJKFoH081419 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 19 Feb 2004 19:20:15 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i1JJKDkQ081414; Thu, 19 Feb 2004 19:20:13 GMT (envelope-from matthew) Date: Thu, 19 Feb 2004 19:20:13 +0000 From: Matthew Seaman To: Chuck Swiger Message-ID: <20040219192013.GB80272@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Chuck Swiger , ben@lanwest.com.au, freebsd-questions@freebsd.org References: <40345A15.5060707@lanwest.com.au> <4034FC6B.9010904@mac.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mxv5cy4qt+RJ9ypb" Content-Disposition: inline In-Reply-To: <4034FC6B.9010904@mac.com> User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: ben@lanwest.com.au cc: freebsd-questions@freebsd.org Subject: Re: Sendmail rule questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Feb 2004 19:20:22 -0000 --mxv5cy4qt+RJ9ypb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 19, 2004 at 01:11:55PM -0500, Chuck Swiger wrote: > Benjamin Meade wrote: > >Just wondering if sendmail (not procmail) can reject messages from a=20 > >specific user that are above a certain size? >=20 > You can control the max message size on a sitewide basis via: >=20 > define(`confMAX_MESSAGE_SIZE', `21000000')dnl >=20 > ...but I don't believe you can do so on a per-user basis, no. The only way I could think of for doing this would be to create a second set of mailer definitions with the 'M=3D' (Maximum message size) setting altered appropriately, and custom parsing rules to force the messages sent from a particular address to be delivered via those mailers. Needless to say, that's going to be a pig of a job to set up and configure correctly. You would be better off setting up some sort of Milter or indeed forcing all of the messages to be processed through procmail(8). See http://www.benzedrine.cx/milter-regex.html or http://www.snert.com/Software/milter-sender/ for somethings that might do the job -- except that apparently neither of those can filter by message size. Both are available in ports -- if the term 'Milter' means anything to you, and you're fluent at C programming then adding a check on message size might be possible. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --mxv5cy4qt+RJ9ypb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFANQxtdtESqEQa7a0RAuj1AKCZtCbohSm52mksaaN1LJYjCN4y2QCdFNbO TFSygzAC15bAE1vVvpkpm4o= =fjeg -----END PGP SIGNATURE----- --mxv5cy4qt+RJ9ypb--