Hello,
Following the guide you have for my hosting, I installed n8n on Docker and am trying to configure its SMTP to work properly.
I’ve set SMTP SSL to off and use port 587, because Hetzner is blocking by default port 465 and can’t unblock it for me right now, because I signed up recently.
I’ve added to my .env
the following (data sanitized):
SMTP_HOST="SMTP host domain"
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER="Email"
SMTP_PASSWORD="password"
SMTP_SENDER="Email"
Then I added to docker-compose.yml
under environment:
the following:
- N8N_EMAIL_MODE=smtp
- N8N_SMTP_HOST=${SMTP_HOST}
- N8N_SMTP_PORT=${SMTP_PORT}
- N8N_SMTP_USER=${SMTP_USER}
- N8N_SMTP_PASS=${SMTP_PASSWORD}
- N8N_SMTP_SENDER=${SMTP_SENDER}
- N8N_SMTP_SSL=${SMTP_SECURE}
With this configuration, when I try to invite a team member via email, I receive the following error:
Couldn't send invite email Could not invite Hostname/IP does not match certificate's altnames: Host: {Host name I've entered in .env}. is not in the cert's altnames: DNS:*{.an old nameserver of my email's hosting}, DNS:{an old nameserver of my email's hosting}
The domain and the SMTP host I’m using have no issues with SSL. When I run SSL Labs test on the SMTP host, I receive overall rating A:
Certificate: 100%
Protocol Support: 100%
Key Exchange: 90%
Cipher Strength: 90%
The SMTP host is listed as an “Alternative names” in the SSL Labs test’s results.
n8n and the email are hosted on different servers.
Do you have any idea what could be causing the issue and how can I fix it?
Thank you!
Describe the problem/error/question
What is the error message (if any)?
Please share your workflow
(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):
- Operating system: