<?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: outbound email works interactively ONLY in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/outbound-email-works-interactively-only/m-p/5071790#M735693</link>
    <description>&amp;gt; It DOES send me an email to my pc. It does&lt;BR /&gt;&amp;gt; NOT get to the pager.&lt;BR /&gt;&lt;BR /&gt;So, it doesn't sound like a problem sending&lt;BR /&gt;e-mail, or a difference between interactive&lt;BR /&gt;and non-interactive anything (whatever that&lt;BR /&gt;means).&lt;BR /&gt;&lt;BR /&gt;Is there a limit on the size of a message you&lt;BR /&gt;can send to the pager?  (And are you&lt;BR /&gt;exceeding it?)</description>
    <pubDate>Mon, 01 Oct 2007 14:40:42 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2007-10-01T14:40:42Z</dc:date>
    <item>
      <title>outbound email works interactively ONLY</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/outbound-email-works-interactively-only/m-p/5071786#M735689</link>
      <description>I have a simple text file. &lt;BR /&gt;It has to:, from:, subject: and even context-type: in it. &lt;BR /&gt;I run this command.....&lt;BR /&gt;cat ./myfile | /usr/bin/sendmail -oi -t&lt;BR /&gt;&lt;BR /&gt;It sends the email to my pager immediately.  No problems.  Everythings is great.&lt;BR /&gt;&lt;BR /&gt;Then I implement the change and retest.  The message goes out, but never gets to the pager.  &lt;BR /&gt;&lt;BR /&gt;I make the script save a copy of the exact thing I send out and run  this again&lt;BR /&gt;cat ./the_exact_data | /usr/sbin/sendmail -oi -t.  It works perfectly. &lt;BR /&gt;&lt;BR /&gt;In summary.  If I watch it, it works.  If I  test it, it works.  I can't get it to fail until I implement it.  THEN it fails every time.  &lt;BR /&gt;&lt;BR /&gt;The one and only difference I can find.....&lt;BR /&gt;When I run it interactively it is INTERACTIVE.  This means, "who am i" shows a userid (and it is root), a terminal, a login time.  I'm a user on a computer.  &lt;BR /&gt;NON-interactive is a job run by root still, but has no tty.  &lt;BR /&gt;&lt;BR /&gt;A bit more detail......&lt;BR /&gt;hpux11.23.&lt;BR /&gt;DS and DM set are set. &lt;BR /&gt;I never get inbound email.&lt;BR /&gt;I always send outbound email to a windows exchange server that forwards my stuff on out.  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PS:  I have a similar problem with the light in my refrigerator.  Every time I check, that light is on.  But as soon as I close the door, that light goes out.&lt;BR /&gt;  &lt;BR /&gt;</description>
      <pubDate>Mon, 01 Oct 2007 13:45:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/outbound-email-works-interactively-only/m-p/5071786#M735689</guid>
      <dc:creator>Steve Post</dc:creator>
      <dc:date>2007-10-01T13:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: outbound email works interactively ONLY</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/outbound-email-works-interactively-only/m-p/5071787#M735690</link>
      <description>well first of all I would use the full path to the file. &lt;BR /&gt;&lt;BR /&gt;Second, I would validate the ownership of that and which user is executing the job.&lt;BR /&gt;&lt;BR /&gt;What does your mail.log say? is the file being sent out of the host or queued?&lt;BR /&gt;&lt;BR /&gt;What do you mean by "Implement it"?</description>
      <pubDate>Mon, 01 Oct 2007 13:55:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/outbound-email-works-interactively-only/m-p/5071787#M735690</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2007-10-01T13:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: outbound email works interactively ONLY</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/outbound-email-works-interactively-only/m-p/5071788#M735691</link>
      <description>I wasn't putting the full path in because I was being generic.  I have been watching the mail.log file.  It shows the message going out to my bad pager every time.  &lt;BR /&gt;&lt;BR /&gt;I bet that there is something in how the message is created that is making the pager company throw it out as spam. &lt;BR /&gt;&lt;BR /&gt;If you really want details,&lt;BR /&gt;It is the Data Protector 5.5 mount utility at /opt/omni/lbin/Mount.sh.&lt;BR /&gt;&lt;BR /&gt;And I am also sending the message to my desktop email address.  It is getting there each and every time.  And I also am getting the message to a different type of pager each and every time.  &lt;BR /&gt;&lt;BR /&gt;Instead of forcing my pager company to modify their email policies to an unspecified change, I want to find and fix the cause.  It's my hope that the problem is very obvious. (well.... at least to somebody that's not me).</description>
      <pubDate>Mon, 01 Oct 2007 14:03:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/outbound-email-works-interactively-only/m-p/5071788#M735691</guid>
      <dc:creator>Steve Post</dc:creator>
      <dc:date>2007-10-01T14:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: outbound email works interactively ONLY</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/outbound-email-works-interactively-only/m-p/5071789#M735692</link>
      <description>What do I mean by interactive?&lt;BR /&gt;cd /opt/omni/lbin&lt;BR /&gt;cp -p Mount.sh Mount.sh.SAVE&lt;BR /&gt;vi Mount.sh&lt;BR /&gt;replace its contents with.....&lt;BR /&gt; TMPFILE=/tmp/emailtest.${$}&lt;BR /&gt; DSUFFIX=`/usr/bin/date +"%d%b%Y %H%M"`&lt;BR /&gt; echo "From: dp51@mybox"                     &amp;gt;&amp;gt; $TMPFILE&lt;BR /&gt; echo "To: postpager, postdesk" &amp;gt;&amp;gt; $TMPFILE&lt;BR /&gt; echo "Subject: need tape for yadda yadda"       &amp;gt;&amp;gt; $TMPFILE&lt;BR /&gt; echo "Context-Type: text"                &amp;gt;&amp;gt; $TMPFILE&lt;BR /&gt; echo  " "                                &amp;gt;&amp;gt; $TMPFILE&lt;BR /&gt; echo "this is a test"                    &amp;gt;&amp;gt; $TMPFILE&lt;BR /&gt; /usr/bin/date +"%d%b%Y %H%M"             &amp;gt;&amp;gt; $TMPFILE&lt;BR /&gt; echo "whoami `whoami`  who am i `who am i`" &amp;gt;&amp;gt; $TMPFILE&lt;BR /&gt; env &amp;gt;&amp;gt; $TMPFILE&lt;BR /&gt; echo "this is the END."                &amp;gt;&amp;gt; $TMPFILE&lt;BR /&gt;cat $TMPFILE | /usr/sbin/sendmail -t -oi&lt;BR /&gt;#rm $TMPFILE&lt;BR /&gt;mv $TMPFILE /tmp/steve.dp51.test.txt&lt;BR /&gt;&lt;BR /&gt;Interactive.... /opt/omni/lbin/Mount.sh&lt;BR /&gt;Non-interactive.... I request a restore from a tape that is not in the tape slot and I wait for /opt/omni/lbin/Mount.sh to run.  &lt;BR /&gt;It DOES run.  It DOES send me an email to my pc.  It does NOT get to the pager.&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Oct 2007 14:15:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/outbound-email-works-interactively-only/m-p/5071789#M735692</guid>
      <dc:creator>Steve Post</dc:creator>
      <dc:date>2007-10-01T14:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: outbound email works interactively ONLY</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/outbound-email-works-interactively-only/m-p/5071790#M735693</link>
      <description>&amp;gt; It DOES send me an email to my pc. It does&lt;BR /&gt;&amp;gt; NOT get to the pager.&lt;BR /&gt;&lt;BR /&gt;So, it doesn't sound like a problem sending&lt;BR /&gt;e-mail, or a difference between interactive&lt;BR /&gt;and non-interactive anything (whatever that&lt;BR /&gt;means).&lt;BR /&gt;&lt;BR /&gt;Is there a limit on the size of a message you&lt;BR /&gt;can send to the pager?  (And are you&lt;BR /&gt;exceeding it?)</description>
      <pubDate>Mon, 01 Oct 2007 14:40:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/outbound-email-works-interactively-only/m-p/5071790#M735693</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-10-01T14:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: outbound email works interactively ONLY</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/outbound-email-works-interactively-only/m-p/5071791#M735694</link>
      <description>I know it IS a problem between interactive and non-interactive.  I'm looking for the help on the answer.  and the question is a problem?&lt;BR /&gt;&lt;BR /&gt;What's the title of my forum entry anyhow?&lt;BR /&gt;&lt;BR /&gt;I'm going back to a generic explanation of the problem. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Interactive.............................&lt;BR /&gt;From the unix shell prompt, I run:  /application/program.sh  &lt;BR /&gt;&lt;BR /&gt;I get my page.  I see my page.  I read my page.  My page is there.  I also get my email.&lt;BR /&gt;&lt;BR /&gt;NON-Interactive...........................&lt;BR /&gt;From the application, I setup a scenario where the application runs /application/program.sh on its own. &lt;BR /&gt;&lt;BR /&gt;I do not get my page.  I do not see my page.  I do not read my page.  My page is not there.   I still get my email.&lt;BR /&gt;&lt;BR /&gt;The length of the page?  Since I am getting it on the interactive tests.  The length of the page is inmaterial.  &lt;BR /&gt;&lt;BR /&gt;one more obvious thing.... I send a page to 2343434343434@pagingcompany.com.  I am not using a modem.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Oct 2007 14:52:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/outbound-email-works-interactively-only/m-p/5071791#M735694</guid>
      <dc:creator>Steve Post</dc:creator>
      <dc:date>2007-10-01T14:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: outbound email works interactively ONLY</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/outbound-email-works-interactively-only/m-p/5071792#M735695</link>
      <description>I found the solution.  I found it in my own notes from Aug2005.  It's a good thing to keep notes.  &lt;BR /&gt;&lt;BR /&gt;In /etc/mail/sendmail.cf, I am using the &lt;BR /&gt;DM - Domain Maquerade line.&lt;BR /&gt;And &lt;BR /&gt;DS - Domain Server line. &lt;BR /&gt;&lt;BR /&gt;The DS line tells mail to send all outbound email to a different server that processes the mail.  &lt;BR /&gt;&lt;BR /&gt;The DM line replaces the from  user@hostname.com to be from user@mycompany.com.  This works great.  When I am logged in as myself.  And it works when I am root too.  But I su'd to root and unix knows that.  When the application runs, root is sending the mail as root@myhost.  And it does NOT change to root@mycompany.com.  &lt;BR /&gt;&lt;BR /&gt;The key to the solution is in line "CE root" in sendmail.cf.  This line essentially says "if root is sending mail, do NOT change myhost to mycompany.com.  I had to change the line&lt;BR /&gt;  from:  CE root&lt;BR /&gt;    to:  CE&lt;BR /&gt;&lt;BR /&gt;This fixed it.  The system knows to replace root@myhost with root@mycompany.com, even it is user root.</description>
      <pubDate>Mon, 01 Oct 2007 15:12:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/outbound-email-works-interactively-only/m-p/5071792#M735695</guid>
      <dc:creator>Steve Post</dc:creator>
      <dc:date>2007-10-01T15:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: outbound email works interactively ONLY</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/outbound-email-works-interactively-only/m-p/5071793#M735696</link>
      <description>I think that your problem is related to the -oi (interactive) sendmail argument rather than -ob (background). In this case, not being in an interactive environment might be your problem. Typically I don't use sendmail directly but instead rely upon mailx or elm to process the input, along with possible attachments, and send the output to sendmail.</description>
      <pubDate>Mon, 01 Oct 2007 15:17:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/outbound-email-works-interactively-only/m-p/5071793#M735696</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-10-01T15:17:26Z</dc:date>
    </item>
  </channel>
</rss>

