LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-22-2007, 12:28 AM   #1
moenterprise
Member
 
Registered: Mar 2007
Distribution: Fedora Core 6
Posts: 94

Rep: Reputation: 15
Exclamation How to setup mail quotas


Hi, I want to create a quota for my users' mailboxes. I have found plenty of articles and howtos on creating a quota for /home, but none on the /var/spool/mail directory. I have read that I have to modify the /etc/fstab file but I have no clue how.

This is my /etc/fstab file:

/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0

I am running Fedora Core 6 with one hard drive. My mail transport agent is Sendmail.

I need to finish this as soon as possible or my boss will chop my head off! HELP...and please be as detailed as possible in your reply

Last edited by moenterprise; 03-22-2007 at 10:52 PM.
 
Old 03-22-2007, 10:10 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
It would be the same for /var as if you were setting it up for /home, using quota's within the kernel are on a partition by partition basis. Most set up quota's on /home since most users files reside there, apply the same to /var where their mail spool directory stores mail and you should be good.
 
Old 03-22-2007, 10:36 AM   #3
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
What IMAP Server are you using? Courier IMAP and Cyrus IMAP both do IMAP quotas. File systems hard quotas will give you a lot of problems with your Email clients - they will lock. You need an Mailbox Server that has built in indexed quotas. I did a migration from Dovecot to Cyrus, for that and other reasons, which also provided excellent quota support. Let me know if you need help.
 
Old 03-22-2007, 04:30 PM   #4
moenterprise
Member
 
Registered: Mar 2007
Distribution: Fedora Core 6
Posts: 94

Original Poster
Rep: Reputation: 15
Exclamation

Quote:
Originally Posted by trickykid
It would be the same for /var as if you were setting it up for /home, using quota's within the kernel are on a partition by partition basis. Most set up quota's on /home since most users files reside there, apply the same to /var where their mail spool directory stores mail and you should be good.
Can you tell me exactly how? Do I put this line in /etc/fstab?

LABEL=/var /var ext3 defaults,ursquota 1 2

And do I put aquota.user in /var or /var/spool/mail?
 
Old 03-22-2007, 04:31 PM   #5
moenterprise
Member
 
Registered: Mar 2007
Distribution: Fedora Core 6
Posts: 94

Original Poster
Rep: Reputation: 15
Exclamation

Quote:
Originally Posted by ramram29
What IMAP Server are you using? Courier IMAP and Cyrus IMAP both do IMAP quotas. File systems hard quotas will give you a lot of problems with your Email clients - they will lock. You need an Mailbox Server that has built in indexed quotas. I did a migration from Dovecot to Cyrus, for that and other reasons, which also provided excellent quota support. Let me know if you need help.
I am using Dovecot
 
Old 03-22-2007, 10:50 PM   #6
moenterprise
Member
 
Registered: Mar 2007
Distribution: Fedora Core 6
Posts: 94

Original Poster
Rep: Reputation: 15
Exclamation

Quote:
Originally Posted by moenterprise
Can you tell me exactly how? Do I put this line in /etc/fstab?

LABEL=/var /var ext3 defaults,ursquota 1 2

And do I put aquota.user in /var or /var/spool/mail?
I just tried editing the fstab file. I rebooted but it wouldn't start up. I deleted the line and it worked...
 
Old 03-22-2007, 10:51 PM   #7
moenterprise
Member
 
Registered: Mar 2007
Distribution: Fedora Core 6
Posts: 94

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by moenterprise
I am using Dovecot
And I'm not using IMAP, I'm using POP3
 
Old 03-22-2007, 11:20 PM   #8
moenterprise
Member
 
Registered: Mar 2007
Distribution: Fedora Core 6
Posts: 94

Original Poster
Rep: Reputation: 15
I created a quota for the / filesystem, but I only want it for the mail folder...
 
Old 04-07-2007, 12:02 PM   #9
moenterprise
Member
 
Registered: Mar 2007
Distribution: Fedora Core 6
Posts: 94

Original Poster
Rep: Reputation: 15
so... I guess nobody knows?
 
Old 04-09-2007, 03:02 PM   #10
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
You will not be able to use mail quota's unless you install a mail delivery agent with built in IMAP quota; such as Courier, Qmail or Cyrus. Dovecot does not support IMAP quotas, they have not programmed it into the source code. I hope they will one day. Actually I've been waiting for them to do so for several years and that I one reason why I don't prefer Dovecot. Also it doesn't have message filtering.

The POP protocol does not have quota built in because it doesn't need it. POP is meant for the messages to be stored on the client and not the server so there's no need for quotas on POP.

Dovecot is very fast and very easy to setup for small mail delivery systems, but if you want a more robust system you'll need something else.
 
Old 04-10-2007, 10:39 AM   #11
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Rep: Reputation: 39
I have also installed sendmail with dovecot as pop server. I setup the quota on /var as all the mails are getting stored in /var/spool/mail/user. Just added 'usrquota' in /etc/fstab and checked that things are working fine.
What problems you are facing in setting quota in /var?
 
Old 04-10-2007, 10:49 AM   #12
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
moenterprise is not able to create a quota for each individual mailbox. That is because they are using file system quotas and not IMAP quotas. File systems quota's don't work well with IMAP; it tends to crash the session when the file system quota is exceeded because IMAP does not know what to do. IMAP does not talk to the file system quota.
 
  


Reply



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
Mail server - setup virtual mail boxes satimis Linux - Server 1 02-10-2007 10:40 AM
Mail Setup antidelldude Fedora 7 01-20-2005 09:50 PM
How do I setup Quotas rbeckett Linux - Newbie 4 09-15-2004 02:19 PM
mail server and mail client setup issues htm Linux - General 1 03-16-2004 09:32 AM
Mail Server Quotas Dipdngold Linux - General 9 02-20-2004 02:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:35 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
Open Source Consulting | Domain Registration