<?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: mailing with attachment outside domain problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mailing-with-attachment-outside-domain-problem/m-p/4895178#M845119</link>
    <description>Hi RAC,&lt;BR /&gt;&lt;BR /&gt;The -EOF escape leading tabs in the second EOF. That's not the problem, but only for nicely identing scripts. Some people love it, some hate it like their mother in law... &lt;BR /&gt;&lt;BR /&gt;The syntax is OK, but let me trie to explain. When you mail like:&lt;BR /&gt;&lt;BR /&gt;mailx -r ${reply_adress} -m -s "${subject}" ${address} &amp;lt;&amp;lt;-EOF&lt;BR /&gt;Hey dude,&lt;BR /&gt;&lt;BR /&gt;blah blah&lt;BR /&gt;&lt;BR /&gt;Here is the attachment: ${alias}&lt;BR /&gt;~&amp;lt; ! uuencode ${file} ${alias}&lt;BR /&gt;&lt;BR /&gt;Cheers man!&lt;BR /&gt;&lt;BR /&gt;~.&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;The tildes [~] are disabled (see man mailx) and no attachment will be sent. &lt;BR /&gt;&lt;BR /&gt;When you mail without the -r option the mail somewhere dissapeares. &lt;BR /&gt;What I like to know is: Can I replace the tilde commands with something else? i.e.&lt;BR /&gt;hubbabubba ~&amp;lt; ! uuencode ${file} ${alias}&lt;BR /&gt;...&lt;BR /&gt;hubbabubba.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Renarios</description>
    <pubDate>Fri, 08 Apr 2005 08:52:35 GMT</pubDate>
    <dc:creator>renarios</dc:creator>
    <dc:date>2005-04-08T08:52:35Z</dc:date>
    <item>
      <title>mailing with attachment outside domain problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailing-with-attachment-outside-domain-problem/m-p/4895174#M845115</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have two functions in a shell script which mails an attachment. The first one gives a notification to me if the script was executed successfully (displayed below)&lt;BR /&gt;The second function mails a data file to several people. &lt;BR /&gt;The script is executed from a HP-UX 11.11 box&lt;BR /&gt;&lt;BR /&gt;function f_success_mail&lt;BR /&gt;{&lt;BR /&gt;  subject=" Script ${SCRIPTFILE} executed successfully"&lt;BR /&gt;&lt;BR /&gt;    printf "\a \n  ${subject} \n \n" &amp;gt;&amp;gt; ${LOGFILE}&lt;BR /&gt;&lt;BR /&gt;    logalias=verslag.log&lt;BR /&gt;  # echo "Convert file to DOS mode..."&lt;BR /&gt;  unix2dos ${LOGFILE} ${LOGFILE} 2&amp;gt;/dev/null&lt;BR /&gt;&lt;BR /&gt;  # Send the E-mail message...&lt;BR /&gt;  /usr/bin/mailx -m -s "${subject}" ${SUCCESS_ADDRESS} &amp;lt;&amp;lt;-EOF&lt;BR /&gt;&lt;BR /&gt;  Hi,&lt;BR /&gt;&lt;BR /&gt;  Script ${SCRIPTFILE} runned successfully.&lt;BR /&gt;&lt;BR /&gt;  See attachment: ${logalias}&lt;BR /&gt; ~&amp;lt; ! uuencode ${LOGFILE} ${logalias}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  This email message was created automatically by UNIX&lt;BR /&gt;&lt;BR /&gt;  ~.&lt;BR /&gt;  EOF&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;The problem is: The second function does will only be delivered to people inside our domain, but it will not be delivered outside our domain.&lt;BR /&gt;&lt;BR /&gt;The mail.log on HP-UX tells me: “Message accepted for delivery”&lt;BR /&gt;In the maillog of the smart relay host (a linux can) the following line occurs:&lt;BR /&gt;Apr  8 08:45:34 hrn20 sendmail[14100]: j386jBl9014079: to=&lt;J.LOF&gt;, delay=00:00:23, xdelay=00:00:06, mailer=esmtp, pri=175848, relay=mx1.bit.nl. [xxx.xxx.xx.xxx], dsn=5.6.0, stat=Data format error.&lt;BR /&gt;I think that the oracle@srv-h.foo.nl&lt;BR /&gt;&lt;BR /&gt;If I use the -r option (return address) the mail will be sent without the attachment, because the -r option disables all tilde commands. If I send the mail without the –r option the mail probably gets rejected by the mail relay server.&lt;BR /&gt;&lt;BR /&gt;Does anyone have a good advice (I prefer a solution though)? &lt;BR /&gt;&lt;BR /&gt;Rena&lt;/J.LOF&gt;</description>
      <pubDate>Fri, 08 Apr 2005 07:52:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailing-with-attachment-outside-domain-problem/m-p/4895174#M845115</guid>
      <dc:creator>renarios</dc:creator>
      <dc:date>2005-04-08T07:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: mailing with attachment outside domain problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailing-with-attachment-outside-domain-problem/m-p/4895175#M845116</link>
      <description>Rena,&lt;BR /&gt;as a start, please have a look at:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=72171" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=72171&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=195304" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=195304&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=81309" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=81309&lt;/A&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Apr 2005 08:16:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailing-with-attachment-outside-domain-problem/m-p/4895175#M845116</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2005-04-08T08:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: mailing with attachment outside domain problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailing-with-attachment-outside-domain-problem/m-p/4895176#M845117</link>
      <description>Hi Peter, thanks for your quick reply! &lt;BR /&gt;&lt;BR /&gt;I already found those threads in another forum, but since i am DBA and do not have access as root of the relay host, I first hope to find the solution in my syntax instead of annoying our system administrator with sendmail configuration changes, because he is very busy with another project and I yet don't want to die.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Renarios</description>
      <pubDate>Fri, 08 Apr 2005 08:29:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailing-with-attachment-outside-domain-problem/m-p/4895176#M845117</guid>
      <dc:creator>renarios</dc:creator>
      <dc:date>2005-04-08T08:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: mailing with attachment outside domain problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailing-with-attachment-outside-domain-problem/m-p/4895177#M845118</link>
      <description>The one problem that I noticed with with your syntax is as follows. your here doc start with -EOF and ends with EOF. Shouldn't it start and end with same word?? EOF and EOF.&lt;BR /&gt;&lt;BR /&gt;Other than this there seems to be no error with syntax.</description>
      <pubDate>Fri, 08 Apr 2005 08:37:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailing-with-attachment-outside-domain-problem/m-p/4895177#M845118</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-04-08T08:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: mailing with attachment outside domain problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailing-with-attachment-outside-domain-problem/m-p/4895178#M845119</link>
      <description>Hi RAC,&lt;BR /&gt;&lt;BR /&gt;The -EOF escape leading tabs in the second EOF. That's not the problem, but only for nicely identing scripts. Some people love it, some hate it like their mother in law... &lt;BR /&gt;&lt;BR /&gt;The syntax is OK, but let me trie to explain. When you mail like:&lt;BR /&gt;&lt;BR /&gt;mailx -r ${reply_adress} -m -s "${subject}" ${address} &amp;lt;&amp;lt;-EOF&lt;BR /&gt;Hey dude,&lt;BR /&gt;&lt;BR /&gt;blah blah&lt;BR /&gt;&lt;BR /&gt;Here is the attachment: ${alias}&lt;BR /&gt;~&amp;lt; ! uuencode ${file} ${alias}&lt;BR /&gt;&lt;BR /&gt;Cheers man!&lt;BR /&gt;&lt;BR /&gt;~.&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;The tildes [~] are disabled (see man mailx) and no attachment will be sent. &lt;BR /&gt;&lt;BR /&gt;When you mail without the -r option the mail somewhere dissapeares. &lt;BR /&gt;What I like to know is: Can I replace the tilde commands with something else? i.e.&lt;BR /&gt;hubbabubba ~&amp;lt; ! uuencode ${file} ${alias}&lt;BR /&gt;...&lt;BR /&gt;hubbabubba.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Renarios</description>
      <pubDate>Fri, 08 Apr 2005 08:52:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailing-with-attachment-outside-domain-problem/m-p/4895178#M845119</guid>
      <dc:creator>renarios</dc:creator>
      <dc:date>2005-04-08T08:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: mailing with attachment outside domain problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailing-with-attachment-outside-domain-problem/m-p/4895179#M845120</link>
      <description>Rena -&lt;BR /&gt;Didn't look at the other url threads, but you should get your SA to put an entry in your send mail configuration file for the mail server in your environment.&lt;BR /&gt;&lt;BR /&gt;This was the edit our shop required.&lt;BR /&gt;&lt;BR /&gt;Best of luck.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;dl</description>
      <pubDate>Fri, 08 Apr 2005 12:54:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailing-with-attachment-outside-domain-problem/m-p/4895179#M845120</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2005-04-08T12:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: mailing with attachment outside domain problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailing-with-attachment-outside-domain-problem/m-p/4895180#M845121</link>
      <description>What does the local mail.log file say??</description>
      <pubDate>Fri, 08 Apr 2005 15:12:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailing-with-attachment-outside-domain-problem/m-p/4895180#M845121</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-04-08T15:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: mailing with attachment outside domain problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailing-with-attachment-outside-domain-problem/m-p/4895181#M845122</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;Excuse me for the late reply, I had a day off yesterday. I have found the solution. To get rid of the tilde commands, I used the following command: &lt;BR /&gt;&lt;BR /&gt;mailx -r ${SENDER} -m -s ${subject} ${RECEIVER} &amp;lt;&amp;lt; EOF&lt;BR /&gt;$(ux2dos ${DATFILE} | uuencode ${filealias})&lt;BR /&gt;Hey dude,&lt;BR /&gt;&lt;BR /&gt;blah blah&lt;BR /&gt;&lt;BR /&gt;Here is the attachment: ${alias}&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;Thanks for all the replies.&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Renarios</description>
      <pubDate>Tue, 12 Apr 2005 01:14:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailing-with-attachment-outside-domain-problem/m-p/4895181#M845122</guid>
      <dc:creator>renarios</dc:creator>
      <dc:date>2005-04-12T01:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: mailing with attachment outside domain problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailing-with-attachment-outside-domain-problem/m-p/4895182#M845123</link>
      <description>I lost the URL, but this is where I found the solution in:&lt;BR /&gt;&lt;BR /&gt;Mail No attachment, body only -&lt;BR /&gt;&lt;BR /&gt;mailx -m -s "Some Subject" somone@somewhere.com &amp;lt; file_for_email_body&lt;BR /&gt;&lt;BR /&gt;Mail with attachement, no body -&lt;BR /&gt;&lt;BR /&gt;ux2dos /path_to/some_file | uuencode some_file.txt | mailx -m -s "MAIL FROM Someone" someone@somewhere.com&lt;BR /&gt;&lt;BR /&gt;Mail with attachment and body -&lt;BR /&gt;&lt;BR /&gt;ux2dos /path_to/some_file | uuencode some_file.txt | mailx -m -s "MAIL FROM Someone" someone@somewhere.com &amp;lt; file_for_email_body&lt;BR /&gt;&lt;BR /&gt;Mail with carbon and blind carbon -&lt;BR /&gt;&lt;BR /&gt;mailx -m -s "Some Subject" somone@somewhere.com &amp;lt; file_for_email_body&lt;BR /&gt;&lt;BR /&gt;(the file_for_email_body should look like this - )&lt;BR /&gt;~c someone_to_cc@somewhere.com&lt;BR /&gt;~b someone_to_bc@somewhere.com&lt;BR /&gt;The remainder of this file is the text body of the email.&lt;BR /&gt;&lt;BR /&gt;Mail as another sender&lt;BR /&gt;&lt;BR /&gt;echo "Hello" | mailx -m -s "Greeting" -r Santa.Claus@north_pole.com someone@somewhere.com&lt;BR /&gt;&lt;BR /&gt;Mail with multiple attachments (The sentence "This is all you get." will appear as the body.)&lt;BR /&gt;&lt;BR /&gt;mailx -m -s "Hello" someone@somewhere.com &amp;lt;&amp;lt; END&lt;BR /&gt;`ux2dos /home/some_file | uuencode some_file.txt`&lt;BR /&gt;`ux2dos /home/some_other_file | uuencode some_other_file.txt`&lt;BR /&gt;This is all you get.&lt;BR /&gt;END&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Renarios</description>
      <pubDate>Tue, 12 Apr 2005 01:21:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailing-with-attachment-outside-domain-problem/m-p/4895182#M845123</guid>
      <dc:creator>renarios</dc:creator>
      <dc:date>2005-04-12T01:21:46Z</dc:date>
    </item>
  </channel>
</rss>

