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
тАО07-08-2008 04:56 AM
тАО07-08-2008 04:56 AM
Mails
- Tags:
- mailbox
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2008 05:04 AM
тАО07-08-2008 05:04 AM
Re: Mails
> /var/mail/root
> /var/mail/oracle
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2008 05:08 AM
тАО07-08-2008 05:08 AM
Re: Mails
Those 2 files you mention contain the local system e-mail for those 2 users. There could potentially be VERY important system or database related messages there.
Ideally you should have aliases set up for those users so someone gets those messages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2008 05:08 AM
тАО07-08-2008 05:08 AM
Re: Mails
either you can rm the files in /var/mail folder.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2008 05:14 AM
тАО07-08-2008 05:14 AM
Re: Mails
If you don't want any of the contents, as noted, you can do:
# > /var/mail/oracle
or:
# cat /dev/null > /var/mail/oracle
or:
# rm /var/mail/oracle
Either of the first two forms result in an empty file.
If you believe that you might want the contents for reference, you could 'gzip' them as compressed files and move them elsewhere.
You could also delete (e.g. with 'vi') some number or range of messages where a message stanza begins with "^From".
Regards!
...JRF...
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2008 05:33 AM
тАО07-08-2008 05:33 AM
Re: Mails
I wonder if you don't really need to cleanup some of the processses that are *creating* the mail in the first place.
For example, if you have 'cron' tasks that 'su -' to oracle, then the account's profile is being sourced (read) and any terminal based commands meant to be run in a terminal-associated environment are producing annoying "Not a typewriter" messages to STDERR which (by default under 'cron') get mailed to the user account.
One solution in that case is to modify your '.profile' to be sensitive to this by conditionally adding:
# if [ -t 0]; then #...interactive/not cron...
to create a a conditional block around the code that does 'stty', 'tset' and 'tabs' commands in the standard profile.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2008 06:23 PM
тАО07-08-2008 06:23 PM
Re: Mails
Instead of using vi, you can use "mailx -f /var/mail/root" (or "mailx -u root") to look at these mailboxes.
There are simple commands to delete ranges and read the messages.
- Tags:
- mailx