Hi! I have set quotas on our mail server
but the problem is there are more than one partition and if I set quota on home directory the mail is delivered in var/spool(another disk) directory
please send some turnaround to the above problem
Hiten.
__________________________________________________ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com
On Sun, 30 Dec 2001, Hiten Desai wrote:
but the problem is there are more than one partition and if I set quota on home directory the mail is delivered in var/spool(another
Set separate quota for each partition.
but the problem is there are more than one partition and if I set quota on home directory the mail is delivered in var/spool(another disk) directory
If I understand correctly, you want quotas in the mail partition as well. You can either set them up in that partition, or have the local mail delivery program to deliver mail to some file in the users' directories.
Pablo. ---------------------------------------------------------------------- Pablo Ares Gastesi. School of Mathematics, TIFR, Mumbai 400 005, INDIA i Phone: 2152971, ext 2666 pablo@math.tifr.res.in http://www.math.tifr.res.in/~pablo/ Key fingerprint = 1A 7C 0A 22 5A 75 A4 78 62 6F 64 09 C1 A0 F7 E6 ----------------------------------------------------------------------
Hiten (Monday, December 31, 2001 1:26 PM) keyes in:
but the problem is there are more than one partition and if I set quota on home directory the mail is delivered in var/spool(another disk) directory
One solution is: - Stop sendmail (or whatever....) service - Create a directory /home/mail (which is presumably on your partition under quota) with the same permissions as /var/spool/mail - Move all files from /var/spool/mail/ directory to /home/mail/ - Remove /var/spool/mail directory - Create a soft link to /home/mail as /var/spool/mail: ln -s /home/mail /var/spool/mail - Start sendmail (or whatever....) service
Now, your mails will be counted in the quota of the user and you don't need to set quota on multiple-partitions either. Your backups would be simpler (assuming you take backups of only user-data).
While you are at it, consider making /tmp a soft-link to /home/tmp, which will count temporary files in the quota too. Remember to set the appropriate permissions to /home/tmp too.