<?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: Send email from command in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Send-email-from-command/m-p/68938#M10312</link>
    <description>&lt;P&gt;It appears that your splunk server is not allowed to relay via the smtp.sina.com.cn server. Splunk uses your $LOCALHOST variable to pass to the SMTP server. You might be able to adjust your hostname to be a fully qualified name, the SMTP server might accept it then. Alternatively you could also allow the Splunk server's IP to relay mail.&lt;/P&gt;

&lt;P&gt;Any reason you can't just use the cnmail.systex.com.cn that already works to send your email?&lt;/P&gt;</description>
    <pubDate>Tue, 12 Oct 2010 21:37:44 GMT</pubDate>
    <dc:creator>ftk</dc:creator>
    <dc:date>2010-10-12T21:37:44Z</dc:date>
    <item>
      <title>Send email from command</title>
      <link>https://community.splunk.com/t5/Reporting/Send-email-from-command/m-p/68937#M10311</link>
      <description>&lt;P&gt;Some customers ask questions about how to send email from web. And I did a test. I input command &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"sourcetype="access_combined" |head 10 | sendemail to="michael_wu@ucom.net.cn" format=html subject="web access log" server=cnmail.systex.com.cn"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and received the results form "cnmail.systex.com.cn" which is our company's mail server. When I rewrite the command as follow&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="access_combined" |head 10 | sendemail to="wys23@sina.com" format=html subject="web access log" server=smtp.sina.com.cn"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which is a public server I registered. I find error messages &lt;STRONG&gt;&lt;EM&gt;"(501, "#5.1.3 Partial domain not allowed: 'Jordan-PC'", 'splunk@Jordan-PC') while sending mail to: wys23@sina.com&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Is this a error which is arised from the server smtp.sina.com.cn deny spam mail? &lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2010 17:29:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Send-email-from-command/m-p/68937#M10311</guid>
      <dc:creator>wys2010</dc:creator>
      <dc:date>2010-10-12T17:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Send email from command</title>
      <link>https://community.splunk.com/t5/Reporting/Send-email-from-command/m-p/68938#M10312</link>
      <description>&lt;P&gt;It appears that your splunk server is not allowed to relay via the smtp.sina.com.cn server. Splunk uses your $LOCALHOST variable to pass to the SMTP server. You might be able to adjust your hostname to be a fully qualified name, the SMTP server might accept it then. Alternatively you could also allow the Splunk server's IP to relay mail.&lt;/P&gt;

&lt;P&gt;Any reason you can't just use the cnmail.systex.com.cn that already works to send your email?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2010 21:37:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Send-email-from-command/m-p/68938#M10312</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2010-10-12T21:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Send email from command</title>
      <link>https://community.splunk.com/t5/Reporting/Send-email-from-command/m-p/68939#M10313</link>
      <description>&lt;P&gt;Based on the error, its possible that updating the hostname in your alert_actions.conf file will resolve this.  The mail is rejected due to "Partial domain not allowed: 'Jordan-PC'".  What if you update your hostname to a fully qualified domain name?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2010 23:23:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Send-email-from-command/m-p/68939#M10313</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2010-10-12T23:23:54Z</dc:date>
    </item>
  </channel>
</rss>

