<?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: syntax for .forward file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/syntax-for-forward-file/m-p/2515331#M870199</link>
    <description>Thanks Chris..  I was surpised to find that&lt;BR /&gt;the /etc/shells file was missing from the server.  I tried it on another server and it worked find.  I owe you lunch!!!  Thanks again.&lt;BR /&gt;&lt;BR /&gt;Anthony&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 10 Apr 2001 17:24:12 GMT</pubDate>
    <dc:creator>Anthony Baldwin</dc:creator>
    <dc:date>2001-04-10T17:24:12Z</dc:date>
    <item>
      <title>syntax for .forward file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syntax-for-forward-file/m-p/2515325#M870191</link>
      <description>Does anyone understand the syntax of the .forward file. &lt;BR /&gt;&lt;BR /&gt;I was using it to plop email sent to a user into a specified directory. For example &lt;BR /&gt;&lt;BR /&gt;\$user, "|cat &amp;gt; ~/mail_dir/mail_msg_$(date +%y-%m-%d-%H:%M:%S)" &lt;BR /&gt;&lt;BR /&gt;This was working but not any more. Also, I was under the impression that you can have a command run everytime you receive a mail message based on this .forward file. For example, &lt;BR /&gt;\$user, "|~/script.ksh &amp;gt;&amp;gt; ~/tmp/forward.log" &lt;BR /&gt;&lt;BR /&gt;I'm not sure if this is the correct syntax to do this (the syntax is not explicit on the man pages). If anyone has a clue, please advise. Thanks in advance. &lt;BR /&gt;&lt;BR /&gt;Anthony &lt;BR /&gt;</description>
      <pubDate>Mon, 09 Apr 2001 21:56:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syntax-for-forward-file/m-p/2515325#M870191</guid>
      <dc:creator>Anthony Baldwin</dc:creator>
      <dc:date>2001-04-09T21:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: syntax for .forward file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syntax-for-forward-file/m-p/2515326#M870193</link>
      <description>The syntax for the .forward file is the same as the syntax for the aliases file (man 5 aliases). If something was working, but it's not working now, I'd check to see if sendmails been upgraded lately. &lt;BR /&gt;&lt;BR /&gt;The sendmail folks have gotten security conscious in their old age. I suspect that if you've upgraded to sendmail 8.9.3 (latest on HP I think), you might be getting nailed by the loose permissions. &lt;BR /&gt;&lt;BR /&gt;Specifically, by default sendmail 8.9.3 doesn't like to write to/traverse directories that are group writable. By default, tt also doesn't like group writable .foward files. &lt;BR /&gt;&lt;BR /&gt;To see if this is happening: &lt;BR /&gt;&lt;BR /&gt;/usr/sbin/sendmail: &lt;BR /&gt;Copyright (c) 1998 HEWLETT PACKARD COMPANY and its licensors, &lt;BR /&gt;including Sendmail, Inc., and the Regents of the &lt;BR /&gt;University of California. All rights reserved. &lt;BR /&gt;version.c 8.9.3.1 (Berkeley) 2/9/1999 (PHNE_18546) &lt;BR /&gt;&lt;BR /&gt;tail -f /usr/adm/syslog/mail.log [while sending an e-mail to the forward address. sendmail will complain in the log file if it doesn't like the permissions] &lt;BR /&gt;</description>
      <pubDate>Mon, 09 Apr 2001 23:33:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syntax-for-forward-file/m-p/2515326#M870193</guid>
      <dc:creator>Christopher Caldwell</dc:creator>
      <dc:date>2001-04-09T23:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: syntax for .forward file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syntax-for-forward-file/m-p/2515327#M870195</link>
      <description>Chris, &lt;BR /&gt;&lt;BR /&gt;The "cat" command is working fine again.  The question is, how do you invoke a shell script from the .forward file.  Is the syntax that I specified correct?  I see the man aliases page, but I have the following on the 2nd line of the .forward file:&lt;BR /&gt;&lt;BR /&gt;\$user, "|~/shell.ksh" &lt;BR /&gt;&lt;BR /&gt;However, when I view the /var/adm/syslog/mail.log I see,&lt;BR /&gt;&lt;BR /&gt;delay=00:00:01, xdelay=00:00:00, mailer=prog, stat=unknown mailer error 1&lt;BR /&gt;Apr  9 20:14:48 smell sendmail[15488]: UAA15487: UAA15488: DSN: unknown mailer error &lt;BR /&gt;&lt;BR /&gt;Please advise.  Thanks.  &lt;BR /&gt;&lt;BR /&gt;Anthony</description>
      <pubDate>Tue, 10 Apr 2001 13:07:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syntax-for-forward-file/m-p/2515327#M870195</guid>
      <dc:creator>Anthony Baldwin</dc:creator>
      <dc:date>2001-04-10T13:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: syntax for .forward file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syntax-for-forward-file/m-p/2515328#M870196</link>
      <description>-Try full path to the shell script (i.e. /home/blah/myscript.sh).  &lt;BR /&gt;-make sure that there are no world writeable or group writable directories between / and your script&lt;BR /&gt;-make sure the script is not world writable or group writable&lt;BR /&gt;-make sure your script returns a proper exit code (see /usr/include/sysexits.h) - exit 0 for success, exit something_else for failure&lt;BR /&gt;-make sure your shell is in /etc/shells</description>
      <pubDate>Tue, 10 Apr 2001 13:35:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syntax-for-forward-file/m-p/2515328#M870196</guid>
      <dc:creator>Christopher Caldwell</dc:creator>
      <dc:date>2001-04-10T13:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: syntax for .forward file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syntax-for-forward-file/m-p/2515329#M870197</link>
      <description>Chris,&lt;BR /&gt;&lt;BR /&gt;I've tried:&lt;BR /&gt;&lt;BR /&gt;\me, "|/users/me/myscript.ksh"&lt;BR /&gt;&lt;BR /&gt;with and without the quotes.  This doesn't work.  The concept is, that whenever I receive an e-mail, run this script.  The syntax seems to be the problem. As stated before:&lt;BR /&gt;&lt;BR /&gt;\me, "|cat &amp;gt; ~/mail_tmp/mail_msg_$(date +%y-%m-%d-%H:%M:%S)"&lt;BR /&gt;&lt;BR /&gt;this works fine.  I definitely appreciate your help.  Do you have any other suggestions?  &lt;BR /&gt;&lt;BR /&gt;Anthony.....&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Apr 2001 16:14:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syntax-for-forward-file/m-p/2515329#M870197</guid>
      <dc:creator>Anthony Baldwin</dc:creator>
      <dc:date>2001-04-10T16:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: syntax for .forward file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syntax-for-forward-file/m-p/2515330#M870198</link>
      <description>Can you include the output of the following commands:&lt;BR /&gt;&lt;BR /&gt;#what /usr/sbin/sendmail&lt;BR /&gt;#ll -d /&lt;BR /&gt;#ll -d /home&lt;BR /&gt;#ll -d /me&lt;BR /&gt;#ll myscript.sh&lt;BR /&gt;#grep me /etc/passwd&lt;BR /&gt;#cat /etc/shells&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Apr 2001 16:27:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syntax-for-forward-file/m-p/2515330#M870198</guid>
      <dc:creator>Christopher Caldwell</dc:creator>
      <dc:date>2001-04-10T16:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: syntax for .forward file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syntax-for-forward-file/m-p/2515331#M870199</link>
      <description>Thanks Chris..  I was surpised to find that&lt;BR /&gt;the /etc/shells file was missing from the server.  I tried it on another server and it worked find.  I owe you lunch!!!  Thanks again.&lt;BR /&gt;&lt;BR /&gt;Anthony&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Apr 2001 17:24:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syntax-for-forward-file/m-p/2515331#M870199</guid>
      <dc:creator>Anthony Baldwin</dc:creator>
      <dc:date>2001-04-10T17:24:12Z</dc:date>
    </item>
  </channel>
</rss>

