GL-XE300: SMTP issues

Hello,

I am having issues making the SMS to E-mail feature work, which is the main reason why I bought the router.

I've tried first with Gmail and I see this error in the logs:

Fri Jul  4 00:37:29 2025 mail.err sSMTP[17168]: Authorization failed (535 5.7.8  https://support.google.com/mail/?p=BadCredentials 00721157ae682-71665b4d887sm1782107b3.116 - gsmtp)

I am certain that the password is correct, it is the same password I am using in my mail client.

Then I also tried using our company SMTP and I see this error in the logs:

Fri Jul  4 00:10:48 2025 mail.info sSMTP[14244]: SSL connection using TLS_AES_256_GCM_SHA384
Fri Jul  4 00:10:48 2025 mail.err sSMTP[14244]: 501 5.5.2 Syntax error, expected: EHLO domain ()

Which means that the router is not providing a hostname during the EHLO stage.

I am using the latest firmware and tried resetting the router multiple times.

Please refer to this post:

Kindly check the SMTP password, it needs to apply from

I did check the password, it is working correctly when I use curl.

Also, the script is sending an invalid EHLO command when using an external SMTP.

Can you point me to the script location so I can fix the EHLO command?

The issue seems to be that GL-XE300 does not provide a domain name to the SMTP server, these are my server logs:

EHLO
501 5.5.2 Syntax error, expected: EHLO domain

a valid SMTP transaction would look like this:

EHLO GL-XE300
250-server.domain.org 
250-STARTTLS
250-SMTPUTF8
250-SIZE 104857600
250-REQUIRETLS
250-PIPELINING
250-NO-SOLICITING
250-ENHANCEDSTATUSCODES
250-CHUNKING
250-BINARYMIME
250 8BITMIME

So the question is, how can I make the router provide a valid hostname when sending the email?

I tested in the XE300, and the SMS forward to email works ok:

Please check if the username and password of sender mailbox is available, you can test in the third-party email APP with this username and password. Kindly Note, spaces should be removed from copied Google passwords.

Yes, now I am having a different issue, the router is not providing a hostname in the EHLO SMTP command. This is the error I get from Gmail:

Fri Jul  4 10:25:07 2025 mail.err sSMTP[14244]: 501-5.5.4 Empty HELO/EHLO argument not allowed, closing connection.

I also tried with a different SMTP server and I get:

Fri Jul  4 00:10:48 2025 mail.err sSMTP[14244]: 501 5.5.2 Syntax error, expected: EHLO domain ()

The issue is that the router is not providing a hostname in the EHLO command.