From owner-freebsd-questions Mon May 31 21:55: 3 1999 Delivered-To: freebsd-questions@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (Postfix) with ESMTP id ACFE815252 for ; Mon, 31 May 1999 21:55:01 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.8/8.8.8) with ESMTP id VAA29766; Mon, 31 May 1999 21:55:00 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Date: Mon, 31 May 1999 21:54:59 -0700 (PDT) From: Doug White To: Jerry Preeper Cc: freebsd-questions@FreeBSD.ORG Subject: Re: swap_pager: out of swap space (-->crash) - procmail is problem In-Reply-To: <3.0.5.32.19990528201253.041a8a20@crash.cts.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. > > > Times New Romansu-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