I wanted to make a request to laminas-mail directly, but I saw, the latest version of laminas-mail solves this error.
laminas-mail 2.18.0 connect to mail servers with stream_socket_client(), not using fsockopen(). So there is a solution to disable certificate validation.
KevinTheJedi
I made a pull request to update laminas-mail to 2.18.0 and disabled the validation. Please see at:
https://github.com/osTicket/osTicket/pull/6312
There is already a pull request to update laminas-mail, but I removed all development dependencies.
So laminas-mail includes less than 500 files by using 3,5 MB...
laminas-mail should not have more files as osTicket itself.
Please merge this request for the next release.

    KevinTheJedi
    Hi,

    We are confirming that the above change proposed by jens_E is also working for us.

    Realized that this thread is apparently covering two separate issues. :]

    Thank you!

      Hi sushpep

      are you using IMAP? What did you canged? Line 91 in Imap.php?

      We've tried but does not work for us.

      Without change we get:

      And if we change as jens_E described the is no error shown but mails aren't fetched.

      Regards!

        And your cronJob is enabled?
        You can set your log level to debug in Settings->System.
        Then you can see, if the cron runs in your system log. There should be an entry for it...

          jens_E

          Hmmmm....
          Looks like i run into another issue:
          If i start the job manually i get:

          ###############
          /home/ticketing/public_html/api/cron.php
          PHP Fatal error: Abstract function osTicket\Mail\MailBoxProtocolTrait::oauth2Auth() cannot be declared private in /home/ticketing/public_html/include/class.mail.php on line 238
          ###############

          a month later

          @jens_E @KevinTheJedi
          I've updated to 1.17.1
          Same error. Edited Imap.php again. No more error but mails aren't fetched!
          So something has changed with 1.17.1 but not for good. :/

          For now i revert to last snapshot to get it working again. But a final solution would be great.

          8 days later

          Hi,
          short update. With 1.17.2 the problem still persists:

          Manual edit of Imap.php fixed it again.

          Regards!
          Gero

          Write a Reply...