<?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: Email Configuration Setting is not working for smtp.gmail.com in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/Email-Configuration-Setting-is-not-working-for-smtp-gmail-com/m-p/414550#M6426</link>
    <description>&lt;P&gt;It is because Google blocks  sign-in attempts from apps which do not use modern security standards (mentioned on their support page). You can however, turn on/off this safety feature by going to the link below:&lt;/P&gt;

&lt;P&gt;Go to this link and select Turn On&lt;BR /&gt;
&lt;A href="https://www.google.com/settings/security/lesssecureapps"&gt;https://www.google.com/settings/security/lesssecureapps&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Moreover google block an ip when you try to send a &lt;A href="http://net-informations.com/python/net/email.htm"&gt;email&lt;/A&gt; since a unusual location, so, you can unblock in the next link&lt;BR /&gt;
&lt;A href="https://support.google.com/accounts/answer/6009563"&gt;https://support.google.com/accounts/answer/6009563&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;and clicked in&lt;/P&gt;

&lt;P&gt;accounts.google.com/DisplayUnlockCaptcha .&lt;/P&gt;</description>
    <pubDate>Fri, 26 Apr 2019 07:05:54 GMT</pubDate>
    <dc:creator>johnkimber</dc:creator>
    <dc:date>2019-04-26T07:05:54Z</dc:date>
    <item>
      <title>Email Configuration Setting is not working for smtp.gmail.com</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Email-Configuration-Setting-is-not-working-for-smtp-gmail-com/m-p/414548#M6424</link>
      <description>&lt;P&gt;We have configured Email Settings referring &lt;A href="https://www.splunk.com/blog/2014/06/27/splunk-alerts-using-gmail-twitter-phone-calls-and-much-more.html" target="_blank"&gt;https://www.splunk.com/blog/2014/06/27/splunk-alerts-using-gmail-twitter-phone-calls-and-much-more.html&lt;/A&gt; and &lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/38624/how-to-configure-email-alert-using-gmail-smtp.html?utm_source=newcase&amp;amp;utm_medium=clickquestion&amp;amp;utm_campaign=Grabtaxi&amp;amp;utm_term=Email%20Configuration%20Setting%20is%20not%20working%20for%20smtp.gmail.com&amp;amp;utm_content=1" target="_blank"&gt;https://answers.splunk.com/answers/38624/how-to-configure-email-alert-using-gmail-smtp.html?utm_source=newcase&amp;amp;utm_medium=clickquestion&amp;amp;utm_campaign=Grabtaxi&amp;amp;utm_term=Email%20Configuration%20Setting%20is%20not%20working%20for%20smtp.gmail.com&amp;amp;utm_content=1&lt;/A&gt; links. &lt;/P&gt;

&lt;P&gt;But still we are unable to send any mail from Splunk to any of the email id. &lt;/P&gt;

&lt;P&gt;While looking in the python.log file we can see below error. &lt;/P&gt;

&lt;P&gt;2018-12-05 11:25:16,536 +0000 ERROR sendemail:137 - Sending email. subject="Splunk Alert: Email Test Alert", results_link="&lt;A href="http://seim-server-ip.com:8080/app/search/@go?sid=scheduler__jeet__search__RMD5fc99695b46fc7eb6_at_1544009100_34778_49871F58-62F1-4AE3-A543-3E01E6B37A56" target="_blank"&gt;http://seim-server-ip.com:8080/app/search/@go?sid=scheduler__jeet__search__RMD5fc99695b46fc7eb6_at_1544009100_34778_49871F58-62F1-4AE3-A543-3E01E6B37A56&lt;/A&gt;", recipients="[u'&lt;A href="mailto:san.du@ourdomain.com" target="_blank"&gt;san.du@ourdomain.com&lt;/A&gt;', u'&lt;A href="mailto:ext.xyz.aplha@ourdomainext.com" target="_blank"&gt;ext.xyz.aplha@ourdomainext.com&lt;/A&gt;', u'&lt;A href="mailto:testemail@in.ourdomain.com" target="_blank"&gt;testemail@in.ourdomain.com&lt;/A&gt;']", server="smtp.gmail.com:587" &lt;/P&gt;

&lt;P&gt;2018-12-05 11:25:16,536 +0000 ERROR x - (534, '5.7.14  Please log in via\n5.7.14 your web browser and then try again.\n5.7.14 Learn more at\n5.7.14 &lt;A href="https://support.google.com/mail/answer/78754" target="_blank"&gt;https://support.google.com/mail/answer/78754&lt;/A&gt; k26sm37700910pgf.65 - gsmtp') while sending mail to: &lt;A href="mailto:san.du@ourdomain.com" target="_blank"&gt;san.du@ourdomain.com&lt;/A&gt;', &lt;A href="mailto:ext.xyz.aplha@ourdomainext.com" target="_blank"&gt;ext.xyz.aplha@ourdomainext.com&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;Kindly request you to help us on the same.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:50:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Email-Configuration-Setting-is-not-working-for-smtp-gmail-com/m-p/414548#M6424</guid>
      <dc:creator>sdubey_splunk</dc:creator>
      <dc:date>2020-09-29T22:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Email Configuration Setting is not working for smtp.gmail.com</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Email-Configuration-Setting-is-not-working-for-smtp-gmail-com/m-p/414549#M6425</link>
      <description>&lt;P&gt;As per &lt;A href="https://support.google.com/accounts/answer/6010255?hl=en" target="_blank"&gt;https://support.google.com/accounts/answer/6010255?hl=en&lt;/A&gt; :If an app or device doesn’t meet our security standards, Google will block anyone who tries to sign in from that app or device. Because these apps and devices are easier to break into, blocking them helps keep your account safe.&lt;/P&gt;

&lt;P&gt;Change your settings to allow less secure apps into your account. We don't recommend this option because it can make it easier for someone to break into your account. If you want to allow access anyway, follow these steps:&lt;/P&gt;

&lt;P&gt;To Fix: &lt;BR /&gt;
1) I logged into gmail account. &lt;/P&gt;

&lt;P&gt;2) Go to &lt;A href="https://www.google.com/settings/security/lesssecureapps" target="_blank"&gt;https://www.google.com/settings/security/lesssecureapps&lt;/A&gt; and Turn On this feature. &lt;/P&gt;

&lt;P&gt;3) Go to &lt;A href="https://accounts.google.com/DisplayUnlockCaptcha" target="_blank"&gt;https://accounts.google.com/DisplayUnlockCaptcha&lt;/A&gt; and click Continue. &lt;/P&gt;

&lt;P&gt;4) I tried to send email from Splunk: &lt;BR /&gt;
index=_internal | head 1 | sendemail to="&lt;A href="mailto:myemailid@gmail.com" target="_blank"&gt;myemailid@gmail.com&lt;/A&gt;" format="html" server=smtp.gmail.com:587 use_tls=1 &lt;/P&gt;

&lt;P&gt;5)And I was able to see the emails send from Splunk to gmail successfully. &lt;/P&gt;

&lt;P&gt;Summary: Issue is external to Splunk, Google was blocking emails from Splunk. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:50:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Email-Configuration-Setting-is-not-working-for-smtp-gmail-com/m-p/414549#M6425</guid>
      <dc:creator>sdubey_splunk</dc:creator>
      <dc:date>2020-09-29T22:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Email Configuration Setting is not working for smtp.gmail.com</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Email-Configuration-Setting-is-not-working-for-smtp-gmail-com/m-p/414550#M6426</link>
      <description>&lt;P&gt;It is because Google blocks  sign-in attempts from apps which do not use modern security standards (mentioned on their support page). You can however, turn on/off this safety feature by going to the link below:&lt;/P&gt;

&lt;P&gt;Go to this link and select Turn On&lt;BR /&gt;
&lt;A href="https://www.google.com/settings/security/lesssecureapps"&gt;https://www.google.com/settings/security/lesssecureapps&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Moreover google block an ip when you try to send a &lt;A href="http://net-informations.com/python/net/email.htm"&gt;email&lt;/A&gt; since a unusual location, so, you can unblock in the next link&lt;BR /&gt;
&lt;A href="https://support.google.com/accounts/answer/6009563"&gt;https://support.google.com/accounts/answer/6009563&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;and clicked in&lt;/P&gt;

&lt;P&gt;accounts.google.com/DisplayUnlockCaptcha .&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 07:05:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Email-Configuration-Setting-is-not-working-for-smtp-gmail-com/m-p/414550#M6426</guid>
      <dc:creator>johnkimber</dc:creator>
      <dc:date>2019-04-26T07:05:54Z</dc:date>
    </item>
  </channel>
</rss>

