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?

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:

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.

4 days later

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.

    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.

    Write a Reply...