<?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: Regarding mailx from HP-UX system in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-mailx-from-hp-ux-system/m-p/3514938#M218859</link>
    <description>take a look at procmail - &lt;A href="http://hpux.ee.ualberta.ca/hppd/hpux/Networking/Mail/procmail-3.22/" target="_blank"&gt;http://hpux.ee.ualberta.ca/hppd/hpux/Networking/Mail/procmail-3.22/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
    <pubDate>Thu, 31 Mar 2005 08:08:43 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2005-03-31T08:08:43Z</dc:date>
    <item>
      <title>Regarding mailx from HP-UX system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-mailx-from-hp-ux-system/m-p/3514935#M218856</link>
      <description>hi, i have 2 doubts regarding the mailx feature in hp-ux system -&lt;BR /&gt;(1) i am currently trying to send a test mail using a shell script like :&lt;BR /&gt;&lt;BR /&gt;HEADER="Test mail"&lt;BR /&gt;mailx -s "$HEADER" prakalp_shrivastava@infosys.com &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;testing ..&lt;BR /&gt;EOF&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;however it is not going .. is there some environment variable or setting i need to make for this ??&lt;BR /&gt;&lt;BR /&gt;(2) the test mail sent from above script, in the "From" mail tag, whose mail id will be shown ? does it depend on the user who has logged in the system currently while executing the script ? &lt;BR /&gt;is it possible to change the id shown in "From" tab by changing a variable in some mail setting file ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;looking fwd to some opinions on this, sorry if this is in the wrong section (?) and thanks for ur time .&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Prakalp</description>
      <pubDate>Wed, 30 Mar 2005 23:58:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-mailx-from-hp-ux-system/m-p/3514935#M218856</guid>
      <dc:creator>Prakalp</dc:creator>
      <dc:date>2005-03-30T23:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding mailx from HP-UX system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-mailx-from-hp-ux-system/m-p/3514936#M218857</link>
      <description>I just ran your example in a korn shell and it worked perfectly. My next test will send you an email!&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;HEADER="Test mail"&lt;BR /&gt;mailx -s "$HEADER" prakalp_shrivastava@infosys.com &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;test from an itrc forums member&lt;BR /&gt;..&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;Maybe your sendmail isn't working?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(2) The login name of the user will appear. Thus if they login as root it will show root@SYSTEMNAME.infosys.com&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Thu, 31 Mar 2005 07:13:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-mailx-from-hp-ux-system/m-p/3514936#M218857</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-03-31T07:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding mailx from HP-UX system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-mailx-from-hp-ux-system/m-p/3514937#M218858</link>
      <description>thanks for looking into it harry !&lt;BR /&gt;&lt;BR /&gt;(1) problem solved :-) am able to send mails now .&lt;BR /&gt;&lt;BR /&gt;(2) logged in as user - root - and sent a test mail to my id, where the From tag showed new mail from - root@ccd.com&lt;BR /&gt;&lt;BR /&gt;needed to know, where do i make changes in the server machine so tht the From tag in the mail shows different 'name' than the one logged in while sending ..&lt;BR /&gt;i'd be guessing there is some config sendmail file for this ... could any one confirm the same ? &lt;BR /&gt;last option would be to write a script for this .. any ideas ?&lt;BR /&gt;&lt;BR /&gt;best,&lt;BR /&gt;prakalp.&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Mar 2005 07:40:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-mailx-from-hp-ux-system/m-p/3514937#M218858</guid>
      <dc:creator>Prakalp</dc:creator>
      <dc:date>2005-03-31T07:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding mailx from HP-UX system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-mailx-from-hp-ux-system/m-p/3514938#M218859</link>
      <description>take a look at procmail - &lt;A href="http://hpux.ee.ualberta.ca/hppd/hpux/Networking/Mail/procmail-3.22/" target="_blank"&gt;http://hpux.ee.ualberta.ca/hppd/hpux/Networking/Mail/procmail-3.22/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Thu, 31 Mar 2005 08:08:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-mailx-from-hp-ux-system/m-p/3514938#M218859</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-03-31T08:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding mailx from HP-UX system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-mailx-from-hp-ux-system/m-p/3514939#M218860</link>
      <description>hi harry,&lt;BR /&gt;&lt;BR /&gt;well the machine is currently being used for some critical processes and batch runs .. though procmail seems to be able to do the job, i'd be sticking my neck out there ..&lt;BR /&gt;&lt;BR /&gt;if there is any manual settings to be done, in ur knowledge, please let me know .. it wud be a GREAT help.&lt;BR /&gt;&lt;BR /&gt;thanks again,&lt;BR /&gt;waiting,&lt;BR /&gt;Prakalp.</description>
      <pubDate>Thu, 31 Mar 2005 08:27:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-mailx-from-hp-ux-system/m-p/3514939#M218860</guid>
      <dc:creator>Prakalp</dc:creator>
      <dc:date>2005-03-31T08:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding mailx from HP-UX system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-mailx-from-hp-ux-system/m-p/3514940#M218861</link>
      <description>I think you can screw with the sendmail rules, but you need a superman cape, a power rangers ring, a Jedi sword and a doctorate in bio-engineering to develop the rules. Try a google search.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Thu, 31 Mar 2005 08:39:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-mailx-from-hp-ux-system/m-p/3514940#M218861</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-03-31T08:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding mailx from HP-UX system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-mailx-from-hp-ux-system/m-p/3514941#M218862</link>
      <description>You can do this with the genericstable" feature.&lt;BR /&gt;&lt;BR /&gt;See:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.sendmail.org/virtual-hosting.html" target="_blank"&gt;http://www.sendmail.org/virtual-hosting.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You will have to re-compile your sendmail.cf...&lt;BR /&gt;&lt;BR /&gt;If you would like to reverse-map local users for out-bound mail, you will need to add support for the generics table to your .mc file:&lt;BR /&gt;&lt;BR /&gt;FEATURE(`genericstable', `dbm /etc/mail/genericstable')dnl&lt;BR /&gt;GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')dnl&lt;BR /&gt;&lt;BR /&gt;And you will need to create /etc/mail/genericstable which is like /etc/mail/virtusertable above except the columns are reversed:&lt;BR /&gt;&lt;BR /&gt;jschmoe   joe@yourdomain.com&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Mar 2005 09:06:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-mailx-from-hp-ux-system/m-p/3514941#M218862</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-03-31T09:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding mailx from HP-UX system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-mailx-from-hp-ux-system/m-p/3514942#M218863</link>
      <description>Ok - here's hoe to do it on HP-UX:&lt;BR /&gt;&lt;BR /&gt;backup your sendmail.cf:&lt;BR /&gt;&lt;BR /&gt;cd /etc/mail&lt;BR /&gt;cp - sendmail.cf sendmail.cf.bak&lt;BR /&gt;&lt;BR /&gt;Create new sendmail.cf&lt;BR /&gt;&lt;BR /&gt;/usr/contrib/sendmail/usr/newconfig/etc/mail/cf/cf/gen_cf&lt;BR /&gt;&lt;BR /&gt;select generics table option&lt;BR /&gt;&lt;BR /&gt;cp sendmail.cf.gen sendmail.cf&lt;BR /&gt;&lt;BR /&gt;Create the genericstable(whitespace is TAB)&lt;BR /&gt;&lt;BR /&gt;root    you@yourdoamin.com&lt;BR /&gt;&lt;BR /&gt;makemap dbm genericstable &lt;BR /&gt;Make any other changes to sendmail.cf that you need - like DM or DS&lt;BR /&gt;Restart sendmail...if needed...&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Mar 2005 09:28:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-mailx-from-hp-ux-system/m-p/3514942#M218863</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-03-31T09:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding mailx from HP-UX system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-mailx-from-hp-ux-system/m-p/3514943#M218864</link>
      <description>Prakalp-&lt;BR /&gt;On your "from" question, see attached examples of using mailx.&lt;BR /&gt;Looks as though all else has been sufficiently answered.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;dl</description>
      <pubDate>Thu, 31 Mar 2005 12:32:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-mailx-from-hp-ux-system/m-p/3514943#M218864</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2005-03-31T12:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding mailx from HP-UX system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-mailx-from-hp-ux-system/m-p/3514944#M218865</link>
      <description>&lt;BR /&gt;Easy:&lt;BR /&gt;&lt;BR /&gt;cat filename | mailx -s "Heading_goes_here" -r name_of_return_address@domain.name name(s)_of_recipients&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;cat /etc/hosts | mailx -s "Hosts file" -r me@mydomain.com me@mydomain.com otherperson@mydomain.com&lt;BR /&gt;&lt;BR /&gt;would create and email that appears to come from me@mydomain.com (that's if your mailserver for the domain to which you belong, allows relaying)&lt;BR /&gt;&lt;BR /&gt;David.&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Apr 2005 09:23:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-mailx-from-hp-ux-system/m-p/3514944#M218865</guid>
      <dc:creator>David de Beer</dc:creator>
      <dc:date>2005-04-01T09:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding mailx from HP-UX system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-mailx-from-hp-ux-system/m-p/3514945#M218866</link>
      <description>Prakalp,&lt;BR /&gt;&lt;BR /&gt;Did any of the above help/solve your issue?&lt;BR /&gt;&lt;BR /&gt;If yes, then please assign points and close this thread - if no, then let us know in case you need more assistance...&lt;BR /&gt;&lt;BR /&gt;Thanks...Geoff</description>
      <pubDate>Fri, 01 Apr 2005 09:25:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-mailx-from-hp-ux-system/m-p/3514945#M218866</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-04-01T09:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding mailx from HP-UX system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-mailx-from-hp-ux-system/m-p/3514946#M218867</link>
      <description>thanks for replying folks!&lt;BR /&gt;well, think this much help should get me through .. will confirm the same asap and assign points as well.&lt;BR /&gt;&lt;BR /&gt;thanks again.&lt;BR /&gt;&lt;BR /&gt;best,&lt;BR /&gt;prakalp.</description>
      <pubDate>Fri, 01 Apr 2005 09:59:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-mailx-from-hp-ux-system/m-p/3514946#M218867</guid>
      <dc:creator>Prakalp</dc:creator>
      <dc:date>2005-04-01T09:59:53Z</dc:date>
    </item>
  </channel>
</rss>

