[dovecot-cvs] dovecot configure.in,1.62,1.63 dovecot-example.conf,1.21,1.22

cras at procontrol.fi cras at procontrol.fi
Sun Dec 1 15:48:52 EET 2002


Update of /home/cvs/dovecot
In directory danu:/tmp/cvs-serv27190

Modified Files:
	configure.in dovecot-example.conf 
Log Message:
Added virtual memory size limits to processes. Default values are pretty
high, this is mostly because I want it to prevent accidental infinite loops
eating memory or some integer overflows, not to actually restrict anything.



Index: configure.in
===================================================================
RCS file: /home/cvs/dovecot/configure.in,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- configure.in	26 Nov 2002 23:01:07 -0000	1.62
+++ configure.in	1 Dec 2002 13:48:50 -0000	1.63
@@ -13,8 +13,8 @@
 AC_ARG_PROGRAM
 AM_PROG_LIBTOOL
 
-AC_CHECK_HEADERS(string.h stdlib.h stdint.h unistd.h dirent.h)
-AC_CHECK_HEADERS(sys/uio.h sys/sysmacros.h iconv.h linux/mman.h)
+AC_CHECK_HEADERS(string.h stdlib.h stdint.h unistd.h dirent.h iconv.h)
+AC_CHECK_HEADERS(sys/uio.h sys/sysmacros.h sys/resource.h linux/mman.h)
 
 # check posix headers
 AC_CHECK_HEADERS(sys/time.h)
@@ -161,7 +161,7 @@
 
 dnl * after -lsocket and -lnsl tests, inet_aton() may be in them
 AC_CHECK_FUNCS(fcntl flock inet_aton sigaction getpagesize madvise setreuid)
-AC_CHECK_FUNCS(strcasecmp stricmp vsnprintf memmove vsyslog writev)
+AC_CHECK_FUNCS(strcasecmp stricmp vsnprintf memmove vsyslog writev setrlimit)
 
 dnl * poll/select?
 

Index: dovecot-example.conf
===================================================================
RCS file: /home/cvs/dovecot/dovecot-example.conf,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- dovecot-example.conf	25 Nov 2002 10:45:40 -0000	1.21
+++ dovecot-example.conf	1 Dec 2002 13:48:50 -0000	1.22
@@ -61,6 +61,10 @@
 # User to use for imap-login process
 #login_user = imapd
 
+# Set max. process size in megabytes. If you don't use
+# login_process_per_connection you might need to grow this.
+#login_process_size = 16
+
 # Directory where imap-auth places authentication UNIX sockets which login
 # needs to be able to connect to. The sockets are created when running as
 # root, so you don't need to give imap-auth any access for it.
@@ -101,6 +105,10 @@
 # Executable location
 #imap_executable = /usr/libexec/dovecot/imap
 
+# Set max. process size in megabytes. Most of the memory goes to mmap()ing
+# files, so it shouldn't harm much even if this limit is set pretty high.
+#imap_process_size = 256
+
 # Maximum number of running imap processes. When this limit is reached,
 # new users aren't allowed to log in.
 #max_imap_processes = 1024
@@ -255,6 +263,9 @@
 
 # Executable location
 #auth_executable = /usr/libexec/dovecot/imap-auth
+
+# Set max. process size in megabytes.
+#auth_process_size = 256
 
 # User to use for the process. Only shadow and pam authentication requires
 # roots, so use something else if possible.




More information about the dovecot-cvs mailing list