Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Dec 2002 10:05:39 +1300
From:      Craig Bates <c.bates@comnet.co.nz>
To:        freebsd-isp@freebsd.org
Subject:   Sendmail, MailScanner, file descriptors
Message-ID:  <200212101005.39510.c.bates@comnet.co.nz>

index | next in thread | raw e-mail

Hi,

I'm running two sendmail processes, MailScanner, RAZOR, Spam Assassin on a MX 
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: 
stdin, stdout, stderr; Bad file descriptor

MailScanner is also randomly dying.  The two problems seem to be one and the 
same.  I put the following in  /etc/sysctl.conf:

kern.maxfiles=65536             # System-wide limit
kern.maxfilesperproc=32768      # Per-process limit

and  ulimit -n 32768 in my sendmail and MailScanner startup scripts. I then 
rebooted the box and all seemed ok.  5-6 hours later the problem is back.  So 
it look like the file descriptors are being used up?  Note that this does not 
happen on every email, but often enough. lsof does not show anything 
suspicious.

I've looked high and low over the web, but found no definite answer to this 
problem.

Thanks,

Craig


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



help

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