Hi everyone, I succeeded to run everything I need on osTicket, except sending mail. I use proxied CloudFlare DNS record pointing to my AWS instance, which has dockererized containers for php and nginx. AWS security group is open for outgoing ports. I configured OAuth2 plugin for my Google Workspace account following the osTicket tutorial and it worked fine. After configuring osTicket SMTP for OAuth, I get my osTicket root website. Testing with Test Outgoing Mail diagnostics sometimes return error and sometimes not but I always don't receive any email and I get the attached image error. I'm not sure if it's something with cloudflare, nginx, or anything else. Someone has similar configuration or ran similar error? Any help would be appreciated.
noam_admin
NGINX is not supported out of the box and requires you to manually add a bunch of URL rewrite rules, etc. Go online to find a working NGINX recipe for osTicket. There are plenty in this forum and in other resources online. Once you get the proper URL rewrite rule(s) for OAuth2 and once you authorize on the IdP side it should bring you back to the email configuration screen with a success message. If you get redirected to the homepage then URL rewriting is not enabled or setup correctly, or the Redirect URI you used in the google project is not correct, or maybe the google project and/or plugin info is misconfigured.
Cheers.
this post fixed the issue: https://github.com/osTicket/osTicket/issues/6293#issuecomment-1278609953
You shouldn’t make any changes to core files. Revert whatever changes you did to core files and follow this post: