> For the complete documentation index, see [llms.txt](https://docs.n8n.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.n8n.io/integrations/builtin/credentials/imap.md).

# IMAP

You can use these credentials to authenticate the following nodes:

* [IMAP Email](/integrations/builtin/core-nodes/n8n-nodes-base.emailimap.md)

## Prerequisites <a href="#prerequisites" id="prerequisites"></a>

Create an email account on a service with IMAP support.

## Supported authentication methods <a href="#supported-authentication-methods" id="supported-authentication-methods"></a>

* User account

## Related resources <a href="#related-resources" id="related-resources"></a>

Internet Message Access Protocol (IMAP) is a standard protocol for receiving email. Most email providers offer instructions on setting up their service with IMAP; refer to your provider's IMAP instructions.

## Using user account <a href="#using-user-account" id="using-user-account"></a>

To configure this credential, you'll need:

* A **User** name: The email address you're retrieving email for.
* A **Password**: Either the password you use to check email or an app password. Your provider will tell you whether to use your own password or to generate an app password.
* A **Host**: The IMAP host address for your email provider, often formatted as `imap.<provider>.com`. Check with your provider.
* A **Port** number: The default is port `993`. Use this port unless your provider or email administrator tells you to use something different.

Choose whether to use **SSL/TLS** and whether to **Allow Self-Signed Certificates**.

### Provider instructions <a href="#provider-instructions" id="provider-instructions"></a>

Refer to the quickstart guides for these common email providers.

#### Gmail <a href="#gmail" id="gmail"></a>

Refer to [Gmail](/integrations/builtin/credentials/imap/gmail.md).

#### Outlook.com <a href="#outlookcom" id="outlookcom"></a>

Refer to [Outlook.com](/integrations/builtin/credentials/imap/outlook.md).

#### Yahoo <a href="#yahoo" id="yahoo"></a>

Refer to [Yahoo](/integrations/builtin/credentials/imap/yahoo.md).

### My provider isn't listed <a href="#my-provider-isnt-listed" id="my-provider-isnt-listed"></a>

If your email provider isn't listed here, search for their `IMAP settings` or `IMAP instructions`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.n8n.io/integrations/builtin/credentials/imap.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
