SMTP on DigitalOcean droplet not sending emails

Describe the problem/error/question

SMTP on DigitalOcean droplet not sending emails.

What is the error message (if any)?

Could not reinvite user.
Similar error for password resets, etc.

My configuration

N8N_EMAIL_MODE=smtp
N8N_SMTP_HOST=smtp.gmail.com
N8N_SMTP_PORT=465
[email protected]
N8N_SMTP_PASS=app-password
[email protected]
N8N_SMTP_SSL_IGNORE_UNAUTHORIZED=false

Information on your n8n setup

  • n8nVersion: 1.106.3
  • platform: DigitalOcean droplet, docker (self-hosted)
  • nodeJsVersion: 22.16.0
  • database: sqlite
  • Digital Ocean Droplet

What I’ve tried

  • I’ve double checked my outbound firewall and all TCP is open
  • I’ve completely restarted my container / server
  • Port 587
  • I’m using an app password for my gmail and I’ve confirmed the credentials are working

This is all I had to configure to make smtp work with gmail (including the default port 465)

      - N8N_SMTP_HOST=smtp.gmail.com
      - [email protected]
      - N8N_SMTP_PASS=myapppassgoeshere

N8N_SMTP_SSL_IGNORE_UNAUTHORIZED is not a real option.

Thanks for the reply but I just tried with those three settings and no dice. I did a full reboot afterwards.
Are you using digital ocean as well? Spidey senses tell me it’s something there.

very likely.

Check this out:

also these release notes:

1 Like

I was just logging in to post that very same link, thanks for your help! I’m going to try sendgrid.

1 Like

Anybody reading this in the future, the key to using sendgrid is port 2525.

I was banging my head against the wall with this until i found the chat bot on https://docs.n8n.io/
Which gave me this intel based on this post: Reset Password - SMTP is not working - #5 by anthony31

My final .env looks like this and working:

N8N_EMAIL_MODE=smtp
N8N_SMTP_HOST=smtp.sendgrid.net
N8N_SMTP_PORT=2525
N8N_SMTP_USER=apikey
N8N_SMTP_PASS=API_KEY
N8N_SMTP_SENDER=YOUR_EMAIL
N8N_SMTP_SSL=false
N8N_USER_MANAGEMENT_DISABLED=false

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