<?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: Strange sendmail problem. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-sendmail-problem/m-p/3529221#M221206</link>
    <description>Hi Chris,&lt;BR /&gt;&lt;BR /&gt;I have the following for aliases* files:&lt;BR /&gt;&lt;BR /&gt;-rw-r-----   1 root       bin            835 Jan  4  2000 aliases&lt;BR /&gt;-rw-r-----   1 root       bin          24576 Apr 20 16:45 aliases.db&lt;BR /&gt;-rw-r--r--   1 root       mail             0 Jan  4  2000 aliases.dir&lt;BR /&gt;-rw-r--r--   1 root       mail          1024 Jan  4  2000 aliases.pag&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;&lt;BR /&gt;Eric Antunes</description>
    <pubDate>Thu, 21 Apr 2005 04:19:10 GMT</pubDate>
    <dc:creator>Eric Antunes</dc:creator>
    <dc:date>2005-04-21T04:19:10Z</dc:date>
    <item>
      <title>Strange sendmail problem.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-sendmail-problem/m-p/3529219#M221204</link>
      <description>Hello all.&lt;BR /&gt;&lt;BR /&gt;I wonder if someone could help with a really odd sendmail problem.&lt;BR /&gt;&lt;BR /&gt;I am trying to set up a mail alias for root as I wish to monitor system messages more carefully. I really dislike command line mail. This is not a problem and should be simple. Most UNIX pop3 programs disable any UID under 10 from accessing mail remotely because of security risks, which is ok. So I have added an alias to /etc/mail/ aliases. This is a simple entry    “root   :            cjohnson”   &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;At this point I run “newaliases”  to update /etc/mail/aliases.db . Again this is very simple of course. I should get something like the following.&lt;BR /&gt;&lt;BR /&gt;warning: /etc/mail/aliases has world read or write&lt;BR /&gt;permission. This is unsafe.&lt;BR /&gt;warning: /etc/mail/aliases.db has world read or write &lt;BR /&gt;permission. This is unsafe.&lt;BR /&gt;/etc/mail/aliases: 7 aliases, longest 9 bytes, 88 bytes total&lt;BR /&gt;&lt;BR /&gt;I actually get :-&lt;BR /&gt;&lt;BR /&gt;db_map_open: cannot pre-open database /etc/mail/aliases.db: Permission denied   &lt;BR /&gt;&lt;BR /&gt;ndbm_map_open: cannot create database /etc/mail/aliases: Permission denied      &lt;BR /&gt;WARNING: cannot open alias database /etc/mail/aliases                    &lt;BR /&gt;Cannot create database for alias file /etc/mail/aliases: No such device&lt;BR /&gt;&lt;BR /&gt;I am running this as root !!!&lt;BR /&gt;&lt;BR /&gt;/etc/mail has the following attributes.&lt;BR /&gt;&lt;BR /&gt;total 408                                                                       &lt;BR /&gt;-rw-r-----   1 bin        bin            882 Apr 20 14:54 aliases               &lt;BR /&gt;-r--r--r--   1 root       sys            835 Apr 20 14:36 aliases.bak           &lt;BR /&gt;-rw-r-----   1 root       mail         32768 Dec 16  2002 aliases.db            &lt;BR /&gt;-r--r--r--   1 bin        bin          10203 Oct 27  1997 mailcap               &lt;BR /&gt;-r--r--r--   1 root       sys          77759 Oct  9  2002 sendmail.cf           &lt;BR /&gt;-r--r--r--   1 root       sys          12760 Oct  9  2002 sendmail.cf.bak       &lt;BR /&gt;-r--r--r--   1 root       sys          77759 Apr 11  2002 sendmail.cf.orig      &lt;BR /&gt;-r--r--r--   1 bin        bin            702 Feb  6  2002 sendmail.cw           &lt;BR /&gt;-r--r--r--   1 bin        bin           1002 Oct 27  1997 service.switch&lt;BR /&gt;&lt;BR /&gt;System is HP/UX 11.00 running on an HP/9000 A class.&lt;BR /&gt;&lt;BR /&gt;Cheer</description>
      <pubDate>Thu, 21 Apr 2005 04:12:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-sendmail-problem/m-p/3529219#M221204</guid>
      <dc:creator>Chris Johnson_11</dc:creator>
      <dc:date>2005-04-21T04:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Strange sendmail problem.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-sendmail-problem/m-p/3529220#M221205</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Stop sendmail.&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/sendmail stop&lt;BR /&gt;&lt;BR /&gt;and start sendmail &lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/sendmail start&lt;BR /&gt;&lt;BR /&gt;This will rebuild your aliases database.  If it still doesn't work, remove the aliases.db file after stopping sendmail.  and then start sendmail and check if newaliases are throwing errors.&lt;BR /&gt;&lt;BR /&gt;Another way of routing the root's mail to cjohnson would be the use of .forward file in the root's home directory.  &lt;BR /&gt;cat cjohnson &amp;gt; .forward&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Naveej</description>
      <pubDate>Thu, 21 Apr 2005 04:18:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-sendmail-problem/m-p/3529220#M221205</guid>
      <dc:creator>Naveej.K.A</dc:creator>
      <dc:date>2005-04-21T04:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Strange sendmail problem.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-sendmail-problem/m-p/3529221#M221206</link>
      <description>Hi Chris,&lt;BR /&gt;&lt;BR /&gt;I have the following for aliases* files:&lt;BR /&gt;&lt;BR /&gt;-rw-r-----   1 root       bin            835 Jan  4  2000 aliases&lt;BR /&gt;-rw-r-----   1 root       bin          24576 Apr 20 16:45 aliases.db&lt;BR /&gt;-rw-r--r--   1 root       mail             0 Jan  4  2000 aliases.dir&lt;BR /&gt;-rw-r--r--   1 root       mail          1024 Jan  4  2000 aliases.pag&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;&lt;BR /&gt;Eric Antunes</description>
      <pubDate>Thu, 21 Apr 2005 04:19:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-sendmail-problem/m-p/3529221#M221206</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-04-21T04:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Strange sendmail problem.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-sendmail-problem/m-p/3529222#M221207</link>
      <description>Chris,&lt;BR /&gt;&lt;BR /&gt;Check this doc.&lt;BR /&gt;&lt;BR /&gt;Document description: Sendmail: resolving permissions on sendmail configuration files&lt;BR /&gt;Document id: S1100003137&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000063210491" target="_blank"&gt;http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000063210491&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Thu, 21 Apr 2005 04:23:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-sendmail-problem/m-p/3529222#M221207</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2005-04-21T04:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Strange sendmail problem.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-sendmail-problem/m-p/3529223#M221208</link>
      <description>Excellant guys, thank you. a .forward seems to be the way to go.&lt;BR /&gt;&lt;BR /&gt;Kind Regards&lt;BR /&gt;Chris Johnson</description>
      <pubDate>Thu, 21 Apr 2005 04:24:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-sendmail-problem/m-p/3529223#M221208</guid>
      <dc:creator>Chris Johnson_11</dc:creator>
      <dc:date>2005-04-21T04:24:42Z</dc:date>
    </item>
  </channel>
</rss>

