OC300 sends localhost in EHLO smtp message, google doesn't like
OC300 sends localhost in EHLO smtp message, google doesn't like
I'm trying to setup e-mail notifications.
When the OC-300 connects to google it does the following:
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host "smtp-relay.gmail.com", port 25, isSSL false
220 smtp-relay.gmail.com ESMTP o16-20020a81de50000000b005869ca7bcdbsm634088ywl.54 - gsmtp
DEBUG SMTP: connected to host "smtp-relay.gmail.com", port: 25
EHLO localhost
421-4.7.0 Try again later, closing connection. (EHLO)
421-4.7.0 Learn more at
421 4.7.0 https://support.google.com/a/answer/3221692 o16-20020a81de50000000b005869ca7bcdbsm634088ywl.54 - gsmtp
HELO localhost
DEBUG SMTP: EOF: [EOF]
It appears that google does not like 'localhost' in the EHLO message. I've tried w/wo SSL, w/wo AUTHENTICATION, etc. Always the same response.
It there somewhere to configure what hostname the OC-300 sends in that EHLO message? I have verified this by manually working through an SMTP session with the google relay and it is the localhost that is tripping it up.
- Copy Link
- Subscribe
- Bookmark
- Report Inappropriate Content
Hello @gantzm,
Thanks for your valuable feedback!
After confirming with the support engineer, it doesn't support this kind of domain like "smtp-relay[.]gmail[.]com". I've recorded this request and will report it to the developer team for evaluation.
- Copy Link
- Report Inappropriate Content
Do you have a domain? It shouldn't be localhost, it should be a domain.
Share a screenshot of the error message:
421-4.7.0 Try again later, closing connection. (EHLO)
421-4.7.0 Learn more at
421 4.7.0 https://support.google.com/a/answer/3221692 o16-20020a81de50000000b005869ca7bcdbsm634088ywl.54 - gsmtp
- Copy Link
- Report Inappropriate Content
You might need to clarify your question. When I click "SEND" next to "Test SMTP Server" I get an error: "Failed to send the email to the specified recipient."
The reason for this is because the controller is sending "localhost" in the EHLO command to the SMTP server. My destination is using a FQDN. My Sender Address is using a FQDN, none of which shows up in the EHLO command.
Typically the EHLO command is used to identify the host sending the e-mail. In this case I don't see a way to configure the OC 300 to understand what its FQDN is.
- Copy Link
- Report Inappropriate Content
- Copy Link
- Report Inappropriate Content
Is it possible to get anything except localhost in there? Even just using omadacontroller would be better. A lot of SMTP relay servers are not accepting localhost.
- Copy Link
- Report Inappropriate Content
- Copy Link
- Report Inappropriate Content
need pictures of your error. better to have its source as well.
i've never seen this on the omada. where did you find it?
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host "smtp-relay.gmail.com", port 25, isSSL false
220 smtp-relay.gmail.com ESMTP o16-20020a81de50000000b005869ca7bcdbsm634088ywl.54 - gsmtp
DEBUG SMTP: connected to host "smtp-relay.gmail.com", port: 25
EHLO localhost
421-4.7.0 Try again later, closing connection. (EHLO)
421-4.7.0 Learn more at
421 4.7.0 https://support.google.com/a/answer/3221692 o16-20020a81de50000000b005869ca7bcdbsm634088ywl.54 - gsmtp
HELO localhost
DEBUG SMTP: EOF: [EOF]
and also need your config, the page on omada.
421 is a code telling the server is not available.
Response codes that start with 4 and 5 are errors, and the number indicates the error type. Errors that start with a 4 are temporary failures. No action is needed, the sender will try again. Errors that start with 5 are permanent failures and action is required to fix the problem.
So, is this a problem with the recipient?
- Copy Link
- Report Inappropriate Content
That error comes from the controller logs that you can download from the controller UI. The actual log file is either server.log or startup.log.
The error number from the SMTP relay is rather misleading, to say the least.
When I manually emulate that session with telnet ( very easy to do with SMTP ) I find that if I use anything other than localhost in EHLO message the session works fine.
I believe this is an attempt by several SMTP relays to start cutting back on spam and refusing to accept connections from devices that identify as 'localhost'.
- Copy Link
- Report Inappropriate Content
sorry i am confused by your localhost constantly mentioned in the replies. is there any picture to illustrate this localhost?
i don't think there should be a localhost involved in this. it's mail service and for no reason you should use localhost in it.
so the issue now is that people don't understand your question and cannot provide any further insights into your issue. i am out of options. expect someone else.
- Copy Link
- Report Inappropriate Content
I would love to post exact details on how to reproduce this but the forum software won't let me. Everytime I try and post the steps and results the forum tells me I'm trying to post "links" to external sites. Even if I try and attach the steps as a file it fails.
I've tried to "edit" things so they don't look like links but the forum still won't let me post it.
Well I can't even add a link to Pastebin.
If you go to pastebin and add "YqGrEqBi" to the url maybe this will work.
- Copy Link
- Report Inappropriate Content
i don't want to register a new account.
try this format to paste. no external links are allowed.
xyz[dot]net
- Copy Link
- Report Inappropriate Content
Information
Helpful: 0
Views: 1208
Replies: 15
Voters 0
No one has voted for it yet.