<?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: sendmail - execute aliases in Operating System - Tru64 Unix</title>
    <link>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-execute-aliases/m-p/3985367#M20342</link>
    <description>Any news?</description>
    <pubDate>Mon, 07 May 2007 18:37:17 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2007-05-07T18:37:17Z</dc:date>
    <item>
      <title>sendmail - execute aliases</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-execute-aliases/m-p/3985358#M20333</link>
      <description>Hi guys,&lt;BR /&gt;&lt;BR /&gt;I am trying to setup the aliases in send mail so it will execute a script when an email receive for that aliase but it seems like sendmail having issue translating what i added in the aliases file.&lt;BR /&gt;&lt;BR /&gt;This is what i have in the aliases file&lt;BR /&gt;vtest: "|/tmp/testscr.test &amp;gt;&amp;gt; /tmp/testscr.log 2&amp;gt;&amp;amp;1 || exit 75"&lt;BR /&gt;&lt;BR /&gt;I added vtest into the local.users file and ran newaliases.&lt;BR /&gt;&lt;BR /&gt;All i had in the /tmp/testscr.test script is echo `date` and has file permission 777.&lt;BR /&gt;&lt;BR /&gt;I test by sending email to vtest@servername.domainname.com.au and immediately i receive the undeliverable return message like&lt;BR /&gt;&lt;BR /&gt;The following recipient(s) could not be reached:&lt;BR /&gt;&lt;BR /&gt;      "|/tmp/testscr.test &amp;gt;&amp;gt; /tmp/testscr.log 2&amp;gt;&amp;amp;1 || exit 75"@domainname.com.au on 20/04/2007 2:33 PM&lt;BR /&gt;            The mail protocol was unable to handle one or more requests because they were unrecognized or invalid. Please notify your system administrator.&lt;BR /&gt;&lt;BR /&gt;The alias works fine when i added an email address to send to ie. abc@domainname.com.au&lt;BR /&gt;&lt;BR /&gt;Hope that make sense.. please help??&lt;BR /&gt;&lt;BR /&gt;The server is tru64 - V5.1 732 alpha&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Apr 2007 00:25:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-execute-aliases/m-p/3985358#M20333</guid>
      <dc:creator>lcmg-unix</dc:creator>
      <dc:date>2007-04-20T00:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail - execute aliases</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-execute-aliases/m-p/3985359#M20334</link>
      <description>My VMS system handles my e-mail so I don't do&lt;BR /&gt;much with "sendmail" on Tru64, but I can&lt;BR /&gt;reproduce this problem on my system.  (You're&lt;BR /&gt;comforted by that, right?)&lt;BR /&gt;&lt;BR /&gt;I assume that there's some lame thing in the&lt;BR /&gt;"sendmail" configuration which causes it to&lt;BR /&gt;mishandle the alias, tacking on the local&lt;BR /&gt;domain name and sending the mess off to the&lt;BR /&gt;Smart Host (or whatever it's called), but&lt;BR /&gt;it's been a long time since I had to fiddle&lt;BR /&gt;seriously with "sendmail" address rules, and&lt;BR /&gt;I've forgotten whatever I did know.&lt;BR /&gt;&lt;BR /&gt;"sendmail" does have an address-test mode,&lt;BR /&gt;and that can be helpful in trying to trace&lt;BR /&gt;its behavior in cases like this.&lt;BR /&gt;&lt;BR /&gt;But you'd sure think that someone who knows&lt;BR /&gt;something would just pop in with the quick&lt;BR /&gt;fix, wouldn't you?  If you're a moron, and&lt;BR /&gt;it's just operator error, at least you're not&lt;BR /&gt;the only moron.  (Also great comfort, I&lt;BR /&gt;assume.)</description>
      <pubDate>Fri, 20 Apr 2007 10:56:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-execute-aliases/m-p/3985359#M20334</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-04-20T10:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail - execute aliases</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-execute-aliases/m-p/3985360#M20335</link>
      <description>Hi Steven,&lt;BR /&gt;&lt;BR /&gt;Thanks for the comments and spent your time reproducing the problem i had. I'm not sure i understand your moron comments.&lt;BR /&gt;&lt;BR /&gt;Yes, the reason i posted my problem on this forum is hoping someone could help or point me to correct path. Isn't thats why we have this forum to help other fellow admin??&lt;BR /&gt;&lt;BR /&gt;But its comforting knowing i'm not the only one with the same problem..  ;-p&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Sun, 22 Apr 2007 19:07:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-execute-aliases/m-p/3985360#M20335</guid>
      <dc:creator>lcmg-unix</dc:creator>
      <dc:date>2007-04-22T19:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail - execute aliases</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-execute-aliases/m-p/3985361#M20336</link>
      <description>&amp;gt; I'm not sure i understand your moron&lt;BR /&gt;&amp;gt; comments.&lt;BR /&gt;&lt;BR /&gt;I haven't found a way to make it work either,&lt;BR /&gt;so we seem to be in the same boat.&lt;BR /&gt;&lt;BR /&gt;More comfort:  I tried this on my Solaris&lt;BR /&gt;system (where I also don't do much with&lt;BR /&gt;"sendmail"), and it worked with no trouble.&lt;BR /&gt;There may be other "sendmail" configuration&lt;BR /&gt;differences there, too, so it may not be a&lt;BR /&gt;perfectly fair comparison, but it sure was&lt;BR /&gt;easy on that system.  (The Sun "sendmail.cf"&lt;BR /&gt;is very different from the Tru64 one, so it's&lt;BR /&gt;not very simple to compare them.)&lt;BR /&gt;&lt;BR /&gt;I did find my old (1993) O'Reilly "sendmail",&lt;BR /&gt;book, so, if I get bored, I may try a little&lt;BR /&gt;reading to see if there's some obvious thing&lt;BR /&gt;which we've overlooked.  (I haven't found&lt;BR /&gt;that thing yet.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Isn't thats why we have this forum [...]&lt;BR /&gt;&lt;BR /&gt;I was expecting to hear the easy solution&lt;BR /&gt;from someone before this, but perhaps all the&lt;BR /&gt;"sendmail" experts took the weekend off.  As&lt;BR /&gt;Monday rolls around, things may improve.</description>
      <pubDate>Sun, 22 Apr 2007 22:10:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-execute-aliases/m-p/3985361#M20336</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-04-22T22:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail - execute aliases</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-execute-aliases/m-p/3985362#M20337</link>
      <description>A couple of things to check:&lt;BR /&gt;&lt;BR /&gt;1.  Make sure that all the directories above your working directory are NOT group or world writeable.  That is every directory above you in the $PWD path.&lt;BR /&gt;&lt;BR /&gt;2.  Make sure that there is a /etc/shells file and that the shell that will be executing the script is included in that file.  Typically, the contents should look like:&lt;BR /&gt;&lt;BR /&gt;/bin/sh&lt;BR /&gt;/bin/csh&lt;BR /&gt;/bin/ksh&lt;BR /&gt;/bin/rsh&lt;BR /&gt;/bin/rcsh&lt;BR /&gt;/bin/rksh&lt;BR /&gt;/usr/bin/sh&lt;BR /&gt;/usr/bin/csh&lt;BR /&gt;/usr/bin/ksh&lt;BR /&gt;/usr/bin/rsh&lt;BR /&gt;/usr/bin/rcsh&lt;BR /&gt;/usr/bin/rksh&lt;BR /&gt;/sbin/sh&lt;BR /&gt;&lt;BR /&gt;Make sure that the rsh in /bin and/usr/bin is the restricted shell, not the remote shell.&lt;BR /&gt;&lt;BR /&gt;Best wishes,&lt;BR /&gt;&lt;BR /&gt;Don Ritchey&lt;BR /&gt;Exelon Corporation</description>
      <pubDate>Mon, 23 Apr 2007 11:33:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-execute-aliases/m-p/3985362#M20337</guid>
      <dc:creator>Don Ritchey</dc:creator>
      <dc:date>2007-04-23T11:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail - execute aliases</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-execute-aliases/m-p/3985363#M20338</link>
      <description>&lt;!--!*#--&gt;urtx# diff sendmail.cf_20070219 sendmail.cf&lt;BR /&gt;791c791&lt;BR /&gt;&amp;lt; Msmtpr,       P=[IPC], F=mDFMuX, S=13, R=23, A=TCP $h, E=\r\n&lt;BR /&gt;---&lt;BR /&gt;&amp;gt; Msmtpr,       P=[IPC], F=mDFMuX|, S=13, R=23, A=TCP $h, E=\r\n&lt;BR /&gt;urtx#&lt;BR /&gt;&lt;BR /&gt;Probably should really be changed in&lt;BR /&gt;"sendmail.m4", and then "sendmail.cf"&lt;BR /&gt;(re-)generated from that.&lt;BR /&gt;&lt;BR /&gt;Now, why it's actually going through this&lt;BR /&gt;mailer is another question to which I have&lt;BR /&gt;not yet tried to find the answer, but this&lt;BR /&gt;change seems to do the job for me.&lt;BR /&gt;&lt;BR /&gt;There was some stuff in the "sendmail" docs&lt;BR /&gt;about some of these flags (like "|") being&lt;BR /&gt;defaults in the old days, so there may be&lt;BR /&gt;some relationship between this problem and&lt;BR /&gt;using a "V5/Digital" configuration file with&lt;BR /&gt;"sendmail" "Version 8.13.6".  (No bets.)  If&lt;BR /&gt;we ever hear from a real "sendmail" expert,&lt;BR /&gt;perhaps more enlightenment will follow.</description>
      <pubDate>Tue, 24 Apr 2007 14:30:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-execute-aliases/m-p/3985363#M20338</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-04-24T14:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail - execute aliases</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-execute-aliases/m-p/3985364#M20339</link>
      <description>&lt;!--!*#--&gt;Actually, what it says is:&lt;BR /&gt;&lt;BR /&gt;   Configuration files prior to level 6&lt;BR /&gt;   assume the `A', `w', `5', `:', `|', `/',&lt;BR /&gt;   and `@' options on the mailer named&lt;BR /&gt;   "local".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So, the problem would seem to be more that&lt;BR /&gt;the alias is going through the "smtpr" mailer&lt;BR /&gt;(which doesn't have the "|" flag set by&lt;BR /&gt;default), rather than going through the&lt;BR /&gt;"local" mailer, where it would be set by&lt;BR /&gt;default.&lt;BR /&gt;&lt;BR /&gt;"sendmail -bt" + "=M" shows the mailer&lt;BR /&gt;definitions, and indeed, "local" reports&lt;BR /&gt;having "F=/5:@ADFMSlmnqsuw|", while the ".cf"&lt;BR /&gt;file says only "F=SlsDFMmnuAw5".  "smtpr", on&lt;BR /&gt;the other hand, does not get the free bonus,&lt;BR /&gt;so with "F=mDFMuX" in the ".cf", "smtpr" gets&lt;BR /&gt;(exactly) "F=DFMXmu", and without the "|",&lt;BR /&gt;the "|" alias is not handled as expected.</description>
      <pubDate>Tue, 24 Apr 2007 15:09:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-execute-aliases/m-p/3985364#M20339</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-04-24T15:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail - execute aliases</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-execute-aliases/m-p/3985365#M20340</link>
      <description>Thanks Steven/guys for all the inputs. I will try it out tomorrow and let you know how i goes.</description>
      <pubDate>Thu, 26 Apr 2007 03:27:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-execute-aliases/m-p/3985365#M20340</guid>
      <dc:creator>lcmg-unix</dc:creator>
      <dc:date>2007-04-26T03:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail - execute aliases</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-execute-aliases/m-p/3985366#M20341</link>
      <description>&amp;gt; A couple of things to check:&lt;BR /&gt;&lt;BR /&gt;What _are_ you talking about?  How would the&lt;BR /&gt;properties of my, your, or anyone else's&lt;BR /&gt;working directory affect "sendmail"?&lt;BR /&gt;&lt;BR /&gt;And who looks at "/etc/shells"?  "sendmail"?&lt;BR /&gt;I don't think so.&lt;BR /&gt;&lt;BR /&gt;Around here:&lt;BR /&gt;&lt;BR /&gt;urtx# ls -l /bin&lt;BR /&gt;lrwxr-xr-x   1 root     system         7 Jan 27  2006 /bin -&amp;gt; usr/bin&lt;BR /&gt;&lt;BR /&gt;so "rsh in /bin and/usr/bin" is pretty likely&lt;BR /&gt;to be the same thing, and it doesn't look&lt;BR /&gt;like any "restricted shell" to me:&lt;BR /&gt;&lt;BR /&gt;urtx# /bin/rsh&lt;BR /&gt;usage: rsh [-ndfx] [-l login] host [command]&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Best wishes,&lt;BR /&gt;&lt;BR /&gt;This seems to be the most valuable&lt;BR /&gt;contribution in the whole posting.  Are you&lt;BR /&gt;sure you hit the right thread?</description>
      <pubDate>Thu, 26 Apr 2007 14:34:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-execute-aliases/m-p/3985366#M20341</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-04-26T14:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail - execute aliases</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-execute-aliases/m-p/3985367#M20342</link>
      <description>Any news?</description>
      <pubDate>Mon, 07 May 2007 18:37:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-execute-aliases/m-p/3985367#M20342</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-05-07T18:37:17Z</dc:date>
    </item>
  </channel>
</rss>

