Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Feb 2004 14:18:45 -0500
From:      Mark Frank <mark@mark-and-erika.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Sendmail rule questions
Message-ID:  <20040220191845.GA18888@millerlite.mark-and-erika.com>
In-Reply-To: <20040219192013.GB80272@happy-idiot-talk.infracaninophile.co.uk>
References:  <40345A15.5060707@lanwest.com.au> <4034FC6B.9010904@mac.com> <20040219192013.GB80272@happy-idiot-talk.infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
* 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



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