For the basic auth, no username/password is asked.
For the smtp, n8n looks like detecting something is it don’t ask me to configure smtp, but invitaiton mail for new users are not sent :
Created user shell(s) successfully
ERROR RESPONSE
ResponseError: There is a problem with your SMTP setup! Connection timeout
at /usr/local/lib/node_modules/n8n/dist/src/UserManagement/routes/users.js:28:23
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async /usr/local/lib/node_modules/n8n/dist/src/ResponseHelper.js:91:26 {
httpStatusCode: 500
}
Failed to send email
Hey @AlexyTG, I am sorry to hear you’re running into trouble here. I just tried the docker run command you have shared and am asked for my password as expected.
Is there a chance you have simply stored your password in your browser or password manager so the auth screen doesn’t pop up? What does curl -v http://localhost:5678/ return for you?
I have very similliar problem with User Management.
I got the error during invite new user:
ResponseError: Failed to send email to [email protected]
at /usr/local/lib/node_modules/n8n/dist/src/UserManagement/routes/users.js:320:19
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async /usr/local/lib/node_modules/n8n/dist/src/ResponseHelper.js:91:26 {
httpStatusCode: 500
}
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
# See http://www.postfix.org/COMPATIBILITY_README.html -- default to 2 on
# fresh installs.
compatibility_level = 2
# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=no
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_sasl_auth_enable = yes
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = my_host
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = $myhostname, localhost.localdomain, , localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 0.0.0.0/0
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
@MutedJam I got error: warning: SASL authentication failure: Password verification faile
What is actually N8N_SMTP_PASS and Ń8N_SMTP_USER ? I should have special user on my host?
Your error shows a connection timeout so I suspect it could be network issue and the container is having a hard time connecting to the google smtp server.
Assuming you have smtp enabled and less secure app access granted.