LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-23-2006, 10:25 PM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 490

Rep: Reputation: 30
Cool Problem about Linux Mail server


Dear ,

I am using Linux Enterprise 4 Edition and for mail purpose I am using "Postfix"

I have some Questions about Linux Mail server :

1)Suppose i have 20 users in my Liux Box .For a specific user which amounts of space is allocated , i.e., Which amounts of spaces are allocated for every user BY DEFAULT and using which command i can show these used spaces ?

2) Suppose My HDD is 20 GB . I know "/home" directory is used for Mail Partition . If I have a 100 users in my Linux server and there are a lot of mails against them then it is natural to fill up all the blank spaces of "/home" Partition . In this critical position Does Linux machine shows any "Critical Sign" or give any "Command" for this purpoes ? i.e.,

What will i do when "/home" partition is filled up with the mail ?
 
Old 06-23-2006, 11:01 PM   #2
SlackDaemon
Member
 
Registered: Mar 2006
Distribution: RedHat, Slackware, Experimenting with FreeBSD
Posts: 222

Rep: Reputation: 30
Quotaing Mail

As far as I know there is no package that comes with RHEL4 to quota mail specifically. You can however use the Linux user quota system compiled into the kernel.

Postfix (like sendmail) stores new mail in the /var/spool/mail/ directory. Once the user has read the message, this is transferred either to the $HOME/mbox file or the $HOME/Mail/ directory. So you would get the best results by keeping /home on a separate partition and implementing your quota there. These are the steps to setup a quota (assuming /dev/hda2 is your /home pratition):

i) vi /etc/fstab and add the 'usrquota' option to the /home partition's line:

/dev/hda2 /home ext3 usrquota,default 0 2

ii) quotacheck -c /home - creates the quota database for the /home partition.

iii) edquota -u <username> - set the quota sizes for individual users. In your case you would probably want to set a 'hard' quota on block sizes. Sizes are specified in kb by default.

iv) quotaon /home - activates the quota


The next time you reboot your server the quota will be activated automatically.

'What will I do if the "home" partition is filled up with email' - keep your /home partition on an LVM so that you will be able to expand its size easily later on. You may also consider using the 'tmpwatch' command do automatically delete old mail after a given interval.

Alternatively you may want to visit http://www.sourceforge.net or http://www.freshmeat.net for applications specific for mail quotas.

Hope this helps.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure & Connect a Linux mail server from a windows mail clients digihall7 Linux - Networking 4 10-23-2006 12:21 PM
How to have limited mail on a linux server that support unlimited e-mail account mmh Linux - General 3 03-15-2006 06:52 AM
problem receiving pop3 mail from postfix mail server GEN_Electric Linux - Software 2 02-14-2005 02:43 PM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM
linux mail server problem svaltier Linux - Software 1 11-07-2002 09:04 PM


All times are GMT -5. The time now is 02:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration