Good afternoon,
I’m new to n8n and started using it via Docker less than a week ago. I really like the platform, but I’m facing a specific issue related to user invitation emails.
Problem
When inviting users through:
n8n → Settings → Users
Invitation emails are not delivered.
Sending the invitation link manually also does not work.
Now, when trying to resend an invitation, I receive:
Could not reinvite user
connect ECONNREFUSED 127.0.0.1:465
What I have already checked
-
SMTP configured
-
Tried resending invitations
-
Reviewed similar community topics:
None of these solved my issue.
Docker Environment
Container Name: n8n
Ports: Host 5678
Volume: n8n_data → /home/node/.n8n
SMTP Variables
-
N8N_EMAIL_MODE=smtp
-
N8N_SMTP_HOST=localhost
-
N8N_SMTP_PORT=465
-
N8N_SMTP_USER=foo
-
N8N_SMTP_PASS=bar
-
N8N_SMTP_SENDER=email@mydomain
Other Variables
-
GENERIC_TIMEZONE=America/Fortaleza
-
TZ=America/Fortaleza
-
N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
-
N8N_MIGRATE_FS_STORAGE_PATH=true
n8n Information
-
n8n version: 2.8.3
-
Running via: Docker
Questions
-
Does ECONNREFUSED 127.0.0.1:465 indicate an SMTP connection problem inside the container?
-
Is there any additional required configuration for invitation emails?
Any guidance would be greatly appreciated.