- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Mail folder under VAR
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
Forums
Discussions
Discussions
Discussions
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
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
01-03-2002 04:41 AM
01-03-2002 04:41 AM
Mail folder under VAR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2002 04:53 AM
01-03-2002 04:53 AM
Re: Mail folder under VAR
I would advice to scan roots mail before cleaning up. you can use mail from tho command line to read/delete your mail or vi the file and read trough it before deleting.
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2002 04:56 AM
01-03-2002 04:56 AM
Re: Mail folder under VAR
If you are running cron's, then you are using mail. What was the full directory path?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2002 05:37 AM
01-03-2002 05:37 AM
Re: Mail folder under VAR
Cron by default mails it output to root this large root mail file will be the result of cron mails.
SO whilst your users are not using mail the system is and this mail to root should be monitored, ems and predictive can also use roots mail to warn/inform you of current/pending problems.
Enter mail as root user at the prompt.
q quit
x exit without changing mail
p print
s [file] save (default mbox)
w [file] same without header
- print previous
d delete
+ next (no delete)
m user mail to user
! cmd execute cmd
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2002 05:55 AM
01-03-2002 05:55 AM
Re: Mail folder under VAR
As a general comment about space in /var, you might want to assess which directories occupy significant space:
# u -k /var|sort -nrk1|more
You might also want to trim log files like the /var/adm/wtmp and /var/adm/btmp if you are using them:
# cat /dev/null > /var/adm/wtmp
Old processor logs in /var/tombstones can be removed. Log #99 in the most *current*.
/var/preserve contains 'vi' recovery files which may no longer be needed.
A very large amount of space is often recoverable in /var/adm/sw by using *ONLY* the 'cleanup' utility (see its man pages). Removing files or directories in /var/adm/sw by any means other than 'cleanup' can lead to an un-patchable system! Use, for instance:
# cleanup -c 1
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2002 06:20 AM
01-03-2002 06:20 AM
Re: Mail folder under VAR
The mail files for root and bin and most probably system generated. Most of the time, the system will send a mail to root if there is a problem, say a root cron job didn't run or things like that. You can safely delete these files under /var/mail. The system will recreate the files next time. However it would be a good idea to read the contents of the file as you may come to know what are the mail being sent to root and if there is a problem somewhere that has been overlooked.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2002 06:50 AM
01-03-2002 06:50 AM
Re: Mail folder under VAR
I also advise you to read root's mail before simply deleting it.
If root's getting mail from cron jobs, simply redirect stdout and stderr to a file or /dev/null from the cron job.
Normal users may also get mail when print jobs are canceled. Most of my users can't access command line so I simply blow away their mail.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2002 12:10 PM
01-03-2002 12:10 PM
Re: Mail folder under VAR
/etc/mail/aliases
and setup these lines in that file:
uucp: root
daemon: root
lp: root
mailman: root
webmaster: root
hostmaster: root
postmaster: root
MAILER-DAEMON: root
adm: root
op: root
rlp: root
bin: root
root: monitor@another.machine.com
Repeat on all servers, then run the command:
# newaliases
While you are at it, you can eliminate all user email automatically with:
#!/usr/bin/sh
# /dev/null all user email
umask 027
for USER in /home/*
do
echo ":include:/dev/null" > $USER/.forward
chown ${$USER##*/}:mail $USER/.forward
done
What this does is to put a .forward file in every directory in/home. Modify it accordingly if you use something other than /home for user directories.
Bill Hassell, sysadmin