Help ›

osTicket with Microsoft 365 or Gmail, without the OAuth2 plugin

osTicket fetches support emails from a mailbox over IMAP or POP and turns them into tickets, then sends replies and alerts over SMTP. Microsoft 365 and Gmail require OAuth for this. osTicket 1.16 and earlier don’t support it, and 1.17 and later need the OAuth2 plugin, your own app registered with Microsoft or Google, and an authorization for each email account.

With Auth-Email, every osTicket version can use ordinary IMAP, POP, and SMTP settings with a password, with no plugin to install and no app to register.

Before you start: link the mailbox in your Auth-Email dashboard, and choose a password for it. That is the password you’ll enter in osTicket – not your mailbox password.

Support addresses are often shared mailboxes – see account delegation and shared mailboxes. Link each email address that osTicket fetches from or sends as.


Step 1: Configure the email address in osTicket

In the osTicket staff panel, go to Admin Panel > Emails > Emails, and click the email address (or Add New Email). Show the settings for an account provided by Outlook:

osTicket 1.17 and later

On the Remote Mailbox tab (to fetch email into tickets):

  • Status: Enable
  • Hostname: outlook.auth-email.com
  • Port Number: 993 for IMAP, or 995 for POP
  • Protocol: IMAP (or POP)
  • Authentication: Basic Authentication (Legacy) (not OAuth2). Click Config, and enter the linked mailbox’s email address as the username, and the password you chose in Auth-Email

On the Outgoing (SMTP) tab:

  • Status: Enable
  • Hostname: outlook.auth-email.com
  • Port Number: 465
  • Authentication: Same as Remote Mailbox, or Basic Authentication (Legacy) with the same username and password

osTicket uses an encrypted connection automatically on ports 465, 993, and 995.

osTicket 1.16 and earlier

In the Email Login Information section, enter the linked mailbox’s email address as the Username, and the password you chose in Auth-Email as the Password. Then:

  • Fetching Email via IMAP or POP:
    • Status: Enable
    • Hostname: outlook.auth-email.com
    • Port Number: 993 for IMAP + SSL, or 995 for POP + SSL
    • Mail Box Protocol: IMAP + SSL (or POP + SSL)
  • Sending Email via SMTP:
    • Status: Enable
    • Hostname: ssl://outlook.auth-email.com – the ssl:// prefix is needed for a secure connection
    • Port Number: 465
    • Authentication Required: Yes

Click Save Changes. To check that it works, send an email to the support address, and wait for osTicket to fetch it (or run its cron job). Then reply to the new ticket.


Troubleshooting

  • “Invalid Credentials” or “Authentication Error”: check that the username is the full email address, and that the password is the one you chose in Auth-Email (not your mailbox password)
  • Emails aren’t fetched: osTicket only fetches email when its cron job runs (or, if enabled, when staff use the panel). Check that the cron job is set up, and that Email Fetching is enabled in Admin Panel > Settings > Emails
  • “Sender address rejected” or “SendAsDenied”: each osTicket email address must be the linked mailbox, or an address that the mailbox is allowed to send as. Make sure Header Spoofing is disabled

  • Older servers that report SSL or certificate errors: enable legacy SSL/TLS for the account in your dashboard, and use our legacy client settings

For other errors, such as Microsoft 365 reporting that SMTP AUTH is disabled, see fixing common errors. Your account’s connection page in the Auth-Email dashboard also shows whether osTicket has connected, and explains any error it received. Still stuck? Email us – we’ll help you get it working.


Try Auth-Email with osTicket

Link your support mailbox, update osTicket’s email settings, and send a test email to create a ticket.

Start your free trial →

No credit card needed. Check that it works, including sending yourself test messages, before you pay.