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.