# Logstash IMAP issues

**URL:** <https://discuss.elastic.co/t/logstash-imap-issues/20460>\
**Category:** Elasticsearch\
**Created:** [October 28, 2014, 12:30pm UTC](https://discuss.elastic.co/t/logstash-imap-issues/20460 "2014-10-28T12:30:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alan\_Julian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alan_julian/32/46385_2.png) [@Alan\_Julian](https://discuss.elastic.co/u/Alan_Julian)\
**Post date:** [October 28, 2014, 12:30pm UTC](https://discuss.elastic.co/t/logstash-imap-issues/20460/1 "2014-10-28T12:30:14Z")

</div>

I seem to be unable to get the logstash IMAP plugin working.

I have a logstash 1.4/elasticsearch/kibana setup which is working well. all  
pretty standard stuff.

However when i create an input on my logstash host to go off and pull back  
mail info using the imap plugin.  
I cant seem to get it to work.

Below is my input configuration

input {  
imap {  
type =\> "mail"  
check\_interval =\> 300  
content\_type =\> "text/plain"  
delete =\> "false"  
host =\> ""  
port =\> 993  
password =\> ""  
secure =\> "false"  
user =\> ""  
}  
}

no matter what i do i get the following error.

{:timestamp=\>"2014-10-28T12:25:31.802000+0000", :message=\>"A plugin had an  
unrecoverable error. Will restart this plugin.\n Plugin:  
\<LogStash::Inputs::IMAP type=\>"mail", content\_type=\>"text/plain",  
host=\>"10.0.0.0", user=\>"-logs@mailserver.com"\>\n Error: Connection  
refused - Connection refused", :level=\>:error}

ive checked the network and packets are going back and forth fine.

My question is.. do i need to reconfigure this to use a logstash forwarder  
config on the mail server itself or am i doing something else really stupid

Thanks

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/c057d779-8042-4557-9d1e-05b9f42616d1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c057d779-8042-4557-9d1e-05b9f42616d1%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:53am UTC](https://discuss.elastic.co/t/logstash-imap-issues/20460/2 "2017-07-06T00:53:29Z")

</div>


