LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 02-17-2004, 02:10 PM   #1
Dipdngold
LQ Newbie
 
Registered: Oct 2003
Posts: 14

Rep: Reputation: 0
Mail Server Quotas


Hi
I want to setup a mail server for a domain that I own. I haven't been able to successfully setup user quotas. Is there a mail program that will simulate user quotas? I would like something that will let users access mail through a webpage.
thanks
 
Old 02-17-2004, 04:21 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,093

Rep: Reputation: 111Reputation: 111
I don't know of any mail quota programs or any that enable this off hand but what kind of problems are you running into when setting up user quotas on your filesystem? If you provide more details, we might be more of help.
 
Old 02-17-2004, 04:31 PM   #3
Dipdngold
LQ Newbie
 
Registered: Oct 2003
Posts: 14

Original Poster
Rep: Reputation: 0
I've tried asking here before, but none of the solutions seemed to work. When I edit a user's quota, and then run repquota -a it doesn't show the changes.
 
Old 02-17-2004, 05:07 PM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,093

Rep: Reputation: 111Reputation: 111
Quote:
Originally posted by Dipdngold
I've tried asking here before, but none of the solutions seemed to work. When I edit a user's quota, and then run repquota -a it doesn't show the changes.
Okay.. umm.. Any more details about your setup, what type of filesystem, kernel version, and so on? From what you've told me tells me nothing to work by.. or give a decent answer? Anything else you've tried, can you turn quota's on, etc?
 
Old 02-17-2004, 05:50 PM   #5
Dipdngold
LQ Newbie
 
Registered: Oct 2003
Posts: 14

Original Poster
Rep: Reputation: 0
I'm using Debian 3.0 kernel version 2.2.20 I also have 2.4.24 but I have the same problem with that too. Quotas get turned on during boot. If I use the command quota on, it says:

quotaon: using /home/quota.group on /dev/hdd2 [/home]: Device or resource busy
quotaon: using /home/quota.user on /dev/hdd2 [/home]: Device or resource busy

My fstab:
<file system> <mount point> <type> <options> <dump> <pass>
/dev/hda1 / ext2 errors=remount-ro 0 1
/dev/hdc1 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy auto user,noauto 0 0
/dev/cdrom /cdrom iso9660 ro,user,noauto 0 0
/dev/hda5 /tmp ext2 defaults 0 2
/dev/hda3 /usr ext2 defaults 0 2
/dev/hdd1 /var ext2 defaults 0 2
/dev/hdd2 /home ext2 defaults,usrquota,grpquota
0 2
/dev/hdc2 /var/www/hdc ext2 defaults 0 2

My mtab (i don't know if this helps):
/dev/hda1 / ext2 rw,errors=remount-ro 0 0
proc /proc proc rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
/dev/hda5 /tmp ext2 rw 0 0
/dev/hda3 /usr ext2 rw 0 0
/dev/hdd1 /var ext2 rw 0 0
/dev/hdd2 /home ext2 rw,usrquota,grpquota 0 0
/dev/hdc2 /var/www/hdc ext2 rw 0 0

Let me know what other info you need. Thank for the help.
 
Old 02-19-2004, 06:51 PM   #6
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,093

Rep: Reputation: 111Reputation: 111
Okay so your getting device busy which is normal if its already turned on at bootup. What happens if you try turning it off and then back on? Does it apparently turn on with no errors, etc?

What about running the command repquota -avug instead of just -a?

Sorry I didn't respond sooner, forgot about this thread and they can get swallowed up rather quickly at times..
 
Old 02-20-2004, 08:57 AM   #7
Dipdngold
LQ Newbie
 
Registered: Oct 2003
Posts: 14

Original Poster
Rep: Reputation: 0
mail:~# repquota -avug
*** Report for user quotas on device /dev/hdd2
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 16488 0 0 5 0 0
stealth -- 4676 0 0 8 0 0
tester -- 20 0 0 5 0 0
*** Report for group quotas on device /dev/hdd2
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
Group used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 16 0 0 1 0 0
staff -- 16472 0 0 4 0 0
stealth -- 4676 0 0 8 0 0
tester -- 20 0 0 5 0 0


I get no errors during boot up.

thanks
 
Old 02-20-2004, 11:22 AM   #8
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,093

Rep: Reputation: 111Reputation: 111
Well it appears the quota is working but you say its just not taking the changes. How exactly are you editing the userquota's?

I just tested on one of my machines editing a user and after making the changes, saved and ran repquota -avug it showed the new values.

edquota -u <username>

<make changes, save>

repquota -avug

Code:
root@gemini:~# repquota -avug
*** Report for user quotas on /dev/hdb5 (/home)
                        Block limits               File limits
user            used    soft    hard  grace    used  soft  hard  grace
root      --      32       0       0              5     0     0
nobody    --      84       0       0             28     0     0
fin       --      20   50000   60000              5     0     0
tarts     --    8004   50000   60000             43     0     0
drew      --  488584       0       0           2358     0     0
If you can give the output of your edquota -u <username> that your editing, you can see if its actually saving the values you inputted. Try editing it, save and then view it again with same command.. if your changes aren't there, its just not saving it properly.

Its basic vi commands.. Shift+ZZ or :wq! in command mode should save the changes made.

Cheers.
 
Old 02-20-2004, 01:44 PM   #9
cli_man
Member
 
Registered: Apr 2002
Location: New York, USA
Distribution: Redhat 7.2, 9.0 Slackware 9.1
Posts: 428

Rep: Reputation: 30
If you wanted to do quotas at the mail server level you can do it with qmail and vpopmail. Take a look at the guide at: http://www.pipeline.com.au/staff/mbo...ail-server.htm I have different quotas for users and site quotas and everything, very easy to administrate as well
 
Old 02-20-2004, 03:14 PM   #10
Dipdngold
LQ Newbie
 
Registered: Oct 2003
Posts: 14

Original Poster
Rep: Reputation: 0
Tricky, when I save I get:

/tmp//EdP.aNRYCSn: 3 lines, 233 characters.
then I quit and edquota -u stealth
and i don't see the changes.

Cli_man, I will check that link out.

thanks
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server Baselines and quotas AndrewVolz Linux - Enterprise 0 04-11-2005 01:22 PM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 07:21 AM
linux print server with quotas! jhp Linux - Networking 0 09-01-2004 08:49 AM
setting directory quotas and FTP server help kabir Linux - General 1 12-01-2003 08:17 AM
Mail Server Delimiter for alternate mail server venugopalmk Linux - Networking 2 04-29-2003 05:55 AM


All times are GMT -5. The time now is 09:04 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration