<?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: Can i use sendemail without SMTP? in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Can-i-use-sendemail-without-SMTP/m-p/379176#M6491</link>
    <description>&lt;P&gt;SMTP is required to send mail from Splunk.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jul 2018 11:02:48 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2018-07-30T11:02:48Z</dc:date>
    <item>
      <title>Can i use sendemail without SMTP?</title>
      <link>https://community.splunk.com/t5/Reporting/Can-i-use-sendemail-without-SMTP/m-p/379175#M6490</link>
      <description>&lt;P&gt;Hi all, &lt;/P&gt;

&lt;P&gt;Im a new user and I've set SPLUNK to send some email alerts using sendemail from SPLUNK search head directly to a destination server.  However i don't have an smtp server setup, nor a smtp relay host.&lt;/P&gt;

&lt;P&gt;Is it possible for SPLUNK to send email alerts, without SMTP?&lt;/P&gt;

&lt;P&gt;I am currently trying but am receiving a connection error [Errno 110]&lt;/P&gt;

&lt;P&gt;I've been testing the sendemail alert using the below :&lt;BR /&gt;
&lt;CODE&gt;index="main" | head 1| sendemail to="alert@security.com" server=10.200.300.400:25 subject="test"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;10.200.300.400 is the destination server.&lt;BR /&gt;
in my mail settings, i've set the mail host as 10.200.300.400:25&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 03:51:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Can-i-use-sendemail-without-SMTP/m-p/379175#M6490</guid>
      <dc:creator>DontStopNowBaby</dc:creator>
      <dc:date>2018-07-30T03:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can i use sendemail without SMTP?</title>
      <link>https://community.splunk.com/t5/Reporting/Can-i-use-sendemail-without-SMTP/m-p/379176#M6491</link>
      <description>&lt;P&gt;SMTP is required to send mail from Splunk.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 11:02:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Can-i-use-sendemail-without-SMTP/m-p/379176#M6491</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-07-30T11:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can i use sendemail without SMTP?</title>
      <link>https://community.splunk.com/t5/Reporting/Can-i-use-sendemail-without-SMTP/m-p/379177#M6492</link>
      <description>&lt;P&gt;SMTP is Simple Mail Transport Protocol.  It’s the only protocol for sending email.  Receiving can happen on POP or IMAP but sending is always SMTP unless you’re in a Novell network or something.&lt;/P&gt;

&lt;P&gt;If you do not specify change the default server in the settings, then splunk will use localhost’s sendmail (if on Linux) to send email as the local server.  If you do specify a mail server, then it uses the server you give as a mail gateway but requires SMTP to make the connection to the mail gateway.&lt;/P&gt;

&lt;P&gt;100.200.300.400 is not a valid IP address.  I assume you’re just giving any example, but wanted to mention that.&lt;/P&gt;

&lt;P&gt;Run this search to find the errors, and then tell us what error you’re getting.&lt;/P&gt;

&lt;P&gt;index=_internal sendmail&lt;/P&gt;

&lt;P&gt;So to answer your question, SMTP is required to send any email from any software.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 12:15:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Can-i-use-sendemail-without-SMTP/m-p/379177#M6492</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2018-07-30T12:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can i use sendemail without SMTP?</title>
      <link>https://community.splunk.com/t5/Reporting/Can-i-use-sendemail-without-SMTP/m-p/379178#M6493</link>
      <description>&lt;P&gt;Yeap the IP 100.200.300.400 is just a fake IP i gave as an example.&lt;/P&gt;

&lt;P&gt;im running the splunk on linux instance, and have left the mail server as blank. &lt;BR /&gt;
Do i need to configure anything on splunk to enable sending mail? or would it be enabled by default?&lt;BR /&gt;
Apologies if the questions seem rather noobish, but i've inherited a splunk setup without prior knowledge.&lt;/P&gt;

