# Imap plugin not loading

**URL:** <https://discuss.elastic.co/t/imap-plugin-not-loading/375572>\
**Category:** Logstash\
**Created:** [March 7, 2025, 7:01pm UTC](https://discuss.elastic.co/t/imap-plugin-not-loading/375572 "2025-03-07T19:01:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nkknkk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nkknkk/32/140707_2.png) [@nkknkk](https://discuss.elastic.co/u/nkknkk)\
**Post date:** [March 7, 2025, 7:01pm UTC](https://discuss.elastic.co/t/imap-plugin-not-loading/375572/1 "2025-03-07T19:01:31Z")

</div>

I installed the imap plugin.

```auto
logstash-plugin list --verbose | grep imap
logstash-input-imap (3.2.1)

```

this is my logstash config file

```auto
input {
  imap {
    host => "imap.gmail.com"
    user => "nkknkk@gmail.com"
    password => "***"
    secure => true
    folder => "INBOX"
    fetch_count => 10
  }
}

output {
  stdout { codec => rubydebug }
}

```

I am seeing the below error in the logs. don't understand why it says unable to load plugin?

```auto
[2025-03-07T13:51:31,164][ERROR][logstash.plugins.registry] Unable to load plugin. {:type=>"input", :name=>"imap"}
[2025-03-07T13:51:31,166][ERROR][logstash.agent] Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Unable to configure plugins: (PluginLoadingError) Couldn't find any input plugin named 'imap'. Are you sure this is correct? Trying to load the imap input plugin resulted in this error: Unable to load the requested plugin named imap of type input. The plugin is not installed.", :backtrace=>["org.logstash.config.ir.CompiledPipeline.<init>(CompiledPipeline.java:120)", "org.logstash.execution.AbstractPipelineExt.initialize(AbstractPipelineExt.java:186)", "org.logstash.execution.AbstractPipelineExt$INVOKER$i$initialize.call(AbstractPipelineExt$INVOKER$i$initialize.gen)", "org.jruby.internal.runtime.methods.JavaMethod$JavaMethodN.call(JavaMethod.java:847)", "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:90)", "org.jruby.RubyClass.newInstance(RubyClass.java:949)", "org.jruby.RubyClass$INVOKER$i$newInstance.call(RubyClass$INVOKER$i$newInstance.gen)", "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:90)", "org.jruby.ir.instructions.CallBase.interpret(CallBase.java:548)", "org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:363)", "org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:66)", "org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:88)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:238)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:225)", "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:228)", "elkstack.logstash.logstash_minus_8_dot_15_dot_3.logstash_minus_core.lib.logstash.agent.RUBY$block$converge_state$2(/elkstack/logstash/logstash-8.15.3/logstash-core/lib/logstash/agent.rb:386)", "org.jruby.runtime.CompiledIRBlockBody.callDirect(CompiledIRBlockBody.java:141)", "org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:64)", "org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:58)", "org.jruby.runtime.Block.call(Block.java:144)", "org.jruby.RubyProc.call(RubyProc.java:354)", "org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:111)", "java.base/java.lang.Thread.run(Thread.java:1583)"]}

```

---

<div class="post-metadata">

**Author:** ![carellevbt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carellevbt/32/139298_2.png) [@carellevbt](https://discuss.elastic.co/u/carellevbt)\
**Post date:** [August 25, 2025, 2:51pm UTC](https://discuss.elastic.co/t/imap-plugin-not-loading/375572/2 "2025-08-25T14:51:29Z")

</div>

> [@nkknkk](#):
>
> `Couldn't find any input plugin named 'imap'`

It says in the error “Couldn't find any input plugin named 'imap'“. Is the plugin installed? If not you will have to do that first.
