Hi, I'm using Os ticket version 1.12.2 and I have an issue to get email notification when there is a ticket in.
I have an error that says that "Unable to log in. Check SMTP settings . " while configuring the mail address with Authentication Required enabled, but when it is disabled it save the changes, but in both options on the diagnostic page test fails and shows this message Error sending email - Please try again!.
I checked the version of OpenSSL also the firewall permission on the SMTP port and email credentials are working fine.
The SMTP server works fine as well I tested it with another address and I m running it on port 587.
So if someone could help me on this issue it will be much appreciated,
PS: it was working fine before the upgrade to 1.12.2.
Sending Email via SMTP
Please help us to help you by reading and following the posting guidelines located in this thread: Please read before requesting assistance. The more information you give us the better we will be able to assist you. Thank you.
Environment details?
Mail settings?
- Edited
I'm on Ubuntu 16.04.6 with apache 2 as a web server and PHP 7.1
Here is the mail configuration :
Here is the error message when I do the test in the diagnostic page:
does the imap.mydomain.com
and smtp.mydomain.com
resolve to your domain's mail server(s)?
Does your mail server require authentication to send me? (you have Auth Required set to no)
it does require authentication but I set it to No when it set on Yes get this error:
- Edited
Are you sure that the port number is correct? SMTP SSL/TLS port is traditionally 465.
Do you know what mailserver software its running?
Can you upgrade PHP to something newer? (7.3)
I installed sendmail and it's working but only in unsecured emails, on port 587 with Authentication Required disabled.
Sounds like maybe your sendmail isn't configured right.
I created a new ticket, but this looks like my same issue, too.
Make sure your osTickets system is allowed to send out email from your email server.
Mine sends with unsecured and no-auth. But anything SSL Cert secured and/or auth-required either returns an error or a bad gateway.
Scott_McCoy
Are your email server and OSticket in the same network? I was using an in-house email server, which had a similar issue, it's your email server settings not allowing or not enabled to check for SSL. Take a look at this link: https://github.com/osTicket/osTicket/blob/develop/setup/doc/api.md
SOLVED (for me)
Hopefully this solves your issue, too.
I hired a server admin to dig into this issue. It turns out osTicket does not properly handle email account passwords that contain special characters. Removing all special characters solved the issue.
For example, the password "R$t8#-hM" will fail. Password "We8L3Gb" will work.
Hopefully this will be corrected in the next version.