<?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: Why is sendemail not using correct mailserver? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Why-is-sendemail-not-using-correct-mailserver/m-p/468451#M8317</link>
    <description>&lt;P&gt;does setting smtp server in savedsearches.conf helps?&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2020 07:56:28 GMT</pubDate>
    <dc:creator>PavelP</dc:creator>
    <dc:date>2020-02-11T07:56:28Z</dc:date>
    <item>
      <title>Why is sendemail not using correct mailserver?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-sendemail-not-using-correct-mailserver/m-p/468448#M8314</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I've been trying to get my splunk instance to send out email alerts using Amazon SES SMTP server without much luck.&lt;/P&gt;

&lt;P&gt;The error in my python.log file seems to suggest that it is not collecting the correct server I have configured under &lt;CODE&gt;Settings&lt;/CODE&gt; -&amp;gt; &lt;CODE&gt;Server settings&lt;/CODE&gt; -&amp;gt; &lt;CODE&gt;Email settings&lt;/CODE&gt; - or &lt;CODE&gt;alert_actions.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The error being:&lt;BR /&gt;
&lt;CODE&gt;ERROR     sendemail:142 - Sending email. ... server="localhost"&lt;BR /&gt;
ERROR     sendemail:473 - [Errno 111] Connection refused while sending mail to: email@domain.com&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;oddly enough, it gathers &lt;CODE&gt;email@domain.com&lt;/CODE&gt; just fine as defined in my alert definition.&lt;/P&gt;

&lt;P&gt;I've seen other posts on here suggesting that values in &lt;CODE&gt;savedsearches.conf&lt;/CODE&gt; can override the &lt;CODE&gt;action.email.mailserver&lt;/CODE&gt; configuration, but I see no such file in my &lt;CODE&gt;local&lt;/CODE&gt; config directory or any other suggestion of a conflict for &lt;CODE&gt;action.email.mailserver&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 20:25:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-sendemail-not-using-correct-mailserver/m-p/468448#M8314</guid>
      <dc:creator>davidblader</dc:creator>
      <dc:date>2020-02-06T20:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why is sendemail not using correct mailserver?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-sendemail-not-using-correct-mailserver/m-p/468449#M8315</link>
      <description>&lt;P&gt;you can check with btool if some app override the setting by unsetting the value:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  /opt/splunk/bin/splunk btool savesearches list --debug|grep mailserver

  /opt/splunk/bin/splunk btool alert_actions list --debug|grep mailserver
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;savedsearches.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;action.email.mailserver = &amp;lt;string&amp;gt;
* Set the address of the MTA server to be used to send the emails.
* Defaults to &amp;lt;LOCALHOST&amp;gt;
    (or the 'mailserver' setting in alert_actions.conf file)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;alert_actions.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;mailserver = &amp;lt;host&amp;gt;[:&amp;lt;port&amp;gt;]
* You must have a Simple Mail Transfer Protocol (SMTP) server available
  to send email. This is not included with Splunk.
* Specifies the SMTP mail server to use when sending emails.
* &amp;lt;host&amp;gt; can be either the hostname or the IP address.
* Optionally, specify the SMTP &amp;lt;port&amp;gt; that Splunk should connect to.
* When the 'use_ssl' setting (see below) is set to 1 (true), you
  must specify both &amp;lt;host&amp;gt; and &amp;lt;port&amp;gt;.
  (Example: "example.com:465")
* Default: $LOCALHOST:25
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Feb 2020 21:18:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-sendemail-not-using-correct-mailserver/m-p/468449#M8315</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-02-06T21:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why is sendemail not using correct mailserver?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-sendemail-not-using-correct-mailserver/m-p/468450#M8316</link>
      <description>&lt;P&gt;Hey, thanks for the response!&lt;/P&gt;

&lt;P&gt;running these both gave me&lt;/P&gt;

&lt;P&gt;/opt/splunk/bin/splunkd: error while loading shared libraries: libjemalloc.so.2: cannot open shared object file: No such file or directory&lt;/P&gt;

&lt;P&gt;EDIT: Disregard, misread the commands you provided. no results for the first command, the second command spits out the correct smtp server that I'm expecting. No overwrites.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 21:41:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-sendemail-not-using-correct-mailserver/m-p/468450#M8316</guid>
      <dc:creator>davidblader</dc:creator>
      <dc:date>2020-02-06T21:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why is sendemail not using correct mailserver?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-sendemail-not-using-correct-mailserver/m-p/468451#M8317</link>
      <description>&lt;P&gt;does setting smtp server in savedsearches.conf helps?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 07:56:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-sendemail-not-using-correct-mailserver/m-p/468451#M8317</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-02-11T07:56:28Z</dc:date>
    </item>
  </channel>
</rss>

