# Error when i try to crowle a secured mail box with IMAP plugin in logstash

**URL:** <https://discuss.elastic.co/t/error-when-i-try-to-crowle-a-secured-mail-box-with-imap-plugin-in-logstash/82733>\
**Category:** Logstash\
**Created:** [April 18, 2017, 2:19pm UTC](https://discuss.elastic.co/t/error-when-i-try-to-crowle-a-secured-mail-box-with-imap-plugin-in-logstash/82733 "2017-04-18T14:19:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amine](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@amine](https://discuss.elastic.co/u/amine)\
**Post date:** [April 18, 2017, 2:19pm UTC](https://discuss.elastic.co/t/error-when-i-try-to-crowle-a-secured-mail-box-with-imap-plugin-in-logstash/82733/1 "2017-04-18T14:19:31Z")

</div>

Hi everyone;

I try to crowle a secured mail box with IMAP plugin in logstash with this configuration :

```
imap {
        host => "mydom.mydomain.com"
        user => "test-search@mydomain.com"
        password => "myPass`Preformatted text`word"
        port => 993
        secure => true
        check_interval => 1
   
 }

```

I have this error :

```
16:11:04.752 [[main]<imap] ERROR logstash.pipeline - A plugin had an unrecoverable error. Will restart this plugin.
  Plugin: <LogStash::Inputs::IMAP host=>"", user=>"", password=><password>,
 port=>993, secure=>true, check_interval=>1, strip_attachments=>true, id=>"",
enable_metric=>true, codec=><LogStash::Codecs::Plain id=>"plain_7ea68871-10bb-444b-ab8c-67356cbf275b", enable_metric=>tr
ue, charset=>"UTF-8">, verify_cert=>true, folder=>"INBOX", fetch_count=>50, lowercase_headers=>true, delete=>false, expu
nge=>false, content_type=>"text/plain">
  Error: Socket closed

```

knowing that i havent this when i use no secured config :

```
imap {
    host => "mydom.mydomain.com"
    user => "test-search@mydomain.com"
    password => "myPassword"
    port => 143
    secure => false
    check_interval => 1
} 

```

someone can help me?

thanks.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 16, 2017, 2:29pm UTC](https://discuss.elastic.co/t/error-when-i-try-to-crowle-a-secured-mail-box-with-imap-plugin-in-logstash/82733/2 "2017-05-16T14:29:24Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
