<?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: How to use SMTP AUTH for action.email.mailserver emails? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-use-SMTP-AUTH-for-action-email-mailserver-emails/m-p/10852#M40</link>
    <description>&lt;P&gt;SMTP authentication should be possible in Splunk 4.2.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Dec 2010 08:40:48 GMT</pubDate>
    <dc:creator>araitz</dc:creator>
    <dc:date>2010-12-30T08:40:48Z</dc:date>
    <item>
      <title>How to use SMTP AUTH for action.email.mailserver emails?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-use-SMTP-AUTH-for-action-email-mailserver-emails/m-p/10849#M37</link>
      <description>&lt;P&gt;I need alert emails generated by saved search monitors to be delivered via an email server that requires SMTP Authentication.&lt;/P&gt;

&lt;P&gt;How can I specify SMTP AUTH credentials with action.email.* values?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2010 18:37:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-use-SMTP-AUTH-for-action-email-mailserver-emails/m-p/10849#M37</guid>
      <dc:creator>mashery</dc:creator>
      <dc:date>2010-04-02T18:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to use SMTP AUTH for action.email.mailserver emails?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-use-SMTP-AUTH-for-action-email-mailserver-emails/m-p/10850#M38</link>
      <description>&lt;P&gt;There are a couple of ways to do this:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;You could customize and modify the sendemail.py python script that actually does the sending. The original is located in &lt;CODE&gt;$SPLUNK_HOME/etc/apps/search/bin/&lt;/CODE&gt;. Rather than modifying the delivered file directly though (it will get clobbered on updates), you can create a version with a different name and either: override &lt;CODE&gt;[sendemail]&lt;/CODE&gt; in &lt;CODE&gt;etc/apps/search/default/commands.conf&lt;/CODE&gt; with a local .conf file, which will make Splunk just use the new version; or create a new &lt;CODE&gt;commands.conf&lt;/CODE&gt; entry and override the &lt;CODE&gt;command&lt;/CODE&gt; setting in the &lt;CODE&gt;[email]&lt;/CODE&gt; stanza in &lt;CODE&gt;etc/system/default/alert_actions.conf&lt;/CODE&gt;.&lt;/LI&gt;
&lt;LI&gt;Another way that some prefer is to leave Splunk unmodified and configure your own SMTP server (e.g., one that is already running on the Splunk server) to authenticate to and relay all mail to the desired authentication-requiring SMTP server, leave yours to accept mail with no authentication, and have Splunk send messages to this local server. (You'll want to make sure your server is reachable only locally in this case.) You would follow instructions to set up your local SMTP server to perform SASL authentication to the desired outbound relay. A couple of simple examples with sendmail and postfix are here: &lt;A href="http://www.screaming-penguin.com/node/4214" rel="nofollow"&gt;http://www.screaming-penguin.com/node/4214&lt;/A&gt; and here: &lt;A href="http://www.riverturn.com/blog/?p=239" rel="nofollow"&gt;http://www.riverturn.com/blog/?p=239&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 02 Apr 2010 21:03:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-use-SMTP-AUTH-for-action-email-mailserver-emails/m-p/10850#M38</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-04-02T21:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to use SMTP AUTH for action.email.mailserver emails?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-use-SMTP-AUTH-for-action-email-mailserver-emails/m-p/10851#M39</link>
      <description>&lt;P&gt;GERALD, &lt;/P&gt;

&lt;P&gt;Can you post a sample sendemail.py script that has been modified to do SMTP AUTH?&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2010 03:39:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-use-SMTP-AUTH-for-action-email-mailserver-emails/m-p/10851#M39</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2010-12-30T03:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to use SMTP AUTH for action.email.mailserver emails?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-use-SMTP-AUTH-for-action-email-mailserver-emails/m-p/10852#M40</link>
      <description>&lt;P&gt;SMTP authentication should be possible in Splunk 4.2.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2010 08:40:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-use-SMTP-AUTH-for-action-email-mailserver-emails/m-p/10852#M40</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2010-12-30T08:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to use SMTP AUTH for action.email.mailserver emails?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-use-SMTP-AUTH-for-action-email-mailserver-emails/m-p/10853#M41</link>
      <description>&lt;P&gt;No, I can't. But it's just a matter of getting the credentials, then inserting a call to &lt;CODE&gt;smtp.login()&lt;/CODE&gt; &lt;A href="http://docs.python.org/library/smtplib.html#smtplib.SMTP.login"&gt;http://docs.python.org/library/smtplib.html#smtplib.SMTP.login&lt;/A&gt; after creating the &lt;CODE&gt;smtp&lt;/CODE&gt; in the line &lt;CODE&gt;smtp = smtplib.SMTP(serverURL)&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2011 12:34:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-use-SMTP-AUTH-for-action-email-mailserver-emails/m-p/10853#M41</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-02-02T12:34:02Z</dc:date>
    </item>
  </channel>
</rss>

