From owner-freebsd-questions@FreeBSD.ORG Mon Jan 28 09:31:51 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9127516A419 for ; Mon, 28 Jan 2008 09:31:51 +0000 (UTC) (envelope-from punosevac@math.arizona.edu) Received: from smtp-gs.math.arizona.edu (math051.cs.arizona.edu [150.135.82.51]) by mx1.freebsd.org (Postfix) with ESMTP id 63F0A13C467 for ; Mon, 28 Jan 2008 09:31:51 +0000 (UTC) (envelope-from punosevac@math.arizona.edu) Received: from Debian-exim by smtp-gs.math.arizona.edu with local-bsmtp (Exim 4.63) (envelope-from ) id 1JJQLE-0004EK-UN for freebsd-questions@freebsd.org; Mon, 28 Jan 2008 02:31:50 -0700 Received: from 71-220-164-236.tcsn.qwest.net ([71.220.164.236] helo=.domain.actdsltmp) by smtp-gs.math.arizona.edu with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1JJQKz-0004Dq-Ow; Mon, 28 Jan 2008 02:31:33 -0700 Message-ID: <479DA0EF.8090609@math.arizona.edu> Date: Mon, 28 Jan 2008 02:31:27 -0700 From: Predrag Punosevac User-Agent: Thunderbird 2.0.0.6 (X11/20070916) MIME-Version: 1.0 To: Wojciech Puchar References: <479D6E97.6060100@gmx.net> <20080128090005.V1235@wojtek.tensor.gdynia.pl> In-Reply-To: <20080128090005.V1235@wojtek.tensor.gdynia.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ACL-Warn: The HELO/EHLO greeting .domain.actdsltmp is invalid X-Outgoing-Spam-Score: -4.2 (----) Cc: FreeBSD Daemon , freebsd-questions@freebsd.org Subject: Re: suggested size of /var/mail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jan 2008 09:31:51 -0000 Wojciech Puchar wrote: >> >> Are there any smart ways to decide how to size /var/mail. >> I plan to put it on a seperate partition ... or shouldn't I? >> Your question is too serious to be answered in an email but I give a try. First of all I would suggest that you read the pages 25-28 of the book Secure Architectures with OpenBSD by Brandon Palmer and Jose Nazario as the partition issue is discussed in detail. There is also an excellent how to http://www.kernel-panic.it/openbsd/mail/ by OpenBSD users group on the topic of secure mail server (they also have a slue of other nice articles http://www.openbsdsupport.org/). I personally would stick with sendmail MTA but that is your call. No back to the question of partition. Personally no matter what I like to have separate / /swap /tmp /var /usr /home I would size them as follows if I had 20 Gb RAM. First of all I would leave 2-3 Gb empty in the case that I run out of memory space on any particular partition. You can use disklabel or system install to add additional disk space where needed. The rest as follows /swap is usually 2xRAM I would go with / with 1Gb. 1Gb /tmp /usr maybe 2Gb depend if you are going to use only sandmail or to use different MTA as all the programs are installed there. You probably need to install IMAP server, MySQL, and Squirrel . I would run spam assassin and Clamav on two other separate physical boxes. Probably PIII that you can get for $10 are good enough for that. So you need to make sure that there is enough space for all the programs in /usr For /home very little . /var as much as you have left because you do not want to run out of log files. At least 12-13Gb on the disk size of 20Gb but the disk space is so cheap so I would probably go with at least 160Gb total disk space even for the home server. That also depends how many users you are going to serve. I hope somebody smarter than me help you with that part. I would crypt at least swap. After the configuration you can edit /etc/fstab and actually make / only readable. You can also see what else can be mounted only as readable thing but now we are moving further to the questions of security and that is whole another book. Kind regards, Predrag > while considered bad/dangerous/whatever i ALWAYS make only 2 partitions: > > swap and root > > and NEVER have problems how to size a partitions. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"