Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
My box (fc3) has sendmail (v8.x) installed and configured. My issue is that root gets about 405983495083 messages a day and his mailbox yields >100mb a week. It's now nearing a gig and I was wondering if it were possible to set up a cron to delete all his messages.
Now, I've gone into /var/spool/mail/ and replaced the mailbox file with a blank file - but that makes the mailbox not accessible from pine (not sure if it works still or not but it doesn't matter as I can't read those messages). Is there a command that I'm not aware of that can replace mailboxes with blank mailboxes?
Please feel free to give an alternate solution to the one I'm asking for as I'm not necessarily married to that idea.
Thanks for your quick reply - but this appears to have only opened up new issues. I'm pretty sure that my mailbox is just too big. It's currently at ~700mb.
[root@db mcupples]# mail
d *Mail version 8.1 6/6/93. Type ? for help.
"/var/spool/mail/root": 139232 messages 38639 new 139214 unread
fseek: Invalid argument
panic: temporary file seek
The panic just worries me. I'm going to go google this and hopefully find something. Let me know if you think of anything first.
If you simply rename the file to something else, will pine bomb out after that? It would basically be like deleting the file. When it needs to put another email in the file it will just recreate the file...