<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Mail folder under VAR in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-folder-under-var/m-p/2638149#M42895</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;As a general comment about space in /var, you might want to assess which directories occupy significant space:&lt;BR /&gt;&lt;BR /&gt;# u -k /var|sort -nrk1|more&lt;BR /&gt;&lt;BR /&gt;You might also want to trim log files like the /var/adm/wtmp and /var/adm/btmp if you are using them:&lt;BR /&gt;&lt;BR /&gt;# cat /dev/null &amp;gt; /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;Old processor logs in /var/tombstones can be removed.  Log #99 in the most *current*.&lt;BR /&gt;&lt;BR /&gt;/var/preserve contains 'vi' recovery files which may no longer be needed.&lt;BR /&gt;&lt;BR /&gt;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:&lt;BR /&gt;&lt;BR /&gt;# cleanup -c 1&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Thu, 03 Jan 2002 13:55:00 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2002-01-03T13:55:00Z</dc:date>
    <item>
      <title>Mail folder under VAR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-folder-under-var/m-p/2638145#M42891</link>
      <description>Our hp server we are not running any kind of mail. this server is our main NNM server with 30 users and we have a large network with 2000 cisco routers and switches. The VAR is getting near about 80% used, I was trying to clean it up to make som more space, while I am going through the VAR I noticed that there is a direct called " Mail" and under this directory there is file in the name of all our users and one file for root and another for bin, most of the users file is 0, but the bin and root files are reaily big  I wonder since we are not running any mail application on this server why this folder and files, I reaily need to keep this file, can I deleate this file. or make it " 0 ".&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Jan 2002 12:41:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-folder-under-var/m-p/2638145#M42891</guid>
      <dc:creator>Raghuram Ollakal_1</dc:creator>
      <dc:date>2002-01-03T12:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Mail folder under VAR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-folder-under-var/m-p/2638146#M42892</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Gideon&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Jan 2002 12:53:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-folder-under-var/m-p/2638146#M42892</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2002-01-03T12:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Mail folder under VAR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-folder-under-var/m-p/2638147#M42893</link>
      <description>Raghuram,&lt;BR /&gt;&lt;BR /&gt;If you are running cron's, then you are using mail. What was the full directory path?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Thu, 03 Jan 2002 12:56:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-folder-under-var/m-p/2638147#M42893</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-01-03T12:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Mail folder under VAR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-folder-under-var/m-p/2638148#M42894</link>
      <description>Hi &lt;BR /&gt;Cron by default mails it output to root this large root mail file will be the result of cron mails.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Enter mail as root user at the prompt.&lt;BR /&gt;&lt;BR /&gt;q               quit                       &lt;BR /&gt;x               exit without changing mail &lt;BR /&gt;p               print                      &lt;BR /&gt;s [file]        save (default mbox)        &lt;BR /&gt;w [file]        same without header        &lt;BR /&gt;-               print previous             &lt;BR /&gt;d               delete                     &lt;BR /&gt;+               next (no delete)           &lt;BR /&gt;m user          mail to user               &lt;BR /&gt;! cmd           execute cmd                &lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Paula&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Jan 2002 13:37:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-folder-under-var/m-p/2638148#M42894</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-01-03T13:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Mail folder under VAR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-folder-under-var/m-p/2638149#M42895</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;As a general comment about space in /var, you might want to assess which directories occupy significant space:&lt;BR /&gt;&lt;BR /&gt;# u -k /var|sort -nrk1|more&lt;BR /&gt;&lt;BR /&gt;You might also want to trim log files like the /var/adm/wtmp and /var/adm/btmp if you are using them:&lt;BR /&gt;&lt;BR /&gt;# cat /dev/null &amp;gt; /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;Old processor logs in /var/tombstones can be removed.  Log #99 in the most *current*.&lt;BR /&gt;&lt;BR /&gt;/var/preserve contains 'vi' recovery files which may no longer be needed.&lt;BR /&gt;&lt;BR /&gt;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:&lt;BR /&gt;&lt;BR /&gt;# cleanup -c 1&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 03 Jan 2002 13:55:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-folder-under-var/m-p/2638149#M42895</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-01-03T13:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Mail folder under VAR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-folder-under-var/m-p/2638150#M42896</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Jan 2002 14:20:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-folder-under-var/m-p/2638150#M42896</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-01-03T14:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Mail folder under VAR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-folder-under-var/m-p/2638151#M42897</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I also advise you to read root's mail before simply deleting it.&lt;BR /&gt;&lt;BR /&gt;If root's getting mail from cron jobs, simply redirect stdout and stderr to a file or /dev/null from the cron job.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Thu, 03 Jan 2002 14:50:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-folder-under-var/m-p/2638151#M42897</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-01-03T14:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Mail folder under VAR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-folder-under-var/m-p/2638152#M42898</link>
      <description>Reading root's email is a good idea. If you have many servers, then redirect root's mail to a central address so information from any of the root accounts will always be read without having to make the rounds.  To do this, edit the file:&lt;BR /&gt;&lt;BR /&gt;/etc/mail/aliases&lt;BR /&gt;&lt;BR /&gt;and setup these lines in that file:&lt;BR /&gt;&lt;BR /&gt;uucp:           root&lt;BR /&gt;daemon:         root&lt;BR /&gt;lp:             root&lt;BR /&gt;mailman:        root&lt;BR /&gt;webmaster:      root&lt;BR /&gt;hostmaster:     root&lt;BR /&gt;postmaster:     root&lt;BR /&gt;MAILER-DAEMON:  root&lt;BR /&gt;adm:            root&lt;BR /&gt;op:             root&lt;BR /&gt;rlp:            root&lt;BR /&gt;bin:            root&lt;BR /&gt;&lt;BR /&gt;root:           monitor@another.machine.com&lt;BR /&gt;&lt;BR /&gt;Repeat on all servers, then run the command:&lt;BR /&gt;&lt;BR /&gt;# newaliases&lt;BR /&gt;&lt;BR /&gt;While you are at it, you can eliminate all user email automatically with:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;# /dev/null all user email&lt;BR /&gt;umask 027&lt;BR /&gt;for USER in /home/*&lt;BR /&gt;do&lt;BR /&gt;echo ":include:/dev/null" &amp;gt; $USER/.forward&lt;BR /&gt;chown ${$USER##*/}:mail $USER/.forward&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;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.</description>
      <pubDate>Thu, 03 Jan 2002 20:10:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-folder-under-var/m-p/2638152#M42898</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-01-03T20:10:58Z</dc:date>
    </item>
  </channel>
</rss>

