All Apps and Add-ons

Setting up a google/outlook IMAP account for splunk in windows

ips_mandar
Builder

I am trying to configure IMAP Mailbox on my splunk (7.1.2) windows os but geting below error when I tried python get_imap_email.py -- debug

Traceback (most recent call last):
  File "get_imap_email.py", line 333, in getMail
    M = imaplib.IMAP4(self.server,int(self.port))
  File "F:\Splunk\Python-2.7\Lib\imaplib.py", line 194, in __init__
    self.welcome = self._get_response()
  File "F:\Splunk\Python-2.7\Lib\imaplib.py", line 931, in _get_response
    resp = self._get_line()
  File "F:\Splunk\Python-2.7\Lib\imaplib.py", line 1031, in _get_line
    raise self.abort('socket error: EOF')
abort: socket error: EOF
None
Traceback (most recent call last):
  File "get_imap_email.py", line 717, in <module>
    parseArgs()
  File "get_imap_email.py", line 709, in parseArgs
    imapProc.getMail()
  File "get_imap_email.py", line 345, in getMail
    raise LoginError('Could not log into server: %s with password provided' % self.server)
__main__.LoginError: Could not log into server: imap.gmail.com with password provided 

my settings are-

[IMAP Configuration]
debug = 1
deleteWhenDone = False
disabled = False
fullHeaders = False
includeBody = True
noCache = False
server = imap.gmail.com
useSSL = 0
password = mypassword
port = 993
includeBody = True
mimeTypes = text/plain
user = myid@gmail.com
splunkuser = admin
splunkpassword = password
folders = Inbox
imapSearch = UNDELETED SMALLER 204800
timeout = 10

Also I have open Firewall port 993so there won't be any firewall issue...Not sure if this app is compatible with splunk 7.1.2
Thanks,

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...