<?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: EMS mail to root account filtering in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ems-mail-to-root-account-filtering/m-p/2742058#M943984</link>
    <description>Are you saying that the procmail and forward rules for user root also affect user daemon?&lt;BR /&gt;&lt;BR /&gt;From your post, root's home dir is /home/root. What's the home directory for daemon?&lt;BR /&gt;&lt;BR /&gt;What does this show you?&lt;BR /&gt;&lt;BR /&gt;$ echo ~root ~daemon&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 11 Jun 2002 17:37:00 GMT</pubDate>
    <dc:creator>Jordan Bean</dc:creator>
    <dc:date>2002-06-11T17:37:00Z</dc:date>
    <item>
      <title>EMS mail to root account filtering</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ems-mail-to-root-account-filtering/m-p/2742057#M943983</link>
      <description>Hi *,&lt;BR /&gt;&lt;BR /&gt;i'm trying to filter some EMS events notified to root by E-mail (severity &amp;gt;= MAJOR WARNING)...&lt;BR /&gt;&lt;BR /&gt;I've installed procmail 3.21 software depot on my HPUX 11.00 server, and just try to configure procmail.&lt;BR /&gt;&lt;BR /&gt;The first steps are :&lt;BR /&gt;- /home/root/.procmailrc file creation. Nothing special here I just use - for the moment - a silly rule telling procmail to deliver any message to the default  mailbox...&lt;BR /&gt;- /home/root/.forward. I've configured this file according to the many docs/faq found on the Net :&lt;BR /&gt;"|IFS=' ' &amp;amp;&amp;amp; exec /opt/procmail/bin/procmail || exit 75 " &lt;BR /&gt;&lt;BR /&gt;And here is my problem... Without those files in place on my /home/root directory, everything goes nice : a 'mailx root &amp;lt; /etc/issue' command sends /etc/issue in /var/mail/root.&lt;BR /&gt;&lt;BR /&gt;If I configure both files (~/.procmailrc and ~/.forward), the same commands goes to /var/mail/daemon !!!!&lt;BR /&gt;&lt;BR /&gt;This is just driving me nuts !&lt;BR /&gt;&lt;BR /&gt;Any ideas ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt; Jose L. Marcos</description>
      <pubDate>Tue, 11 Jun 2002 14:05:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ems-mail-to-root-account-filtering/m-p/2742057#M943983</guid>
      <dc:creator>José L. Marcos</dc:creator>
      <dc:date>2002-06-11T14:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: EMS mail to root account filtering</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ems-mail-to-root-account-filtering/m-p/2742058#M943984</link>
      <description>Are you saying that the procmail and forward rules for user root also affect user daemon?&lt;BR /&gt;&lt;BR /&gt;From your post, root's home dir is /home/root. What's the home directory for daemon?&lt;BR /&gt;&lt;BR /&gt;What does this show you?&lt;BR /&gt;&lt;BR /&gt;$ echo ~root ~daemon&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jun 2002 17:37:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ems-mail-to-root-account-filtering/m-p/2742058#M943984</guid>
      <dc:creator>Jordan Bean</dc:creator>
      <dc:date>2002-06-11T17:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: EMS mail to root account filtering</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ems-mail-to-root-account-filtering/m-p/2742059#M943985</link>
      <description>&amp;gt; Are you saying that the procmail and forward rules for user root also affect user&lt;BR /&gt;&amp;gt; daemon?&lt;BR /&gt;&lt;BR /&gt;No. What I'm saying is that : mail adressed to user root aren't correctly handled via forward and procmail rules. &lt;BR /&gt;&lt;BR /&gt;&amp;gt; From your post, root's home dir is /home/root. What's the home directory for daemon?&lt;BR /&gt;&lt;BR /&gt;Home directory for root is '/home/root' and home directory for daemon is '/'.&lt;BR /&gt;&lt;BR /&gt;I've tested the same procmail and forward rules with a "normal' account. After setting the correct permissions to /opt/procmail/bin/procmail (root:mail and chmod 2755) it works correctly for this normal account, I mean the mail is correctly forwarded to the /var/mail/account mailbox.&lt;BR /&gt;&lt;BR /&gt;The point is that mail sent to 'root account' is misdistributed into /var/mail/daemon !&lt;BR /&gt;&lt;BR /&gt;It's still driving me nuts...&lt;BR /&gt;&lt;BR /&gt;Jose L.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Jun 2002 07:22:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ems-mail-to-root-account-filtering/m-p/2742059#M943985</guid>
      <dc:creator>José L. Marcos</dc:creator>
      <dc:date>2002-06-12T07:22:02Z</dc:date>
    </item>
  </channel>
</rss>

