meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| ticket_email_parse [2025/06/15 03:37] – 68.162.129.20 | ticket_email_parse [2026/02/09 15:59] (current) – Added config details for OAuth 79.173.147.104 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Email ticketing ====== | ====== Email ticketing ====== | ||
| - | Client contacts | + | Clients |
| 1. Install PHP extensions: (//These will be installed if you installed via script method//) | 1. Install PHP extensions: (//These will be installed if you installed via script method//) | ||
| Line 40: | Line 40: | ||
| ===== Notes ===== | ===== Notes ===== | ||
| - | * Only supports **basic auth**entication. This will not work with Microsoft as they require OAuth. | ||
| * As closed tickets cannot be re-opened, replies to closed tickets raise a notification | * As closed tickets cannot be re-opened, replies to closed tickets raise a notification | ||
| * By default, emails from addresses that can't be matched to a client (via registered domains), contact (via email), or existing ticket (via subject line) are left in the inbox and flagged for review. | * By default, emails from addresses that can't be matched to a client (via registered domains), contact (via email), or existing ticket (via subject line) are left in the inbox and flagged for review. | ||
| * This behaviour can be adjusted by enabling "// | * This behaviour can be adjusted by enabling "// | ||
| + | |||
| + | |||
| + | ===== Microsoft 365 & Google OAuth Support===== | ||
| + | As of IT Flow version 26.02 OAuth support has been added. Setup for this is very simple. The guide below will focus on Office 365. | ||
| + | |||
| + | ==IT Flow Initial Configuration== | ||
| + | 1. Open Administration > Settings > Mail | ||
| + | |||
| + | 2. Select SMTP Provider as Microsoft 365 (OAuth) or Google Workspace (OAuth). | ||
| + | Note that there are no settings to configure under SMTP, these are inherited from your IMAP settings entered in the next step. | ||
| + | |||
| + | 3. In 'IMAP Provider' | ||
| + | |||
| + | 4. In 'IMAP Username' | ||
| + | |||
| + | |||
| + | ==Microsoft Entra ID Configutation== | ||
| + | 1. Open up Entra and go to App Registrations > All Applications or [[https:// | ||
| + | |||
| + | 2. Create a new app by slecting New Registration | ||
| + | |||
| + | 3. The name can be anything you want, but i suggest using IT Flow. Set the ' | ||
| + | |||
| + | 4. Go to 'API Permissions' | ||
| + | * IMAP.AccessAsUser.All | ||
| + | * offline_access | ||
| + | * openid | ||
| + | * profile | ||
| + | * SMTP.Send | ||
| + | * User.Read | ||
| + | |||
| + | 5. When these are added, **do not forget** to click the 'Grant Admin Consent for {{Your Organisation}}' | ||
| + | |||
| + | 6. Next, go to ' | ||
| + | |||
| + | 7. Go to ' | ||
| + | |||
| + | 8. We need 2 more things, so lets go back to the Overview page and copy your ' | ||
| + | |||
| + | |||
| + | ==IT Flow Final Configuration== | ||
| + | 1. Back in IT Flow, paste the ' | ||
| + | |||
| + | 2. Paste the ' | ||
| + | |||
| + | 3. Paste the ' | ||
| + | |||
| + | 4. Hit the ' | ||
| + | |||
| + | 5. In the ' | ||
| + | |||
| + | 6. Sign-in to Microsoft 365 with the account you will be monitoring for new tickets | ||
| + | |||
| + | 7. Select the ' | ||
| + | |||
| + | 8. You should now be taken back to IT Flow and your ' | ||
| + | |||
| + | 9 Hit save one final time. | ||
| + | |||
| + | |||
| + | ==Verification== | ||
| + | 1. Scroll to the bottom of the settings page and test email sending, test the IMAP connection and finally test the OAuth token refresh. If all work, then go ahead and send an email to your mailbox and check if this is picked up and converted to a ticket. The mailbox is checked every 60 seconds. | ||