Our installation was running with no issue (see details below) until yesterday, I noticed it wont send out email. The system is able to login to IMAP+SSL however in the SMTP it is always getting --> authentication failure when logging in to Google SMTP server smtp.gmail.com on port 587. Temporarily I have set to use aspmx.l.google.com on port 25 however whatever has been sent is not saved in the mailbox account of G Suite. What could be the problem?osTicket Version v1.10.1 (9ae093d) — Up to dateWeb Server Software Microsoft-IIS/7.5MySQL Version 5.7.13PHP Version 7.0.21
Did something changed in your environment? Like the php version or so?You could try to update the used pear package components of osTicket: https://github.com/osTicket/osTicket/issues/3726#issuecomment-344398410
There were no changes. Actually its been running for several months already since it was upgraded (v1.10). Suddenly it just wont send any email. I tried your suggestion. It still encrounter the same error. I already upgraded it to (v1.10.1) but the issue still the same.
IF it was running fine on 1.10 for several months... then its highly unlikely that the problem is osTicket. Something has to have changed some where. PHP version? Perhaps a fire wall? Perhaps someone changed gmail settings? perhaps google thought that you were spamming? perhaps they changed how security works on their product.
I have a similar problem, in my case was the SSL certificate of my webserver and the PHP function could not connect with SMTP of Gmail using the SSL 465 port.
You can do a Diagnostic of Outgoing Email under Admin>Emails>DiagnosticAlso, look at the System Logs, it will give more info on the issues
Below are the errors I am seeing:When Saving the Email Settings:Sending Email via SMTP authentication failure System Logs:Unable to email via php mail function@domain.com mail() returned failureDiagnostic:Error sending email - Please try again!
I am able to test authenticate and send a test email via a Microsoft SMTP server on port 587. But in Gmail I still cannot. I verified in Gmail settings that there are no blocked logins, Allow Less Secure Apps is On. 2 Step Verification is Off.
Anyone using G Suite and using their SMTP servers in Osticket? Any issue?
I followed this tutorial to test the connectivity to the Gmail SMTP using the account that is configured to the Osticket. This was also run using the server where the Osticket is installed. --> https://www.saotn.org/test-smtp-authentication-starttls/The results below does not show any error and I am able to receive the test email---250 SMTPUTF8EHLO xxxxxxxx.com250-smtp.gmail.com at your service, 250-SIZE xxxxx250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8AUTH PLAIN xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx235 2.7.0 Acceptedmail from:<sender@domain.com>250 2.1.0 OK xxxxxxxxx - gsmtprcpt to:<recipient@domain.com>250 2.1.5 OK xxxxxxxxx - gsmtpdata354 Go ahead xxxxxxxxxxxxxxx - gsmtpTest Email.250 2.0.0 OK xxxxxxxx xxxxxxxxxxxxxxxx - gsmtpquit221 2.0.0 closing connection xxxxxxxxxxxxxx - gsmtpread=0
for Gmail I use SSL, TLS give me authentication errors, so, it is more easy to configure. this last week I had problems because certifications but only use a PEM file and was resolved.
How you configure a PEM file?