<?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 Unable to send test email from Splunk in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Unable-to-send-test-email-from-Splunk/m-p/639276#M14991</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I am trying configuring gmail smtp but when sending test email using below command getting below error.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help will be appreciated.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Command:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index=_internal | head 1 | sendemail to="XXXXXXXX@gmail.com" format="html" server=smtp.gmail.com:587 use_tls=1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;command="sendemail", (530, b'5.7.0 Authentication Required. Learn more at\n5.7.0 &lt;A href="https://support.google.com/mail/?p=WantAuthError" target="_blank" rel="noopener"&gt;https://support.google.com/mail/?p=WantAuthError&lt;/A&gt; w22-20020a1709027b9600b0019a593e45f1sm196622pll.261 - gsmtp', 'splunk@ip-172-31-36-251.ap-south-1.compute.internal') while sending mail to: @XXXXXXX@gmail.com&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 08 Apr 2023 13:09:28 GMT</pubDate>
    <dc:creator>mukeshprasad4u</dc:creator>
    <dc:date>2023-04-08T13:09:28Z</dc:date>
    <item>
      <title>Unable to send test email from Splunk</title>
      <link>https://community.splunk.com/t5/Alerting/Unable-to-send-test-email-from-Splunk/m-p/639276#M14991</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am trying configuring gmail smtp but when sending test email using below command getting below error.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help will be appreciated.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Command:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index=_internal | head 1 | sendemail to="XXXXXXXX@gmail.com" format="html" server=smtp.gmail.com:587 use_tls=1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;command="sendemail", (530, b'5.7.0 Authentication Required. Learn more at\n5.7.0 &lt;A href="https://support.google.com/mail/?p=WantAuthError" target="_blank" rel="noopener"&gt;https://support.google.com/mail/?p=WantAuthError&lt;/A&gt; w22-20020a1709027b9600b0019a593e45f1sm196622pll.261 - gsmtp', 'splunk@ip-172-31-36-251.ap-south-1.compute.internal') while sending mail to: @XXXXXXX@gmail.com&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2023 13:09:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Unable-to-send-test-email-from-Splunk/m-p/639276#M14991</guid>
      <dc:creator>mukeshprasad4u</dc:creator>
      <dc:date>2023-04-08T13:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to send test email from Splunk</title>
      <link>https://community.splunk.com/t5/Alerting/Unable-to-send-test-email-from-Splunk/m-p/667242#M15466</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;by any chance, did you find a solution for this? I got the same issue right now.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 22:28:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Unable-to-send-test-email-from-Splunk/m-p/667242#M15466</guid>
      <dc:creator>marioespbaires</dc:creator>
      <dc:date>2023-11-02T22:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to send test email from Splunk</title>
      <link>https://community.splunk.com/t5/Alerting/Unable-to-send-test-email-from-Splunk/m-p/667267#M15469</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Currently gmail don't allow use smtp server as earlier. Instead it wants to use more secure authentication. For that reason the old way is not working anymore with Splunk. Fortunately they have implemented 2-factor authentication and additional app password feature which you could use.&lt;/P&gt;&lt;P&gt;Here is steps to do it&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="https://support.google.com/accounts/answer/185833?sjid=13755993998155727325-EU#:~:text=to%2520your%2520data.-,sign%2520in%2520with%2520app%2520passwords,-Tip%253A%2520App%2520Passwords" target="_blank" rel="noopener"&gt;https://support.google.com/accounts/answer/185833?sjid=13755993998155727325-EU#:~:text=to%2520your%2520data.-,sign%2520in%2520with%2520app%2520passwords,-Tip%253A%2520App%2520Passwords&lt;BR /&gt;&lt;/A&gt;&lt;OL&gt;&lt;LI&gt;Check above instructions and ensure that you have 2-step verification on (probably this is as Google has enabled it for all)&lt;/LI&gt;&lt;LI&gt;Create a new app password for your Splunk server&lt;/LI&gt;&lt;LI&gt;Login to your local splunk instance&lt;OL&gt;&lt;OL&gt;&lt;LI&gt;Settings -&amp;gt; Server settings&lt;/LI&gt;&lt;LI&gt;Email settings&lt;OL&gt;&lt;LI&gt;Mail host: smtp.gmail.com:587&lt;/LI&gt;&lt;LI&gt;Email security: Enable TLS&lt;/LI&gt;&lt;LI&gt;Username: Your Gmail account where you have enabled 2 Step verification&lt;/LI&gt;&lt;LI&gt;Password: App password for above Gmail account&lt;/LI&gt;&lt;LI&gt;Allowed Domains: &amp;lt;add what is needed&amp;gt;&lt;/LI&gt;&lt;LI&gt;Save&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Go to search GUI:&lt;/LI&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal
| head 1
| sendemail to="&amp;lt;your test email recipient&amp;gt;" subject=test sendresults=true format=table sendcsv=false&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 09:05:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Unable-to-send-test-email-from-Splunk/m-p/667267#M15469</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-11-03T09:05:08Z</dc:date>
    </item>
  </channel>
</rss>

