From owner-freebsd-questions Tue Jun 1 6:46:19 1999 Delivered-To: freebsd-questions@freebsd.org Received: from trixie.teamspirit.com (trixie.teamspirit.com [204.94.66.2]) by hub.freebsd.org (Postfix) with ESMTP id 5EB7E156B9 for ; Tue, 1 Jun 1999 06:46:16 -0700 (PDT) (envelope-from preeper@cts.com) Received: from sgt361.teamspirit.com (dt2-blk1-hfc-0251-d1db0ca7.rdc1.sdca.coxatwork.com [209.219.12.167]) by trixie.teamspirit.com (8.9.2/8.9.1) with SMTP id HAA23034; Tue, 1 Jun 1999 07:03:52 -0700 (PDT) Message-Id: <3.0.5.32.19990601064127.04344590@crash.cts.com> X-Sender: preeper@crash.cts.com X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Tue, 01 Jun 1999 06:41:27 -0700 To: Doug White From: Jerry Preeper Subject: Re: swap_pager: out of swap space (-->crash) - procmail is problem Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: References: <3.0.5.32.19990528201253.041a8a20@crash.cts.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It appears that procmail 3.11.pre7 has a known problem with BSD systems and memory allocation, which has supposedly been fixed up somewhat in the latest release - 3.13.1 to use an alternative method I upgraded yesterday and haven't seen a problem yet, but then again, I haven't sent it a huge email -- yet. My 550 code should have been a 554, but I have already removed that from the /etc/mail/access file. I have also set MaxMessageSize in sendmail to 15000000 which should probably handle a 10MB encoded email +/- I'm guessing. Jerry >> 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