From owner-freebsd-isp Mon Dec 9 13: 7:57 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 482D837B401 for ; Mon, 9 Dec 2002 13:07:56 -0800 (PST) Received: from mx3.irl.cri.nz (mx3.irl.cri.nz [131.203.18.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id E91F643F32 for ; Mon, 9 Dec 2002 13:07:53 -0800 (PST) (envelope-from c.bates@comnet.co.nz) Received: from orbital.comnet.co.nz (orbital.comnet.co.nz [131.203.10.11]) by mx3.irl.cri.nz (8.12.6/8.12.6) with ESMTP id gB9L83Tk025907 for ; Tue, 10 Dec 2002 10:08:04 +1300 (NZDT) Content-Type: text/plain; charset="us-ascii" From: Craig Bates Organization: ComNet To: freebsd-isp@freebsd.org Subject: Sendmail, MailScanner, file descriptors Date: Tue, 10 Dec 2002 10:05:39 +1300 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200212101005.39510.c.bates@comnet.co.nz> X-MailScanner: Found to be clean X-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=-2.9, required 5, AWL, NOSPAM_INC, SPAM_PHRASE_00_01, USER_AGENT, USER_AGENT_KMAIL) Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I'm running two sendmail processes, MailScanner, RAZOR, Spam Assassin on = a MX=20 box, running FreeBSD 4.7. /var/log/maillog has the following entry: Dec 10 08:37:06 mx3 sendmail[25140]: File descriptors missing on startup:= =20 stdin, stdout, stderr; Bad file descriptor MailScanner is also randomly dying. The two problems seem to be one and = the=20 same. I put the following in /etc/sysctl.conf: kern.maxfiles=3D65536 # System-wide limit kern.maxfilesperproc=3D32768 # Per-process limit and ulimit -n 32768 in my sendmail and MailScanner startup scripts. I th= en=20 rebooted the box and all seemed ok. 5-6 hours later the problem is back.= So=20 it look like the file descriptors are being used up? Note that this does= not=20 happen on every email, but often enough. lsof does not show anything=20 suspicious. I've looked high and low over the web, but found no definite answer to th= is=20 problem. Thanks, Craig To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message