Email Trigger (IMAP) Generates "unable to verify the first certificate" for Gmail

I’m running n8n locally on my mac (localhost 5678) and have created a new workflow with one node: an Email Trigger (IMAP). When i configure the connect to access my email, it just says “unable to verify the first certificate”. I’m uisng imap.gmail.com as the host, and port 993 with SSL/TLS enabled and Allow Self-signed certificates disabled. What should I by checking to fix this?

Looks like I need to probably setup n8n to use a certificate… i’ll report back on the steps if i can get it working

I’ve managed to get tunneling and self signed certs working. However, now no matter what I do, i just get “invalid credentials (failure)”. I think it’s something to do with oauth or two-factor auth. Someone suggested switching to using the gmail trigger node, but that doesn’t seem to exist anymore… i’ll try experimenting more tomorrow.

So i guess it’s related gmail no longer supporting just usernames/passwords as described in this thread: Email Trigger (IMAP) - Error: Invalid credentials (Failure) - #3 by drj. What’s a good way to get around this? The thread suggests a Gmail trigger but that doesn’t seem to exist.

hello @Dana_Fujikawa

if you have a google mail, then better to use Gmail node and OAuth 2.0 credentials. But that will be far more easily to set on the n8n cloud instance…

Thanks. Can that be used as a trigger though (e.g., to monitor for incoming emails)?

Yes, there is a gmail trigger node

Last i checked there wasn’t was one. I’m using the free offline version, so maybe it’s not included in that version?

It should be available in the free self-hosted version. What you are looking for it:

1 Like

it should be there

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