From owner-freebsd-questions@FreeBSD.ORG Fri Feb 20 11:18:46 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 E1D4816A4CE for ; Fri, 20 Feb 2004 11:18:46 -0800 (PST) Received: from millerlite.mark-and-erika.com (unknown [151.205.245.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95F5C43D2F for ; Fri, 20 Feb 2004 11:18:46 -0800 (PST) (envelope-from mark@mark-and-erika.com) Received: from millerlite.mark-and-erika.com (localhost [127.0.0.1]) i1KJIjOf021672 for ; Fri, 20 Feb 2004 14:18:45 -0500 (EST) (envelope-from mark@mark-and-erika.com) Received: (from mfrank@localhost)i1KJIjZd021671 for freebsd-questions@freebsd.org; Fri, 20 Feb 2004 14:18:45 -0500 (EST) (envelope-from mark@mark-and-erika.com) X-Authentication-Warning: millerlite.mark-and-erika.com: mfrank set sender to mark@mark-and-erika.com using -f Date: Fri, 20 Feb 2004 14:18:45 -0500 From: Mark Frank To: freebsd-questions@freebsd.org Message-ID: <20040220191845.GA18888@millerlite.mark-and-erika.com> Mail-Followup-To: freebsd-questions@freebsd.org References: <40345A15.5060707@lanwest.com.au> <4034FC6B.9010904@mac.com> <20040219192013.GB80272@happy-idiot-talk.infracaninophile.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040219192013.GB80272@happy-idiot-talk.infracaninophile.co.uk> X-Certified: Outgoing email is certified Windows Free. X-Unexpected-Header: The Spanish Inquisition X-System: FreeBSD 5.2-RELEASE up 20 days 10:32 hours User-Agent: Mutt/1.5.5.1i 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: Fri, 20 Feb 2004 19:18:47 -0000 * On Thu, Feb 19, 2004 at 07:20:13PM +0000 Matthew Seaman wrote: > 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 > > >specific user that are above a certain size? > > > > You can control the max message size on a sitewide basis via: > > > > define(`confMAX_MESSAGE_SIZE', `21000000')dnl > > > > ...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=' (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). Also in the milter vein, if you're conversant with Perl you could try MIMEDefang (it's in ports.) You could probably find a workable example for what you want to do from the MIMEDefang mailing list archives. http://lists.roaringpenguin.com/pipermail/mimedefang/ -- Mark Frank Director of Technical Services - eDoxs Corp. "The fix is only temporary...unless it works." - Red Green