<?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 Why am I getting error &amp;quot;Connection refused while sending mail to: user@domain.com&amp;quot; using the sendemail command in a search? in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Why-am-I-getting-error-quot-Connection-refused-while-sending/m-p/164393#M3616</link>
    <description>&lt;P&gt;I'm running the following search in order to test my email settings (I've obfuscated the email address)&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;| top 5 host | sendemail to="&lt;A href="mailto:user@domain.com"&gt;user@domain.com&lt;/A&gt;"&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;and I'm getting this error:&lt;/P&gt;

&lt;P&gt;command="sendemail", [Errno 111] Connection refused while sending mail to: &lt;A href="mailto:user@domain.com"&gt;user@domain.com&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Is there a log that has more details, or a more verbose response?  The email config and credentials are being used elsewhere to send mail successfully.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Todd&lt;/P&gt;</description>
    <pubDate>Thu, 23 Apr 2015 17:19:58 GMT</pubDate>
    <dc:creator>toddles666</dc:creator>
    <dc:date>2015-04-23T17:19:58Z</dc:date>
    <item>
      <title>Why am I getting error "Connection refused while sending mail to: user@domain.com" using the sendemail command in a search?</title>
      <link>https://community.splunk.com/t5/Reporting/Why-am-I-getting-error-quot-Connection-refused-while-sending/m-p/164393#M3616</link>
      <description>&lt;P&gt;I'm running the following search in order to test my email settings (I've obfuscated the email address)&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;| top 5 host | sendemail to="&lt;A href="mailto:user@domain.com"&gt;user@domain.com&lt;/A&gt;"&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;and I'm getting this error:&lt;/P&gt;

&lt;P&gt;command="sendemail", [Errno 111] Connection refused while sending mail to: &lt;A href="mailto:user@domain.com"&gt;user@domain.com&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Is there a log that has more details, or a more verbose response?  The email config and credentials are being used elsewhere to send mail successfully.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Todd&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2015 17:19:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Why-am-I-getting-error-quot-Connection-refused-while-sending/m-p/164393#M3616</guid>
      <dc:creator>toddles666</dc:creator>
      <dc:date>2015-04-23T17:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Connection refused while sending mail to: user@domain.com" using the sendemail command in a search?</title>
      <link>https://community.splunk.com/t5/Reporting/Why-am-I-getting-error-quot-Connection-refused-while-sending/m-p/164394#M3617</link>
      <description>&lt;P&gt;are u doing this went you are connected locally because you needn to connected through internet to able to send mail&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2015 17:23:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Why-am-I-getting-error-quot-Connection-refused-while-sending/m-p/164394#M3617</guid>
      <dc:creator>juvetm</dc:creator>
      <dc:date>2015-04-23T17:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Connection refused while sending mail to: user@domain.com" using the sendemail command in a search?</title>
      <link>https://community.splunk.com/t5/Reporting/Why-am-I-getting-error-quot-Connection-refused-while-sending/m-p/164395#M3618</link>
      <description>&lt;P&gt;Is your splunk instance is &lt;STRONG&gt;in the cloud&lt;/STRONG&gt;? because emails goes from one server to anothers you will not be able to send emails until your splunk instance is hosted.&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2015 17:23:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Why-am-I-getting-error-quot-Connection-refused-while-sending/m-p/164395#M3618</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-04-23T17:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Connection refused while sending mail to: user@domain.com" using the sendemail command in a search?</title>
      <link>https://community.splunk.com/t5/Reporting/Why-am-I-getting-error-quot-Connection-refused-while-sending/m-p/164396#M3619</link>
      <description>&lt;P&gt;Hi  toddles666&lt;/P&gt;

&lt;P&gt;this means that the sendemail script was not able to use your mailserver. The sendemail script uses by default localhost as mailserver (set by argument server= ). This can have multiple reasons like firewall blocking or mail server refusing to accept your request or no email process/server running on localhost. Check with your network/mailserver admin.&lt;/P&gt;

&lt;P&gt;hope this helps ...&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2015 17:34:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Why-am-I-getting-error-quot-Connection-refused-while-sending/m-p/164396#M3619</guid>
      <dc:creator>juvetm</dc:creator>
      <dc:date>2015-04-23T17:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Connection refused while sending mail to: user@domain.com" using the sendemail command in a search?</title>
      <link>https://community.splunk.com/t5/Reporting/Why-am-I-getting-error-quot-Connection-refused-while-sending/m-p/164397#M3620</link>
      <description>&lt;P&gt;A little more detail:  The Splunk server is hosted on an AWS EC2 instance.  I want to use the AWS Simple Email Service (that is successfully being used elsewhere in my VPC) to send email.  The "Mail Server Settings" in the Splunk config has been configured with the AWS SES host, port, and credentials.  These settings are correct as I can send email using the email host, port, and credentials from a shell session on the instance hosting the Splunk server.  So:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Config and credentials seem to be correct&lt;/LI&gt;
&lt;LI&gt;Firewall / Security Groups do not seem to be an issue&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Is there any way I can further test or get better logging from Splunk itself?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Todd&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2015 18:32:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Why-am-I-getting-error-quot-Connection-refused-while-sending/m-p/164397#M3620</guid>
      <dc:creator>toddles666</dc:creator>
      <dc:date>2015-04-23T18:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Connection refused while sending mail to: user@domain.com" using the sendemail command in a search?</title>
      <link>https://community.splunk.com/t5/Reporting/Why-am-I-getting-error-quot-Connection-refused-while-sending/m-p/164398#M3621</link>
      <description>&lt;P&gt;Are you sure that your query is correct? Complete it as follows and let me know the result.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| sendemail to=user@mydomain.com format=html server=my.server.net from=Splunk.Alert@mydomain.com sendresults=true subject="search email test" message=search_results 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Apr 2015 20:08:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Why-am-I-getting-error-quot-Connection-refused-while-sending/m-p/164398#M3621</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-04-23T20:08:24Z</dc:date>
    </item>
  </channel>
</rss>

