All Apps and Add-ons

Why am I unable to connect to IMAP server with IMAP Mailbox tool?

yuelu
Explorer

I am trying to index a mailbox on Dovecot IMAP server, but running into some SSL errors. I am able to connect to it from a mail client through port 143, using "STARTTLS". But I am not sure what to use for "useSSL" value in the imap.conf file.

When I set "useSSL=true", I got the following error:

 File "/opt/splunk/lib/python2.7/ssl.py", line 808, in do_handshake
    self._sslobj.do_handshake()
SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:603)
None

When I set "useSSL=false", I got:

DEBUG:root:[PRIVACYREQUIRED] Plaintext authentication disallowed on non-secure (SSL/TLS) connections.
Traceback (most recent call last):
  File "bin/get_imap_email.py", line 340, in getMail
    M.login(self.user, self.password)
  File "/opt/splunk/lib/python2.7/imaplib.py", line 520, in login
    raise self.error(dat[-1])
error: [PRIVACYREQUIRED] Plaintext authentication disallowed on non-secure (SSL/TLS) connections.
None

Does this app support STARTTLS?

Thanks.

0 Karma

yuelu
Explorer

Requested to turn on ssl and use ssl port resolved the problem.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...