[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: User quotas



The format used by sendmail is commonly referred to as 
"Unix Mailbox Format".	Each mailbox is a single file. 
Each message begins with a line beginning "From ". This 
line is followed by the header section, which ends with 
a null line.  This is followed by the body, which also 
is followed by a null line. 

To count the messages in such a file, you could use:
  cat mailbox_file | grep -Ec "^From "

Hope this helps.
A. Becker



"Ashley M. Kirchner" <ashley pcraft com> wrote:
> 
>     Now that the system is up and running, I'm moving on to the next
"problem" block.  I'm using sendmail as my MTA, and I have quotas
enabled on the /home drive.  However, how do I also count the users'
spool files in /var/spool/mail/<user> (where sendmail dumps incoming
messages)?  I want each user's quota to reflect both their account and
their spool file.
> 
> --
> H | "Life is the art of drawing without an eraser." - John Gardner
>  
+--------------------------------------------------------------------
>   Ashley M. Kirchner <mailto:ashley pcraft com>   .	303.442.6410
x130
>   Director of Internet Operations / SysAdmin	  .	800.441.3873
x130
>   Photo Craft Laboratories, Inc.	      .     3550 Arapahoe Ave,
#6
>   http://www.pcraft.com ..... .  .	.	Boulder, CO 80303,
U.S.A.
> 
> 
> 
> 
> 
> _______________________________________________
> Redhat-list mailing list
> Redhat-list redhat com
> https://listman.redhat.com/mailman/listinfo/redhat-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]