fied by GERALD
$sql='SELECT count(open.ticket_id) as open, count(answered.ticket_id) as answered '.
',count(overdue.ticket_id) as overdue, count(assigned.ticket_id) as assigned '.
' FROM '.TICKET_TABLE.' ticket '.
... getting this error, but even disabling STARTTLS (as several of the above comments suggest) didn't help, as it then reported an authentication error. I found... tup, the mail server is on the same local network as the osTicket server, so I'm not overly concerned