-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set a sane SMTP Helo #4473
Comments
When you are refering to
=> this is neither configurable, nor should it as far as I can tell. As for this issue, please take the time to write proper issues (include the configuration, what you tried, where you got the log message from (this does not look like one produced by us), ...) |
In the SMTP standards the HELO/EHLO are used for sending the own hostname.
Btw, verifying the HELO name (e.g. comparing with reverse record) is part of anti-spam measures.
This is an excerpt of the SMTP connection. There were no entries in /app/data/error.log |
The We currently don't set this parameter. If you want to change the current behaviour: The relevant configuration is here: uptime-kuma/server/notification-providers/smtp.js Lines 15 to 22 in 56aa81e
|
Thanks, I will have a look! |
Maybe I can help to clarify this "issue". @sebix You are talking about outgoing connection to send email notifications right ? You are correct an email server should have proper hostname configuration, sending an appropriate HELO/EHLO corresponding to that hostname and having a PTR record that points it's IP to that host. Then you can start communicating with the rest of the world. However, I don't think it is within the scope of Uptime Kuma to act as an email server but just as a "client". Hence we use authenticated SMTP to have our (remote) SMTP server accepting the mail from us and forward it on where ever needed (he is the "mail server" not us on the app side). So the helo to there doesn't matter very much. You could compare with your local Thunderbird or whatever mail client sending via same SMTP server to which you authenticate. If you have a local MTA - as I do - it is still the same really. You dump you local mail() command from whatever app, and up to your MTA or mail server to decide if you are auth to do that and then send on. Other discussion about that here #2793 . In any case, and IMHO, you should not seek to have the node server behind UK to send email directly to the outside world but either relay via an authenticated SMTP of yours or your local MTA which should be configured to the outside world. This is not the role of an/any app. Does this help clarify a bit? |
🛡️ Security Policy
📝 Describe your problem
For SMTP connections, the app uses the bogous HELO 127.0.0.1, not the hostname.
How can the SMTP Helo be set, or set to the hostname?
📝 Error Message(s) or Log
🐻 Uptime-Kuma Version
1.23.3
💻 Operating System and Arch
Debian 10 amd64
🌐 Browser
Firefox
🖥️ Deployment Environment
The text was updated successfully, but these errors were encountered: