Hello

Some emails don't get sent. I would say about 10% of emails do not get sent.
I do get a error Unable to email SMTP-relay in the dashboardé

Ubuntu 18.04.3 LTS
osTicket (v1.12.3)

I see no error in the mail.err or log

I'm a novice in Osticket and ubuntu but I am a quick learner.
If anyone can help that be awesome, I have been stuck for a few days.



Does the blotted out email in the last screen shot match the email in the second screen shot that you are using as the default MTA address?
ie is the the gmail address that you are using?

The email error says failed to set sender. This could be caused by using an email that gmail/google doesn't accept but that would usually result in a unable to relay.

This could be because the PEAR mail class in osTicket looks to be pretty old.

I dont know if this will work but If your feeling adventurous you can download a newer version from here:
https://pear.php.net/package/Mail/download

And try replacing the /include/pear/mail.php with the newer version and see if it fixes the issue.

I've also asked the devs to take a look at this thread.

  • joco replied to this.

    @joco

    We have plans to update Pear in a few weeks so stay tuned.

    Cheers.

    I try the update of /include/pear/mail.php and that kinda kill my apache server 😅 but good thing I had a snapshot 😀

    My addresses do match. I guess I will wait for the upafe of Pear in a few weeks and pay to the dev gods.

    @joco

    Wow....I can't believe I didn't catch this earlier.... I just noticed that you are using the hostname smtp-relay.gmail.com for the port 587 which will not work at all. You must use the hostname of smtp.gmail.com with the port 587. Try this and see if it saves properly and sends out mail again.

    Cheers.

    Write a Reply...