&lt;P&gt;Running the command &lt;EM&gt;index=_internal sendmail&lt;/EM&gt; you gave showed no errors. &lt;BR /&gt;
However i'm not sure what the logs are deciphering : &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;07-31-2018&amp;nbsp;09:37:34.928&amp;nbsp;+0800&amp;nbsp;INFO&amp;nbsp;StreamedSearch&amp;nbsp;-&amp;nbsp;Streamed&amp;nbsp;search&amp;nbsp;search&amp;nbsp;starting:&amp;nbsp;search_id=remote_server_1533001054.153589,&amp;nbsp;server=SearchHead,&amp;nbsp;active_searches=2,&amp;nbsp;search='litsearch&amp;nbsp;(&amp;nbsp;index=_internal&amp;nbsp;sendmail&amp;nbsp;) |&amp;nbsp;fields&amp;nbsp;keepcolorder=t&amp;nbsp;"*" "_bkt" "_cd" "_si" "host" "index" "linecount" "source" "sourcetype" "splunk_server" |&amp;nbsp;remotetl&amp;nbsp;nb=300&amp;nbsp;et=1532912400.000000&amp;nbsp;lt=1533001054.000000&amp;nbsp;remove=true&amp;nbsp;max_count=1000&amp;nbsp;max_prefetch=100',&amp;nbsp;remote_ttl=600,&amp;nbsp;apiStartTime='Mon&amp;nbsp;Jul&amp;nbsp;30&amp;nbsp;09:00:00&amp;nbsp;2018',&amp;nbsp;apiEndTime='Tue&amp;nbsp;Jul&amp;nbsp;31&amp;nbsp;09:37:34&amp;nbsp;2018',&amp;nbsp;savedsearch_name="" &lt;BR /&gt;
` &lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;By the way is is possible to use the sendemail without SMTP?&lt;BR /&gt;
Like can i refer the mailhost to the splunk indexer?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:41:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Can-i-use-sendemail-without-SMTP/m-p/379178#M6493</guid>
      <dc:creator>DontStopNowBaby</dc:creator>
      <dc:date>2020-09-29T20:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can i use sendemail without SMTP?</title>
      <link>https://community.splunk.com/t5/Reporting/Can-i-use-sendemail-without-SMTP/m-p/379179#M6494</link>
      <description>&lt;P&gt;The log message you clipped is the result of your own search for &lt;CODE&gt;index=_internal sendmail&lt;/CODE&gt;.  I usually ignore those unless I'm debugging a search problem.  Add &lt;CODE&gt;sourcetype!=splunkd_remote_searches&lt;/CODE&gt; to your query.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 11:22:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Can-i-use-sendemail-without-SMTP/m-p/379179#M6494</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-07-31T11:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can i use sendemail without SMTP?</title>
      <link>https://community.splunk.com/t5/Reporting/Can-i-use-sendemail-without-SMTP/m-p/379180#M6495</link>
      <description>&lt;P&gt;It defaults to localhost correct &lt;BR /&gt;
@richgalloway ?  I updated my answer as such.  Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 11:29:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Can-i-use-sendemail-without-SMTP/m-p/379180#M6495</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2018-07-31T11:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can i use sendemail without SMTP?</title>
      <link>https://community.splunk.com/t5/Reporting/Can-i-use-sendemail-without-SMTP/m-p/379181#M6496</link>
      <description>&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" attribute (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")
* Defaults to $LOCALHOST:25.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Jul 2018 11:34:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Can-i-use-sendemail-without-SMTP/m-p/379181#M6496</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2018-07-31T11:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can i use sendemail without SMTP?</title>
      <link>https://community.splunk.com/t5/Reporting/Can-i-use-sendemail-without-SMTP/m-p/379182#M6497</link>
      <description>&lt;P&gt;I added the &lt;CODE&gt;sourcetype!=splunkd_remote_searches&lt;/CODE&gt;. But its not showing anything helpful&lt;BR /&gt;
I'll try to set the mailserver to a SMTP gateway, and test. &lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 02:30:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Can-i-use-sendemail-without-SMTP/m-p/379182#M6497</guid>
      <dc:creator>DontStopNowBaby</dc:creator>
      <dc:date>2018-08-01T02:30:14Z</dc:date>
    </item>
  </channel>
</rss>

