- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Too Much Mail
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2001 08:10 AM
тАО09-04-2001 08:10 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2001 08:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2001 08:16 AM
тАО09-04-2001 08:16 AM
Re: Too Much Mail
if you dont want the mail
> /var/mail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2001 08:17 AM
тАО09-04-2001 08:17 AM
Re: Too Much Mail
cat /dev/null > /var/mail/
and
> /var/mail/
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2001 08:20 AM
тАО09-04-2001 08:20 AM
Re: Too Much Mail
About 14 bytes' worth of KB input :-)
Cheers,
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2001 08:21 AM
тАО09-04-2001 08:21 AM
Re: Too Much Mail
You can delete the file too. It will recreate the file if it gets any new mail. Else yoou can make its size as "0"
cat /dev/null >/var/mail/root
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2001 08:21 AM
тАО09-04-2001 08:21 AM
Re: Too Much Mail
tail /var/mail/root
Shawn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2001 08:27 AM
тАО09-04-2001 08:27 AM
Re: Too Much Mail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2001 08:38 AM
тАО09-04-2001 08:38 AM
Re: Too Much Mail
root mailbox will have some important messages like cron failures, EMS messsages etc.,. So you would want to keep a copy of it before you null it. So, move it to another file system that has some space. It is growing means system really wants to tell you something.
#cp /var/mail/root /another_file_system
#cat /dev/null > /var/mail/root
Now you can use pg or cat command to view this file to see what the messages are. Once you are satisfied that there is no danger indicated in it, you can delete it from that file system.
I know I won't get cents for this message but thought of letting you know.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2001 01:31 PM
тАО09-05-2001 01:31 PM
Re: Too Much Mail
a UN*X mailbox is just a text file (maybe a huge one ;-)
and the syntax for SMTP mail (=UN*X) is pretty simple...
At least test for the "subject" lines of all those mails:
grep "^Subject: " /var/spool/mail | more
before you delete it - there might be an interesting
message in there!
HTH,
Wodisch