Gmail Relay-Smtp needs name: mydomain.com
transport settings
#4790
Labels
area:notifications
Everything related to notifications
feature-request
Request for new features to be added
type:enhance-existing
feature wants to enhance existing monitor
π I have found these related issues/pull requests
No related issues in uptime-kuma
π‘οΈ Security Policy
Description
Google supports a relay service for smtp.
The only change is to use
smtp-relay.gmail.com
as a host instead ofsmtp.gmail.com
.In uptime-kuma this usually fails with the error
421-4.7.0 Try again later, closing connection. (EHLO)
I traced that to be an issue with
nodemailer
.Its authors seems to have reasons to hate google's smtp
The solution seems to be to include
name: mydomain.com
when creating the nodemailer transportA generic solution to this is to allow
advanced
smtp configuration and add all the fields thatnodemailer
transport supports. This will greatly improve support for SMTP.π Reproduction steps
Set
smtp-relay.gmail.com
as the smtp host and use app-passwords for the authentication in google workspace. I am part of a google workspace, no idea if this works for single gmail accounts.π Expected behavior
Send mails
π Actual Behavior
Error:
421-4.7.0 For more information, go to https://support.google.com/a/answer/3221692 - gsmtp: 421-4.7.0 Try again later, closing connection. (EHLO)
π» Uptime-Kuma Version
1.23.11
π» Operating System and Arch
debian (official docker image)
π Browser
Firefox 126.0
π₯οΈ Deployment Environment
π Relevant log output
No response
The text was updated successfully, but these errors were encountered: