file descriptors on FreeBSD
Julian Field
mailscanner at ecs.soton.ac.uk
Mon Dec 9 22:16:59 GMT 2002
At 21:57 09/12/2002, you wrote:
>I've come to the conclusion that this is definitely a mailscanner
>problem. If
>I kill off all Mailscanner processes and restart it, then the problem seems
>to go away for a while. MailScanner is set to restart every 4 hours, but
>this doesn't seem to help. Does the parent Mailscanner process ever restart
>or only the children?
The parent process doesn't restart, but it does virtually nothing once it
has started up the children.
I'm going to have to install a FreeBSD system and investigate this one,
assuming I can recreate it.
>Craig
>
>On Monday 09 December 2002 10:47, you wrote:
> > >So I'm assuming that the file descriptors problem is related to
> > > MailScanner dying every now and then. I have recently installed two new
> > > FreeBSD4.7 servers and installed MailScanner on both and both have this
> > > problem, so it is not hardware.
> > >
> > >Sendmail does not give this error on every message, only a few per day.
> > > Are there any FreeBSD experts out there?
> > >
> > >Thanks,
> > >
> > >Craig
> >
> > Craig,
> >
> > Put the following in /etc/sysctl.conf:
> >
> > kern.maxfiles=65536 # System-wide limit
> > kern.maxfilesperproc=32768 # Per-process limit
> >
> > and add the following to your mailscanner/mta startup scripts:
> >
> > ulimit -n 32768
> >
> > That should take care of any file descriptor issues on FreeBSD.
--
Julian Field
www.MailScanner.info
MailScanner thanks transtec Computers for their support
More information about the MailScanner
mailing list