osTicket Gmail IMAP Fixes

In the ever-ongoing list of osTicket bugs and quirks, there are a few IMAP/Gmail-related ones I continuously run into. If you are having issues connecting osTicket to a Gmail account for sending/receiving emails over IMAP and SMTP, ensure you have done all of the following steps:

  1. Log into the Gmail account from a browser to make sure you have the correct credentials. While you’re logged in, make sure IMAP is enabled from the Settings.
  2. In osTicket, you will have to jump through a number of hoops to get it to correctly re-try an IMAP connection that was previously working:
  3. Go to Admin Panel -> Email
  4. Disable SMTP entirely at the bottom by checking the radio box. You will enable it again later when IMAP is working.
  5. Change the Mail Fetch setting from IMAP to POP (yes, I know this sounds counter-productive but bear with me)
  6. Change the port from 993 to 995
  7. Erase “INBOX” from the Folder name box
  8. Enter the user and password for the GMail account.
  9. Try to Save Changes at the bottom.

osTicket should be able to log in correctly via POP, which will then clear out whatever issue is causing it to fail with the IMAP connection. Now you can change the settings back to IMAP and watch as osTicket magically succeeds in connecting despite previously failing with the exact same settings:

  1. Change the setting back to IMAP
  2. Enter INBOX for the folder name
  3. Change the port back to 993
  4. Re-enter your Gmail credentials just to be thourough.
  5. Try to Save Changes at the bottom
  6. Re-enable SMTP and Save Changes again.

Leave a Reply

Your email address will not be published. Required fields are marked *