OC300 sends localhost in EHLO smtp message, google doesn't like

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
12

OC300 sends localhost in EHLO smtp message, google doesn't like

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
15 Reply
Re:OC300 sends localhost in EHLO smtp message, google doesn't like
2023-10-30 19:01:24

  @Tedd404 

 


Steps to reproduce "localhost" problem when sending SMTP mail from OC-300 controller:

 

1) Go to Settings->Server Settings

 

2) Configure an SMTP Mail Server

  2.1) Enable SMTP Server.
  2.2) Enter "smtp-relay[.]gmail[.]com" in the "SMTP:" field.
  2.3) Enter "25" in the "Port:" field.
  2.4) Disable "SSL:".
  2.5) Disable "Authentication:".
  2.4) Enter a valid e-mail address in the "Sender Address:" field.
  2.5) Click "Apply"
  2.6) Enter a valid e-mail address in the "Send Test Email to" field.
  2.7) Click "Send"

 

3) The UI responds with the following popup error at the top of the page:

  "Failed to send the email to the specified recipient."

 

4) Download the OC-300 logs:

  4.1) Go to Settings->Maintenance
  4.2) At the very bottom click "Export Running Logs"
  4.3) Your browser will download a file with a timestamped filename like this:

    logs_yyyy-mm-dd_MM-HH-SS.zip

  4.4) Unzip that file.
  4.5) Locate the file logs/logs/startup.log
  4.6) In the startup.log file you will find an error message like this:

 

 .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v2.4.3)

DEBUG: setDebug: JavaMail version 1.6.2
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com[.]sun[.]mail[.]smtp[.]SMTPTransport,Oracle]
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]

 

  4.7) This log shows that the OC-300 is sending an EHLO command to the SMTP server with a hostname of localhost.  Many SMTP relays are no longer accepting localhost in this field.  I can find no way in the UI to change the value that is sent.


I have temporarily setup an SMTP server running Postfix of my own here localy.  I have pointed the OC-300 at my local SMTP server and I can confirm from those logs that yes the OC-300 is sending localhost.


 

  0  
  0  
#12
Options
Re:OC300 sends localhost in EHLO smtp message, google doesn't like
2023-10-31 02:46:41

  @gantzm 

nah. i can send it to my server without any issues at all.

RTM. https://www.tp-link.com/us/support/faq/2919/

 

ScReW yOu gUyS. I aM GOinG hoMe. —————————————————————— For heaven's sake, can you write and describe your issue based on plain fact, common logic and a methodologic approach? Appreciate it.
  0  
  0  
#13
Options
Re:OC300 sends localhost in EHLO smtp message, google doesn't like
2023-11-07 06:53:26

  @gantzm 

what's the update?

ScReW yOu gUyS. I aM GOinG hoMe. —————————————————————— For heaven's sake, can you write and describe your issue based on plain fact, common logic and a methodologic approach? Appreciate it.
  0  
  0  
#14
Options
Re:OC300 sends localhost in EHLO smtp message, google doesn't like
2023-11-07 13:30:09

  @Tedd404 

 

The update is the OC-300 sends an incorrect value (localhost) for the EHLO message and there appears to be no way to fix that.

 

The example that you provided was significantly different than my example.  You were sending mail directly to gmail into the gmail smtp endpoint.

 

In my example I'm attempting to use smtp-relay.gmail.com because I could have addresses outside the gmail domain.

 

Sending to smtp-relay.gmail.com works correctly with everything else I've tried because the other things send a correct hostname.

 

I have no idea who to contact inside tp-link to get this fixed.  The easiest fix would be to add a 'hostname' field in the SMTP Server setup screen and have the mail relay use that.

 

Michael

 

 

  0  
  0  
#15
Options
Re:OC300 sends localhost in EHLO smtp message, google doesn't like-Solution
2023-11-09 03:42:19 - last edited 2023-11-09 03:42:24

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.

Best Regards! >> Omada EAP Firmware Trial Available Here << >> Get the Latest Omada SDN Controller Releases Here << *Try filtering posts on each forum by Label of [Early Access]*
Recommended Solution
  0  
  0  
#16
Options

Tags

Related Articles