<?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 Mail redirection in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-redirection/m-p/4994665#M423071</link>
    <description>I have a cron job that i use to run the oracle export and another one to back the exported files to a tape, my ron jobs run for user root, and an email is sent to the root user with the cron results.&lt;BR /&gt;OIn my environment i got Microsoft Exchange mail system, is there any way that i can redirect the mail, i mean instead of going to the system root mail files, i want it to go to my exchange mail.&lt;BR /&gt;and if it is possible, can i forward only the cron mail to go to my exchange.</description>
    <pubDate>Wed, 02 Aug 2006 00:50:02 GMT</pubDate>
    <dc:creator>BAUKnight</dc:creator>
    <dc:date>2006-08-02T00:50:02Z</dc:date>
    <item>
      <title>Mail redirection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-redirection/m-p/4994665#M423071</link>
      <description>I have a cron job that i use to run the oracle export and another one to back the exported files to a tape, my ron jobs run for user root, and an email is sent to the root user with the cron results.&lt;BR /&gt;OIn my environment i got Microsoft Exchange mail system, is there any way that i can redirect the mail, i mean instead of going to the system root mail files, i want it to go to my exchange mail.&lt;BR /&gt;and if it is possible, can i forward only the cron mail to go to my exchange.</description>
      <pubDate>Wed, 02 Aug 2006 00:50:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-redirection/m-p/4994665#M423071</guid>
      <dc:creator>BAUKnight</dc:creator>
      <dc:date>2006-08-02T00:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Mail redirection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-redirection/m-p/4994666#M423072</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;1) Set the exchange server to explicitly accept   mail from the host running the cron job. It must permit relay and that should be set by IP address.&lt;BR /&gt;2) Modify /etc/mail/sendmail.cf Change DS to&lt;BR /&gt;DShostnameofexchangeserver&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;DS&lt;BR /&gt;[ip of exchange server]&lt;BR /&gt;example&lt;BR /&gt;&lt;BR /&gt;DS&lt;BR /&gt;[192.168.0.10] &lt;BR /&gt;Where 192.168.0.10 is the IP address of the exchange server.&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/sendmail stop&lt;BR /&gt;/sbin/init.d/sendmail start&lt;BR /&gt;&lt;BR /&gt;Done.&lt;BR /&gt;&lt;BR /&gt;check /var/adm/syslog/mail.log for diagnostics.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 02 Aug 2006 01:11:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-redirection/m-p/4994666#M423072</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-08-02T01:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Mail redirection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-redirection/m-p/4994667#M423073</link>
      <description>Register tour server to mail server and edit /etc/mail/sendmail.cf&lt;BR /&gt;add your mail server that use to relay,, put in DS line.&lt;BR /&gt;ex:&lt;BR /&gt;DSsmtprelay.xxx.com&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-yut-</description>
      <pubDate>Wed, 02 Aug 2006 05:50:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-redirection/m-p/4994667#M423073</guid>
      <dc:creator>yulianto piyut</dc:creator>
      <dc:date>2006-08-02T05:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Mail redirection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-redirection/m-p/4994668#M423074</link>
      <description>If you pipe the results to mailx in your crontab, it should send the results to the address you specify (assuming that sendmail and the relay are configured, as mentioned above). eg:&lt;BR /&gt;&lt;BR /&gt;0 2 * * * su - oracle -c "/export/script.sh" 2&amp;gt;&amp;amp;1 | mailx -s "Oracle export results" you@youremail.com &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;And just as a side note, if you wanted to redirect ALL of root's mail you could create a file called .forward in root's home dir, and put the email you'd like to forward everything to in the contents.&lt;BR /&gt;&lt;BR /&gt;# echo you@youremail.com &amp;gt; ~/.forward&lt;BR /&gt;# at now&lt;BR /&gt;echo "testing email from $(hostname)"&lt;BR /&gt;^D&lt;BR /&gt;#</description>
      <pubDate>Wed, 02 Aug 2006 07:27:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-redirection/m-p/4994668#M423074</guid>
      <dc:creator>Jonathan Fife</dc:creator>
      <dc:date>2006-08-02T07:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Mail redirection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-redirection/m-p/4994669#M423075</link>
      <description>&lt;!--!*#--&gt;Hi Ahmed,&lt;BR /&gt;&lt;BR /&gt;Besides the .forward file, you can also use /etc/mail/aliases. You can redirect emails for any of your Unix sign-ons all from this file.  For example, if you wish to redirect root's mail, add the line:&lt;BR /&gt;root  :  joeadmin@yourdomain&lt;BR /&gt;Save the file, and then run sendmail -bi which will update the alias db.</description>
      <pubDate>Thu, 03 Aug 2006 10:08:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-redirection/m-p/4994669#M423075</guid>
      <dc:creator>Alan Buynak</dc:creator>
      <dc:date>2006-08-03T10:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Mail redirection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-redirection/m-p/4994670#M423076</link>
      <description>thx customer cancled the issue.</description>
      <pubDate>Thu, 22 Feb 2007 01:49:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-redirection/m-p/4994670#M423076</guid>
      <dc:creator>BAUKnight</dc:creator>
      <dc:date>2007-02-22T01:49:33Z</dc:date>
    </item>
  </channel>
</rss>

