<?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: User mailbox cleanup in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/user-mailbox-cleanup/m-p/3266003#M177828</link>
    <description>""Note that cron and at will not create an email unless there is a problem.""&lt;BR /&gt;&lt;BR /&gt;I dont beleive so - cron sends out the mail if the stdout/stderr of the job is not redirected.&lt;BR /&gt;&lt;BR /&gt;$ whoami&lt;BR /&gt;swamins1&lt;BR /&gt;$ crontab -l&lt;BR /&gt;* * * * * /usr/bin/ls /root&lt;BR /&gt;$ ls -lrt /var/mail/swamins1&lt;BR /&gt;-rw-rw----   1 swamins1   mail          1008 May  3 12:44 /var/mail/swamins1&lt;BR /&gt;$ more /var/mail/swamins1&lt;BR /&gt;..&lt;BR /&gt;..&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;Flows-1.eps&lt;BR /&gt;PHCO_25841&lt;BR /&gt;PHCO_25841.depot&lt;BR /&gt;PHCO_25841.text&lt;BR /&gt;PHKL_26269&lt;BR /&gt;PHKL_26269.depot&lt;BR /&gt;PHKL_26269.text&lt;BR /&gt;PHKL_28025&lt;BR /&gt;PHKL_28025.depot&lt;BR /&gt;PHKL_28025.text&lt;BR /&gt;README_hp-ux&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;*************************************************&lt;BR /&gt;Cron: The previous message is the standard output&lt;BR /&gt;      and standard error of one of your crontab commands:&lt;BR /&gt;&lt;BR /&gt;/usr/bin/ls /root&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 03 May 2004 14:44:47 GMT</pubDate>
    <dc:creator>Sundar_7</dc:creator>
    <dc:date>2004-05-03T14:44:47Z</dc:date>
    <item>
      <title>User mailbox cleanup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-mailbox-cleanup/m-p/3265999#M177824</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;We run reporting application when sends multiple emails out to the users. This user mail box under /var/mail is 26 MB and filling up slowly. Any harm in cleaning up the file? How to clean it? Why it is getting filled up? This user runs multiple cron and at jobs. If system coudn't send mail out will it store in mail box?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Mon, 03 May 2004 13:37:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-mailbox-cleanup/m-p/3265999#M177824</guid>
      <dc:creator>SAM_24</dc:creator>
      <dc:date>2004-05-03T13:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: User mailbox cleanup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-mailbox-cleanup/m-p/3266000#M177825</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Go to /var/mail,&lt;BR /&gt;&lt;BR /&gt;do a "cat &amp;gt; user_name"&lt;BR /&gt;&lt;BR /&gt;Till will make the file user_name "0" bytes.&lt;BR /&gt;&lt;BR /&gt;It is done.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 May 2004 13:40:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-mailbox-cleanup/m-p/3266000#M177825</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2004-05-03T13:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: User mailbox cleanup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-mailbox-cleanup/m-p/3266001#M177826</link>
      <description>&lt;BR /&gt; Cron by default will send the stdout and stderr from the crontab jobs to the user mail box, if they are not redirected.&lt;BR /&gt;&lt;BR /&gt;  If you dont want the user to receive mails from cron, you can edit the crontab and add the following entry at the end of the job.&lt;BR /&gt;&lt;BR /&gt;   1&amp;gt;/dev/null 2&amp;gt;&amp;amp;1</description>
      <pubDate>Mon, 03 May 2004 13:48:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-mailbox-cleanup/m-p/3266001#M177826</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-05-03T13:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: User mailbox cleanup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-mailbox-cleanup/m-p/3266002#M177827</link>
      <description>The mail is growing because the user is not deleting the mail. It will grow forever until /var is full and then your ENTIRE system will be disabled!! The user must cleanup their mailbox *or* forward their email to another server where there is unlimited space, or take away cron/at privileges. Note that cron and at will not create an email unless there is a problem.&lt;BR /&gt; &lt;BR /&gt;The system will attempt to send email as long aas there is space. If there is no space in /var, email will terminate, both incoming and outgoing. 26megs in .var is far too small for a normal system. It doesn't matter whether email or a series of print jobs fill /var, your system will be crippled once /var fills up.&lt;BR /&gt; &lt;BR /&gt;As mentioned, you can simply zero out the email file for this user but of course, that deletes all email, not just cron and at.</description>
      <pubDate>Mon, 03 May 2004 13:49:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-mailbox-cleanup/m-p/3266002#M177827</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-05-03T13:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: User mailbox cleanup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-mailbox-cleanup/m-p/3266003#M177828</link>
      <description>""Note that cron and at will not create an email unless there is a problem.""&lt;BR /&gt;&lt;BR /&gt;I dont beleive so - cron sends out the mail if the stdout/stderr of the job is not redirected.&lt;BR /&gt;&lt;BR /&gt;$ whoami&lt;BR /&gt;swamins1&lt;BR /&gt;$ crontab -l&lt;BR /&gt;* * * * * /usr/bin/ls /root&lt;BR /&gt;$ ls -lrt /var/mail/swamins1&lt;BR /&gt;-rw-rw----   1 swamins1   mail          1008 May  3 12:44 /var/mail/swamins1&lt;BR /&gt;$ more /var/mail/swamins1&lt;BR /&gt;..&lt;BR /&gt;..&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;Flows-1.eps&lt;BR /&gt;PHCO_25841&lt;BR /&gt;PHCO_25841.depot&lt;BR /&gt;PHCO_25841.text&lt;BR /&gt;PHKL_26269&lt;BR /&gt;PHKL_26269.depot&lt;BR /&gt;PHKL_26269.text&lt;BR /&gt;PHKL_28025&lt;BR /&gt;PHKL_28025.depot&lt;BR /&gt;PHKL_28025.text&lt;BR /&gt;README_hp-ux&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;*************************************************&lt;BR /&gt;Cron: The previous message is the standard output&lt;BR /&gt;      and standard error of one of your crontab commands:&lt;BR /&gt;&lt;BR /&gt;/usr/bin/ls /root&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 May 2004 14:44:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-mailbox-cleanup/m-p/3266003#M177828</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-05-03T14:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: User mailbox cleanup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-mailbox-cleanup/m-p/3266004#M177829</link>
      <description>Yes Sundar, you are correct. Any output from a cron or at job will create an email. I write all my cron jobs to not output anything to stdout unless there is an error internally.</description>
      <pubDate>Mon, 03 May 2004 15:25:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-mailbox-cleanup/m-p/3266004#M177829</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-05-03T15:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: User mailbox cleanup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-mailbox-cleanup/m-p/3266005#M177830</link>
      <description>TRy this:&lt;BR /&gt;&lt;BR /&gt;1. move the file "away" i.e.:&lt;BR /&gt;mv /var/mail/user /tmp/user.mail&lt;BR /&gt;&lt;BR /&gt;2. wait a few minutes up to a few days&lt;BR /&gt;new incomings mails will recreate the file&lt;BR /&gt;&lt;BR /&gt;3. execute&lt;BR /&gt;elm -f /var/mail/user&lt;BR /&gt;&lt;BR /&gt;Thats a Menu-based program, where you can easily read the emails stored in /var/mail/user. &lt;BR /&gt;man elm for more info.&lt;BR /&gt;&lt;BR /&gt;Read the mails. I guess they might be created by a cron job. Thats noted in the email text of each mail at the end. There you see the name of the cronjob and you can investigate that job not to create these mails......&lt;BR /&gt;&lt;BR /&gt;hope this helps&lt;BR /&gt;Juergen</description>
      <pubDate>Mon, 03 May 2004 17:45:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-mailbox-cleanup/m-p/3266005#M177830</guid>
      <dc:creator>Juergen Tappe</dc:creator>
      <dc:date>2004-05-03T17:45:14Z</dc:date>
    </item>
  </channel>
</rss>

