# Error creating email trigger

**URL:** <https://community.n8n.io/t/error-creating-email-trigger/179181>\
**Category:** Questions\
**Created:** [August 31, 2025, 6:26am UTC](https://community.n8n.io/t/error-creating-email-trigger/179181 "2025-08-31T06:26:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbrown007](https://avatars.discourse-cdn.com/v4/letter/b/e95f7d/32.png) [@bbrown007](https://community.n8n.io/u/bbrown007)\
**Post date:** [August 31, 2025, 6:26am UTC](https://community.n8n.io/t/error-creating-email-trigger/179181/1 "2025-08-31T06:26:22Z")

</div>

## 

I am creating a **Email Trigger (IMAP)** that monitors designated customer support email for new messages. When I enter my credentials with gmail or outlook. I get an error “login failed”. I tried to login direct to gmail and outlook, it worked. For some reason n8n will not accept credentials using the **Email Trigger (IMAP)** node . I followed the instruction n n8n doc help but it didn’t help. I am the only one?

## What is the error message (if any)?

## Couldn’t connect with these settings

Invalid credentials (Failure)

## Please share your workflow

```auto
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

```

## Share the output returned by the last node

## Information on your n8n setup

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):Web**
- **Operating system:MacOs**

---

<div class="post-metadata">

**Author:** ![Zelite](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/zelite/32/112108_2.png) [@Zelite](https://community.n8n.io/u/Zelite)\
**Post date:** [August 31, 2025, 8:23am UTC](https://community.n8n.io/t/error-creating-email-trigger/179181/2 "2025-08-31T08:23:30Z")

</div>

@bbrown007 welcome to the N8n community.

For Gmail you cannot use your regular Gmail password. You must generate a special App Password, almost same with outlook. Do you understand?

---

<div class="post-metadata">

**Author:** ![bbrown007](https://avatars.discourse-cdn.com/v4/letter/b/e95f7d/32.png) [@bbrown007](https://community.n8n.io/u/bbrown007)\
**Post date:** [September 1, 2025, 1:42pm UTC](https://community.n8n.io/t/error-creating-email-trigger/179181/3 "2025-09-01T13:42:26Z")

</div>

I seen that in the doc, I will try with app password. Thank You

---

<div class="post-metadata">

**Author:** ![Zelite](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/zelite/32/112108_2.png) [@Zelite](https://community.n8n.io/u/Zelite)\
**Post date:** [September 1, 2025, 3:22pm UTC](https://community.n8n.io/t/error-creating-email-trigger/179181/4 "2025-09-01T15:22:02Z")

</div>

Ok @bbrown007 try it and let me know the results.

---

<div class="post-metadata">

**Author:** ![bbrown007](https://avatars.discourse-cdn.com/v4/letter/b/e95f7d/32.png) [@bbrown007](https://community.n8n.io/u/bbrown007)\
**Post date:** [September 2, 2025, 6:03pm UTC](https://community.n8n.io/t/error-creating-email-trigger/179181/5 "2025-09-02T18:03:24Z")

</div>

It worked! Thank you very much! I was under the impression, I will not need to add the app password if 2FA is disabled.

This only worked for Gmail. Outlook for some reason is still giving me a problem. I don’t need it any longer, I will keep using Gmail’s app password. Thanks again.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [December 1, 2025, 6:04pm UTC](https://community.n8n.io/t/error-creating-email-trigger/179181/6 "2025-12-01T18:04:15Z")

</div>

Closed on December 1, 2025, 6:04pm UTC

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