hello i have setup a server which is intended to be used as a mail account server now i dont want the users to exceed 10mb of quota.... how can i achieve this setup so that it works practically and so forth all opinions and instructions are warmly welcomed regards O..
couple of questions - what filesystem are you using? what does /etc/fstab look like? are you running a stock kernel and if not did you compile your kernel with quota support? do you have the quota package installed? this is from my mail server which is running suse 7.1, kernel 2.4.18, sendmail-8.12.1 and i have a 10 meg quota per user. here is my relevant entry from /etc/fstab /dev/sda4 /var/spool/mail ext2 defaults,usrquota 1 2 as you can see, the mail is stored on a separate partition, is formatted using the ext2 filesystem (i am not sure if reiserfs or ext3 supports quotas, i know reiser used to not support quotas) and i have quotas enabled on a user basis (hence the usrquota) once your filesystem is in place, do the following touch /var/spool/mail/quota.user (only needs to be done once) quotaon (turns on quotas, need to edit your init scripts to have this run at boot) now setup a quota for a user edquota -u testuser this will open up vi or pico or whatever editor you use and give something like /dev/sda4: blocks in use: 152, limits (soft = 10240, hard = 11264) inodes in use: 1, limits (soft = 0, hard = 0) this is a 10 meg soft limit, 11 meg hard limit. change this to whatever you need. need to edit a bunch of users at once, setup a testuser with the appropriate quotas, get their userid (in this case 103) from the /etc/passwd file and do /usr/sbin/edquota -p testuser `awk -F: '$3 > 103 {print $1}' /etc/passwd` quotacheck -ag that should get you started for user management, i have setup some cron scripts that run daily to update all the quotas, run a quotacheck and then once a week do a quota report and report people who are over quota. its not to hard to do. for a more indepth howto see http://www.nexband.com/LDP/HOWTO/mini/Quota.html On Friday 10 May 2002 10:29 am, Omppu wrote:
hello
i have setup a server which is intended to be used as a mail account server now i dont want the users to exceed 10mb of quota.... how can i achieve this setup so that it works practically and so forth
all opinions and instructions are warmly welcomed
regards
O..
-- Chad Whitten Network/Systems Administrator neXband Communications cwhitten@nexband.com
participants (2)
-
Chad Whitten
-
Omppu