Hi, everyone.

I started using Google Workspace as my SMTP service, but when I set up osTicket to use smtp-relay.gmail.com as smtp server, it shows ther error message "[SMTP: HELO was not accepted (code: -1, response: )]".

.

I took a look at https://docs.osticket.com/en/latest/Getting%20Started/Email%20Settings.html.

I perfomed a test using postfix to connect in my old smtp server (postfix) without ssl and monitoring 587 port, I could see that EHLO command is sent using "localhost" as string identification. So, when osTicket does it when connecting to "smtp-relay.gmail.com", it is refused. That is why I am receiving the "HELO not accepted message".

After some look at source code, I found that in file smtp.php, there is a class called Mail_smtp having an attribute $localhost. Its default value is 'localhost'. When I change the source code to use "mydomain.com" as default value of attribute $localhost, it works fine because Gmail does not refuse the HELO. I was looking for a solutio which I don't have to change source code.

I found another user having the same issue, but nobody answered that thread (https://forum.osticket.com/u/chalithcp).

I tryed to look for some miss configuration in admin panel, but it seem that there isn't any option to set EHLO host string identification. I also reinstaled my osticket to see if I hadn't forgot to change any field filled as "localhost", but I didn't find anything.

I am using osTicket version v1.15.3.1.

Any help would be apreciated.

Thanks in advance.

Murilo Machado Pinto.

    murilo

    You are using wrong host information. Gmail SMTP is the following:
    Hostname: smtp.gmail.com
    Port Number: 587
    Authentication Required: Yes

    It is also HIGHLY recommended that you upgrade ASAP to v1.18.1, install the OAuth2 plugin, and configure Modern Authentication (OAuth2) for Gmail. Google (and other major email providers) will be phasing out Basic Authentication (Username + Password) eventually so it's best to go ahead and convert to the new Modern Authentication so service is not interrupted once they make the change.

    Cheers.

      18 days later

      KevinTheJedi, I am using Google Workspace configuration. My configuration is correct! In Google Workspace I can create a list of IPs that are allowed to send e-mails from my domain. That is why I don't need authentication. It works correct. Gmail rejects a connection if I use "localhost" as HELO message. You can simulate this issue if you want using openssl command line. I described a real problem. If I edit the osticket source code to don't use "localhost" as HELO message, everything works fine.

      I understand that its recommended to use v1.18.1 version. My goal with this thread is to inform the community about a real issue (which was reporterd by another user some time ago and ignored).

      Cheers.

      Write a Reply...