<?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 How to determine a sendmail issue? in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/How-to-determine-a-sendmail-issue/m-p/434772#M7077</link>
    <description>&lt;P&gt;I am getting an error after settign up email alerting&lt;BR /&gt;
The error I get is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;08-29-2018 15:33:19.626 +0000 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python /opt/splunk/etc/apps/search/bin/sendemail.py "results_link=https://ourdomain.com/app/ourapp/@go?sid=scheduler__twaller__ourapp__ABC5980879bd671d6025_at_1535556780_96501" "ssname=Todds Test Email" "graceful=True" "trigger_time=1535556798" results_file="/opt/splunk/var/run/splunk/dispatch/scheduler__twaller__ourapp__ABC5980879bd671d6025_at_1535556780_96501/results.csv.gz"':  ERROR:root:Connection unexpectedly closed while sending mail to: me@gmail.com
My email settings are:

Mail Server Settings
Mail host
smtp-relay.gmail.com:465

Email security =Enable SSL

No username/pass

Link hostname
&lt;A href="https://ourdomain.com" target="test_blank"&gt;https://ourdomain.com&lt;/A&gt;

Send emails as
MyCompany
Any ideas why I might be getting these errors about the closing connection? I get the same when searching and using sendemail
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main | head 5 | sendemail to=me@gmail.com server=smtp-relay.gmail.com:465 subject="Here is an email notification" message="This is an example message" sendresults=true inline=true format=raw sendpdf=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I appreciate the assistance as always&lt;/P&gt;</description>
    <pubDate>Wed, 29 Aug 2018 16:18:39 GMT</pubDate>
    <dc:creator>tkwaller_2</dc:creator>
    <dc:date>2018-08-29T16:18:39Z</dc:date>
    <item>
      <title>How to determine a sendmail issue?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-determine-a-sendmail-issue/m-p/434772#M7077</link>
      <description>&lt;P&gt;I am getting an error after settign up email alerting&lt;BR /&gt;
The error I get is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;08-29-2018 15:33:19.626 +0000 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python /opt/splunk/etc/apps/search/bin/sendemail.py "results_link=https://ourdomain.com/app/ourapp/@go?sid=scheduler__twaller__ourapp__ABC5980879bd671d6025_at_1535556780_96501" "ssname=Todds Test Email" "graceful=True" "trigger_time=1535556798" results_file="/opt/splunk/var/run/splunk/dispatch/scheduler__twaller__ourapp__ABC5980879bd671d6025_at_1535556780_96501/results.csv.gz"':  ERROR:root:Connection unexpectedly closed while sending mail to: me@gmail.com
My email settings are:

Mail Server Settings
Mail host
smtp-relay.gmail.com:465

Email security =Enable SSL

No username/pass

Link hostname
&lt;A href="https://ourdomain.com" target="test_blank"&gt;https://ourdomain.com&lt;/A&gt;

Send emails as
MyCompany
Any ideas why I might be getting these errors about the closing connection? I get the same when searching and using sendemail
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main | head 5 | sendemail to=me@gmail.com server=smtp-relay.gmail.com:465 subject="Here is an email notification" message="This is an example message" sendresults=true inline=true format=raw sendpdf=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I appreciate the assistance as always&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 16:18:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-determine-a-sendmail-issue/m-p/434772#M7077</guid>
      <dc:creator>tkwaller_2</dc:creator>
      <dc:date>2018-08-29T16:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine a sendmail issue?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-determine-a-sendmail-issue/m-p/434773#M7078</link>
      <description>&lt;P&gt;Found the issue. Well issues:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;If the search takes to long the sendemail will fail with this error&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;The "Send emails as" field in the request sent to the relay server requires domain name to be within my domain. For example &lt;BR /&gt;
if my domain is google.com it will only allow emails from senders ending in @google.com&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Changed from noreply-splunkdev&lt;BR /&gt;
to &lt;A href="mailto:noreply-splunkdev@gmail.com"&gt;noreply-splunkdev@gmail.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 20:11:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-determine-a-sendmail-issue/m-p/434773#M7078</guid>
      <dc:creator>tkwaller_2</dc:creator>
      <dc:date>2018-08-29T20:11:41Z</dc:date>
    </item>
  </channel>
</rss>

