Package: sendmail
Version: 8.14.4-4
Severity: normal
Tags: patch

Hi,

#define MAXDAEMONS      10        /* max number of ports to listen to */

This is causing failures when trying to start:

/etc/mail/sendmail.cf: line 285: too many daemons defined (10 max)

I'm running MTA, MSA, and MSASSL daemons on localhost and my primary
interface. With the addition of IPv6, this pushes me to 12 combinations
of listeners.

I suggest raising this seemingly arbitrary limit to much larger. Please see
attached patch.

Thanks!

-Kees

-- 
Kees Cook                                            @debian.org
Description: hard-coded "10" is not enough to listen on both IPv4 and IPv6
 with a minimal configuration of MTA, MSA, and MSASSL on both localhost
 and primary interface (12 daemons). Raise limit to 64.
Author: Kees Cook <k...@debian.org>

diff -uNrp sendmail-8.14.4~/sendmail/conf.h sendmail-8.14.4/sendmail/conf.h
--- sendmail-8.14.4~/sendmail/conf.h	2009-03-25 13:04:00.000000000 -0700
+++ sendmail-8.14.4/sendmail/conf.h	2013-08-21 12:00:19.385335378 -0700
@@ -112,7 +112,7 @@ struct rusage;	/* forward declaration to
 #ifndef MAXHDRSLEN
 # define MAXHDRSLEN	(32 * 1024)	/* max size of message headers */
 #endif /* ! MAXHDRSLEN */
-#define MAXDAEMONS	10		/* max number of ports to listen to */
+#define MAXDAEMONS	64		/* max number of ports to listen to */
 #ifndef MAXINTERFACES
 # define MAXINTERFACES	512		/* number of interfaces to probe */
 #endif /* MAXINTERFACES */

Reply via email to