[Mimedefang] Mimedefang with more than 1024 fd's

Michael Glad glad at daimi.au.dk
Mon Aug 27 14:51:46 EDT 2007


I occasionally have the mimedefang multiplexor running out of
file descriptors and had consequently inserted a 'ulimit -s 2048'
call in /etc/init.d/mimedefang. However this doesn't work as expected.
As soon as accept() starts returning fd's larger than 1024, I get

Aug 27 20:25:15 myserver mimedefang[2271]: MIMEDefang-2.63: accept() returned invalid socket (Numerical result out of range), try again

messages in the syslog and soon after my users start calling.

Apart from running zillions of sendmail processes serving the botnets of the world,
the cluster machines does not by any means seem overloaded.

So is there a way to have mimedefang  handle more than 1024 descriptors?

	-- Michael

----------
Environment:

	Mimedefang 2.63

	Red Hat Enterprise Linux AS release 4 (Nahant Update 5)	
	Linux myserver 2.6.9-55.0.2.ELsmp #1 SMP Tue Jun 12 17:59:08 EDT 2007 i686 i686 i386 GNU/Linux

[root at myserver ~]# grep -v '#' /etc/sysconfig/mimedefang | grep -v ^$
SOCKET=inet:3300
MX_USER=defang
MX_LOG=yes
LOOPBACK_RESERVED_CONNECTIONS=-1
MX_EMBED_PERL=yes
MX_MINIMUM=15
ALLOW_NEW_CONNECTIONS_TO_QUEUE=yes
MX_MAXIMUM=15
MX_MAX_RSS=128000
MX_MAX_AS=262144
MX_BUSY=180
MX_QUEUE_SIZE=50


	-- Michael



More information about the MIMEDefang mailing list