<?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 log in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-log/m-p/2968979#M119950</link>
    <description>It sounds like you have removed the mail file and then re-created it. You can't really do this whilst a process (bacground daemon) is using it. You must either edit the file directly or shutdown mail, create a new file and start the mail process. Here is how&lt;BR /&gt;&lt;BR /&gt;# /sbin/init.d/sendmail stop&lt;BR /&gt;# rm /var/adm/syslog/mail.log&lt;BR /&gt;or&lt;BR /&gt;# mv /var/adm/syslog/mail.log /var/adm/syslog/mail.log.save&lt;BR /&gt;# touch /var/adm/syslog/mail.log&lt;BR /&gt;# chown root:root /var/adm/syslog/mail.log&lt;BR /&gt;# chmod 444 /var/adm/syslog/mail.log</description>
    <pubDate>Fri, 09 May 2003 04:18:50 GMT</pubDate>
    <dc:creator>Michael Tully</dc:creator>
    <dc:date>2003-05-09T04:18:50Z</dc:date>
    <item>
      <title>mail log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-log/m-p/2968978#M119949</link>
      <description>While remove the /var/adm/syslog/mail.log&lt;BR /&gt;or remove mail.log and re-create the mail.log file. Next time, using mail to sendmail, the mail.log will not logs any message. But REBOOT the machine, the mail.log will still logs message. Does anyone know how to touch the mail.log and mail still can logs message properly?</description>
      <pubDate>Fri, 09 May 2003 04:13:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-log/m-p/2968978#M119949</guid>
      <dc:creator>j773303</dc:creator>
      <dc:date>2003-05-09T04:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: mail log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-log/m-p/2968979#M119950</link>
      <description>It sounds like you have removed the mail file and then re-created it. You can't really do this whilst a process (bacground daemon) is using it. You must either edit the file directly or shutdown mail, create a new file and start the mail process. Here is how&lt;BR /&gt;&lt;BR /&gt;# /sbin/init.d/sendmail stop&lt;BR /&gt;# rm /var/adm/syslog/mail.log&lt;BR /&gt;or&lt;BR /&gt;# mv /var/adm/syslog/mail.log /var/adm/syslog/mail.log.save&lt;BR /&gt;# touch /var/adm/syslog/mail.log&lt;BR /&gt;# chown root:root /var/adm/syslog/mail.log&lt;BR /&gt;# chmod 444 /var/adm/syslog/mail.log</description>
      <pubDate>Fri, 09 May 2003 04:18:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-log/m-p/2968979#M119950</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2003-05-09T04:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: mail log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-log/m-p/2968980#M119951</link>
      <description>The key is to restart the sendmail daemon (like what Michael has mentioned above) which is why when the system reboots, it restarts the sendmail daemon and the logging continue to work. An additional step is needed at the end to start the daemon.&lt;BR /&gt;# /sbin/init.d/sendmail start</description>
      <pubDate>Fri, 09 May 2003 04:25:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-log/m-p/2968980#M119951</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2003-05-09T04:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: mail log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-log/m-p/2968981#M119952</link>
      <description>Don't remove the file and recreate. Just null it out...&lt;BR /&gt;&lt;BR /&gt;&amp;gt; /var/adm/syslog/mail.log&lt;BR /&gt;&lt;BR /&gt;If you need to retain a copy of the log, copy it and don't move it. after it has been copied/archived, then null it to zero bytes.&lt;BR /&gt;&lt;BR /&gt;-denver</description>
      <pubDate>Fri, 09 May 2003 04:35:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-log/m-p/2968981#M119952</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2003-05-09T04:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: mail log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-log/m-p/2968982#M119953</link>
      <description>#cat /dev/null &amp;gt;/var/adm/syslog/mail.log</description>
      <pubDate>Fri, 09 May 2003 05:03:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-log/m-p/2968982#M119953</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-05-09T05:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: mail log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-log/m-p/2968983#M119954</link>
      <description>Hi,&lt;BR /&gt;SAM has a good facility for trimming logfiles the proper way:&lt;BR /&gt;SAM -&amp;gt; Routine tasks -&amp;gt; System Log Files -&amp;gt;&lt;BR /&gt;In the list of logfiles select /var/adm/syslog/mail.log  select "Actions" -&amp;gt; Trim -&amp;gt; Trim to the recommended size, &lt;BR /&gt;which will:&lt;BR /&gt;1)trim /var/adm/syslog/mail.log to zero&lt;BR /&gt;2)save what corresponds to "The recommended size" of the  file to the file /var/adm/syslog/mail.logSAMTRM&lt;BR /&gt;&lt;BR /&gt;New mail messages will hereafter be written to /var/adm/syslog/mail.log.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.  &lt;BR /&gt;</description>
      <pubDate>Fri, 09 May 2003 06:07:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-log/m-p/2968983#M119954</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2003-05-09T06:07:51Z</dc:date>
    </item>
  </channel>
</rss>

