Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 May 1999 21:54:59 -0700 (PDT)
From:      Doug White <dwhite@resnet.uoregon.edu>
To:        Jerry Preeper <preeper@cts.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: swap_pager: out of swap space (-->crash) - procmail is  problem
Message-ID:  <Pine.BSF.4.03.9905312151580.4498-100000@resnet.uoregon.edu>
In-Reply-To: <3.0.5.32.19990528201253.041a8a20@crash.cts.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 28 May 1999, Jerry Preeper wrote:

> After crashing a few more times I finally found the culprit.  Nothing
> like someone sending a huge email (at least 50MB of the message appears
> to get processed before it crashes the web and name servers).  Procmail
> is being used to filter out spam and appears to be killing the system big
> time when a large attachment goes through it.  Granted, I've never seen a
> 50MB+ email before, but hey, there's a first time for everything I guess.

That will certainly do it.  Nothing like sending a regexp library a MIME
encoded file to make its memory require explode.  I put the smack on this
by limiting messages to <2MB.

> Needless to say, procmail has now been turned off since it's getting the
> message from the user before sendmail can reject it (added 
> 
> innocent@untilprovenguilty.com	550 Please contact the webmaster
> immediately     to the /etc/mail/access file - real address hidden to
> protect the innocent)   but the sending server just keeps trying to send
> it over and over again.

Is 550 fatal?

> Has anyone else ran into a problem with procmail crashing the system on
> large emails being sent to it?  Here is the top of the ps aux output when
> I was finally able to catch this.
> 
> 
> <fontfamily><param>Times New Roman</param><bigger>su-2.01# ps aux
> 
> USER       PID %CPU %MEM   VSZ  RSS  TT  STAT STARTED       TIME 
> COMMAND
> 
> root      6519 91.6 34.6 44140 44608  ??  Rs    6:50PM    3:46.95
> procmail -f art

Yummy, 44MB.

> Is there any fix or patch for procmail or sendmail to prevent this (ie,
> any email over xMB in size gets dropped with a nice message to them and
> me about what happened and why.  

Don't make procmail the system default mailer, or limit message sizes. 

Doug White                               
Internet:  dwhite@resnet.uoregon.edu    | FreeBSD: The Power to Serve
http://gladstone.uoregon.edu/~dwhite    | www.freebsd.org



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.03.9905312151580.4498-100000>