I tried to set up a gmail imap account in windows for splunk to download and index the email data. I followed the same configuration as indicated in
http://splunk-base.splunk.com/answers/2803/imap-app-with-google-mail
and got the following error messsages when running
"splunk cmd python .\etc\apps\imap\bin\getimap.py --debug"
The main error message is " could not log into server: mail.google.com with password provided" but I am pretty sure I provided the correct password and user account, port=993, useSSL = False or True (neither works). Any suggestion on how to debug.
Traceback (most recent call last):
File ".\etc\apps\imap\bin\getimap.py", line 327, in getMail
M = imaplib.IMAP4(self.server,int(self.port))
File "C:\Program Files\Splunk\Python-2.7\Lib\imaplib.py", line 163, in init_
_
self.open(host, port)
File "C:\Program Files\Splunk\Python-2.7\Lib\imaplib.py", line 229, in open
self.sock = socket.create_connection((host, port))
File "C:\Program Files\Splunk\Python-2.7\Lib\socket.py", line 553, in create_c
onnection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
gaierror: [Errno 11004] getaddrinfo failed
None
Traceback (most recent call last):
File ".\etc\apps\imap\bin\getimap.py", line 698, in
parseArgs()
File ".\etc\apps\imap\bin\getimap.py", line 691, in parseArgs
imapProc.getMail()
File ".\etc\apps\imap\bin\getimap.py", line 339, in getMail
raise LoginError('Could not log into server: %s with password provided' % se
lf.server)
__main .LoginError: Could not log into server: mail.google.com with password pr
ovided
... View more