Moving Zammad email channels to OAuth (XOAUTH)

Replacing password-based mailboxes with OAuth in Zammad for Google and Microsoft 365, including the built-in IMAP migration, the Graph channel re-add step, and the tests to run before providers switch off basic authentication.

On this page

Why Zammad OAuth email channels matter before basic authentication ends

Moving your Zammad email channels from stored passwords to OAuth is the work that keeps ticket intake running when a mail provider stops accepting password logins. Every IMAP or SMTP channel that authenticates to a Google or Microsoft 365 mailbox with a username and password depends on that provider still allowing basic authentication. When it stops, incoming mail stops creating tickets and outgoing replies fail, often without an obvious error in the agent interface. In Zammad, OAuth replaces the stored password with a token that the provider issues to an application you authorize, so the channel keeps working under the provider's current rules.

The affected channels are the email accounts that Zammad reads and sends through. For Google and Microsoft 365 mailboxes configured over IMAP and SMTP, Zammad includes a built-in migration path to XOAUTH. Microsoft Graph channels are handled differently: they are not converted in place and must be re-added with their own authorization. Any generic IMAP account on another host is outside this OAuth path and needs its own review. Inventory every channel, its sender and destination group, and whether it reads, sends or both, before you change anything, because each one has its own consent step and its own failure mode.

Treat this as planning work, not an emergency task for the day a provider changes its policy. Changes to each channel need an OAuth application registered with the provider, consent by an account that has the right to grant it, and a test run in a non-production Zammad instance. Confirm current provider requirements directly with Google and Microsoft, since their policies and admin settings change, and check the release notes for the Zammad version you run. Scheduling the migration while basic authentication still works gives you time to fix consent, redirect and permission problems without losing mail.

Which Zammad channel type fits each mailbox

This table compares password-based IMAP and SMTP accounts, Google and Microsoft 365 IMAP channels that authenticate with OAuth, and Microsoft Graph channels. Read each row against the mailbox you are moving, then confirm current provider support in the Zammad admin documentation and the release notes for your version before you plan the cutover.

Channel typeAuthentication and migrationRe-add requiredWhen it fits
Password-based IMAP and SMTPUsername and password or app password stored in Zammad; no OAuth consent screenNot applicable to the built-in OAuth migration; the account keeps its existing credentialsMailboxes on providers or servers that do not offer OAuth, or where the provider still accepts password logins for this account
Google IMAP with OAuthOAuth token issued through a Google Cloud app; basic password authentication no longer appliesConfirm in the admin documentation whether the built-in migration converts an existing Google IMAP channelGmail or Google Workspace mailboxes that already sit on an IMAP channel and need to stay on it
Microsoft 365 IMAP with OAuthOAuth token issued through a Microsoft Entra app registration; basic authentication for IMAP and SMTP is being retired by MicrosoftConfirm in the admin documentation whether the built-in migration converts an existing Microsoft 365 IMAP channelExchange Online mailboxes that stay in IMAP and SMTP and must keep working after basic authentication is switched off
Microsoft GraphOAuth through the Microsoft Graph API; the channel is a separate connection type, not an IMAP accountYes, in most cases the existing IMAP channel must be re-added and its filters and group mapping checkedMicrosoft 365 mailboxes where the team wants API-based access and accepts a different setup path
Gmail channel from the Google providerOAuth through the Google provider in the Zammad email channel settingsConfirm whether your version requires a new channel rather than an in-place migrationNew Google Workspace setups where the dedicated Google channel flow is available in your release
Built-in migration appliesConverts a supported OAuth channel in place, keeping the same destination group and historyNot required for supported in-place conversionsUse only for channel types the admin documentation names as migratable for your version
What to confirm before choosingProvider support status, Zammad version, and whether the mailbox uses shared or delegated accessCheck the release notes for your target versionAsk the provider and the Zammad documentation which options remain available after the date your tenant switches off basic authentication

Each mailbox follows one of three paths, depending on provider and channel type

The branch starts with an inventory of every email channel in Zammad, sorted by provider and channel type. Google and Microsoft 365 IMAP channels can use the built-in migration to OAuth, while Microsoft Graph channels must be removed and added again through the OAuth setup. Other IMAP mailboxes keep password authentication where their provider still allows it. Confirm each provider's current basic authentication status before you change any channel, because the provider decides which paths remain open.

Decision path for each Zammad email channel by provider and channel type.

How the built-in IMAP migration to OAuth works

The built-in migration exists to change how an existing Zammad email channel authenticates, not to rebuild it. For Google and Microsoft 365 IMAP channels, the goal is to move the mailbox from a stored password to an OAuth grant while keeping the channel's group destination, filters, signatures, and the ticket history already attached to it. Before anyone touches the channel, the key decision is whether your current IMAP channel is one the built-in migration supports for your provider and installed Zammad version. Confirm that against the Zammad documentation for the release you run, because supported providers and the migration path can differ between versions.

Most of the preparation happens outside Zammad. The admin must create an OAuth application in the provider's console, register the Zammad callback (redirect) URL that Zammad shows for the installation, and configure the consent screen and the mail scopes Zammad needs to read and send through the mailbox. For Google, that means a Google Cloud project; for Microsoft 365, an app registration in Microsoft Entra ID. Someone with rights to grant tenant-wide or workspace-wide consent must be identified early, because a mailbox owner alone may not be able to approve the permissions. Record which client ID and secret are used, who owns them, and when the secret expires.

The exact screens, menu paths, field names and order of steps are not described here on purpose. Confirm them against the Zammad documentation for your installed version and against the current provider console, since both change. Treat the first migration in a non-production instance with a copy of the mailbox as the way to find out which permissions, consent prompts and redirect settings your tenant actually enforces. Keep the old password-based channel available until a test ticket round trip (inbound and outbound) succeeds under OAuth.

Test Zammad OAuth channels in staging before cutover

This sequence proves that each Google and Microsoft 365 mailbox still fetches, sends and routes correctly under OAuth before production is changed. It produces a dated record of every channel, its test results and the reconnection behavior you can expect when a password or consent changes.

  1. Inventory every email channel and its groups

    The Zammad administrator lists each email channel in production, including the inbound account, the outbound sender address, the protocol (IMAP, SMTP or Microsoft Graph), the provider, the destination group for incoming tickets and any groups that send replies from that address. Record the owner of each mailbox and any filters, triggers or auto-reply rules that depend on it. Done when the list covers every channel and every group that sends or receives through it, and a second administrator has reviewed it.

  2. Copy production configuration into staging

    Build a staging Zammad instance on the same major and minor version as production, then restore a recent production database and copy the email channel, group, filter and trigger settings. Use test or delegated mailboxes that your provider accounts can reach, not live customer mailboxes. Confirm that staging points at its own outbound mail settings so no test message reaches a real customer. Done when a configuration comparison shows the same channel, group and filter records in both systems.

  3. Run the built-in migration or re-add Graph channels

    For Google and Microsoft 365 IMAP and SMTP channels, run the built-in OAuth migration in staging and confirm each channel shows an OAuth connection rather than a password. For Microsoft Graph channels, which must be re-added, create a new channel in staging, grant the consent requested by the provider and select the same destination group as production. Record the consent scopes requested and the tenant or account used. Done when every channel in the inventory shows an authorized connection with no errors in the channel status.

  4. Test inbound fetch and ticket creation

    Send test messages from an external address to each staging mailbox, including a message with an attachment and a reply to an existing ticket. Confirm that new tickets land in the expected group with the expected owner, that replies attach to the original ticket, and that attachments are stored. Check the fetch interval and the channel log for errors. Done when each test message appears once, in the correct group, and the log shows successful fetches without authentication failures.

  5. Test outbound sending and send-as behavior

    From each group and agent, send a reply through the OAuth channel and confirm it arrives at an external test address with the correct display name and sender address. If a group sends from a shared or alias address, verify that the provider accepts that send-as configuration under OAuth. Inspect the message headers for the expected sender and authentication results. Done when every outbound path delivers, and the sent message headers match the sender recorded in the inventory.

  6. Verify filters, triggers and auto-replies

    Re-run each email filter and routing rule from the inventory with test messages that match sender, recipient and subject conditions, and confirm each one routes to the same group, owner and priority as production. Send messages from a robot or no-reply address to confirm auto-replies are still suppressed. Check that triggers that send notifications still fire. Done when every rule produces the same outcome as recorded in production, with any difference logged for correction before cutover.

  7. Test reconnection after password or consent changes

    Change the test account password in the provider, and separately revoke and re-grant consent for the OAuth app, then observe how Zammad reports the channel and whether fetching resumes after you reauthorize. Record the exact error messages, the time between failure and recovery, and any steps that were needed. Confirm with your provider's administrator which events trigger token expiry in your tenant. Done when you have a written reconnection procedure that the operations team can follow without the original engineer.

  8. Document results and sign off the cutover plan

    Compile a test record for each channel covering the inbound, outbound, routing and reconnection results, the Zammad and provider versions used, and any open issues. Ask the provider administrator to confirm the basic authentication retirement timeline for your tenants and check it against your planned cutover window. Have the channel owners and the helpdesk lead approve the record before production work begins. Done when the signed record lists no failing channel and every open item has an owner.

Why Graph channels must be re-added instead of converted

A Microsoft Graph channel is set up as a separate channel rather than switched over in place, so the old channel has to be documented before it is removed. The cards below cover what to record, how history stays linked, where mail can be lost, and how to confirm the current requirements.

Record filters and routing first

Before deleting the old channel, export or write down every email filter, its match conditions and its actions. These rules decide which group, owner and priority an incoming message receives. A re-added Graph channel does not carry them over, so a missing filter can send mail to the wrong group without any visible error. Compare the filter list against the new channel after the re-add.

Map groups and destinations

Note which Zammad group each channel delivers to and which address replies go out from. Confirm that the same group exists and that agents in it still have access. If the destination group changes during the re-add, new tickets will land in a different queue than the one your team watches.

Capture signatures and recipient addresses

Copy each outgoing signature and every recipient address the channel receives, including aliases and shared mailboxes. These details live on the channel setup, so they must be re-entered on the new one. Check that outbound replies use the same visible sender address customers already know, or they may question whether a message is genuine.

Keep ticket history linked

Existing tickets remain in Zammad, but the link between a ticket and its mailbox depends on the channel that received it. Before removing the old channel, confirm that open tickets stay visible and that replies to existing threads still reach the right ticket. Test with one old thread and one new thread after the re-add.

Avoid a gap in mail intake

While the old channel is removed and the new one is configured and authorized, incoming mail can queue at the provider or go unread. Plan the cutover in a quiet window, keep the old mailbox reachable until the new channel fetches successfully, and send a test message from an outside address before you declare the switch complete.

Confirm current Graph requirements

Requirements for Microsoft 365 Graph channels, including app registration and permission steps, can change between Zammad releases. Check the current admin documentation for your installed version before you begin, and confirm the steps against your own tenant policies with your Microsoft 365 administrator.

Zammad admin docs

What changes for Zammad admins versus agents

Most of the work sits with the administrators who own the Zammad channel and the Google or Microsoft 365 tenant behind it. The provider side has to be ready before Zammad can request a token for a mailbox, and the consent step often needs someone with higher privileges than the Zammad administrator. Plan these tasks as a short checklist with named owners, not as a single click in the Zammad interface.

  • Provider app registration: Register the OAuth application in the Google Cloud or Microsoft Entra console, and copy the redirect URL exactly as Zammad displays it. A mismatch here is one of the most common reasons the authorization step fails.
  • Consent by a tenant or workspace administrator: Many Microsoft 365 tenants and Google Workspace domains restrict third-party app consent. Confirm with the tenant administrator whether the app needs an admin consent grant before the Zammad administrator starts.
  • Mailbox permissions: Confirm that the account used for authorization can read and send through each shared or group mailbox. Confirm the permission model (delegated or application) with the provider documentation for your tenant.
  • Credential ownership after go-live: Record which named administrator owns the app registration and any client secret, when that secret expires, and who receives renewal reminders. If the owner leaves, the channel can stop without warning.
  • Rollback record: Keep the previous IMAP and SMTP settings documented until the new channel has passed verification.

Before the switch, check consent status, the owner of record and every secret expiry date in the provider console.

Token, consent and mailbox permission risks to control

Moving a Zammad channel from password IMAP to OAuth changes who holds mailbox access, how consent is granted and what happens when a person leaves. The cards below cover the risks that tend to surface in a regulated helpdesk, each with the control to apply and the evidence to keep for review.

Overly broad mailbox permissions

The consent screen asks for the scopes the Zammad app requests, and those scopes decide how much of a mailbox the helpdesk can read and send from. Record the exact permissions granted for each channel, compare them with the scopes your provider documents for mail access, and reject any broader grant. Keep a dated export or screenshot of the granted permissions as the baseline for later reviews.

Zammad migration docs

Shared admin accounts approving consent

If a shared or generic administrator account approves the OAuth consent, nobody can later say who authorized mailbox access. Require a named administrator from the provider side to grant consent, and record the approver, date and mailbox in the change ticket. Confirm with your identity team which role is needed to grant tenant-wide consent in your environment before the change window.

Tokens tied to a departed employee

A channel connected under one person's account can stop working when that account is disabled, and the audit trail then points at someone who has left. Prefer a dedicated service mailbox owned by the team, and document who is the named owner for each channel. Review the owner list on every offboarding so no channel depends on an account that is about to close.

Silent channel failures

When an OAuth token expires or is revoked, intake can stop without any visible error for the agents. Add a check that confirms new mail arrives within an agreed window, and alert the helpdesk owner when a channel stops fetching. Test the alert by deliberately revoking a non-production token, and keep the alert record as proof that failures are caught.

Retained password credentials after cutover

Old IMAP and SMTP passwords left active after cutover give a second way into the mailbox that bypasses the OAuth controls. Revoke or rotate those credentials once each channel has been verified on OAuth, and remove them from Zammad configuration. Keep a signed checklist showing each old credential was disabled and the date it was done.

What does a Zammad OAuth email migration cost and how long does it take?

What drives the cost of moving Zammad email channels to OAuth?

The cost follows the number of channels, the number of provider tenants, and how much configuration sits behind each mailbox. Each Google or Microsoft 365 channel needs its own consent, group destination and test pass, so a handful of shared mailboxes is far smaller work than dozens of per-team inboxes across several tenants. Custom filters, header-based routing rules and triggers that depend on specific senders add review and retesting time. Staging work and the depth of testing you require also move the total. Ask any provider for a quote that lists each channel, each tenant, the filters in scope and the test cases, so you can compare like with like.

Can our own team migrate Zammad email channels to OAuth without help?

Yes, for a small installation with one or two Google or Microsoft 365 mailboxes, an administrator who is comfortable with Zammad channels and the provider admin consoles can often complete the built-in IMAP migration alone. The work becomes harder when you have several tenants, Graph channels that must be re-added, custom filters, or a staging environment that must mirror production. Teams that choose to do it themselves should still write down a test plan covering inbound mail, outbound replies, group routing and token refresh before the provider deadline. A partner is useful when the team lacks time or provider admin access, or when the work has to be documented for an audit.

What do we need from our admins and provider accounts before the work starts?

You need a Zammad administrator who can change channel settings, plus a Google Workspace or Microsoft 365 administrator who can register the OAuth application, grant consent and, for Microsoft 365, approve the required permissions in the tenant. Identify each mailbox, its owning group and whether it is an IMAP channel or a Graph channel. Confirm who holds the credentials for each provider tenant and whether any mailbox uses delegated or shared access. Your team also needs access to a staging Zammad, a test mailbox and a change window. Check that Zammad is reachable at the public address that the OAuth redirect will use, because a mismatch is a common cause of failed consent.

How does a quote for Zammad email migration follow from the scope?

A quote follows from a written scope. DeployOpen agrees the scope, deliverables and timelines in writing before work starts, and most engagements are fixed-scope. The written scope should name the channels in each provider tenant, the filters and routing rules to review, the staging and cutover steps, the test cases and the documentation you will receive. Anything not listed, such as a new Graph channel or a change to a trigger that the migration uncovers, should be handled as a separate line or change request. DeployOpen does not publish a price list, so compare quotes on the scope they describe rather than on a headline figure.

Does a Zammad self-hosted subscription change the email migration work?

The subscription does not change the technical steps for OAuth, because the migration happens in your Zammad instance and your provider tenants. What a subscription can change is how you get support when something fails during cutover. Zammad publishes self-hosted support subscriptions with stated response times, and those response times differ by tier. Check the current tiers and what they include on the Zammad pricing page before you decide, and confirm whether the support you buy covers provider-side problems or only the Zammad application. Self-hosted Zammad itself has no license fee, so any subscription is an additional recurring cost to include in your comparison.

How long does a Zammad OAuth migration take, and what sets the timeline?

The timeline depends on the number of channels, the tenants involved, how many filters need review, and how quickly your provider administrators can approve consent. The main timing risk is the provider deadline for switching off basic authentication, so the schedule should start from the date your provider has published, not from when work begins. Confirm the current dates in each provider's own documentation and in your Google Workspace or Microsoft 365 admin notices, because provider timelines can change. Build in time for a staging test, a rollback plan and a monitored cutover, and ask any partner to show how each of those steps appears in the written plan.

What should we confirm about provider timelines before we commit?

Confirm the date after which your provider stops accepting basic authentication for the mailbox type you use, and whether that date applies to your tenant or to all tenants on a schedule. Check whether the change affects IMAP only, SMTP only, or both, and whether Microsoft Graph channels are affected separately. Confirm that your current Zammad version supports the OAuth option for your provider, and check the Zammad release notes for any change that affects channels. Record the answers in the written scope, because a provider change that arrives during the project should trigger a review of the plan rather than a rushed cutover.

Limits to confirm in your environment

Each of these answers changes what the OAuth migration involves, so confirm them before estimating work or booking a window. The first two come from Zammad and your identity provider, the rest from your own tenant and deployment.

Zammad version and channel support

Confirm which Zammad release you run and whether its release notes list OAuth support for the exact channel type you use, either the built-in IMAP and SMTP OAuth flow for Google or Microsoft 365 or the Graph channel. The Graph channel must be re-added rather than converted, so a version that only covers IMAP does not solve it. Check the releases page before any planning, and read the notes for every release between your version and the target.

Zammad releases

Provider services and tenant policies

Identify which provider services your mailboxes sit in, such as Google Workspace or Microsoft 365 Exchange Online, and what your tenant administrators have allowed. Consent policies, app registration restrictions and conditional access rules can block the OAuth consent step even when Zammad supports it. Ask the tenant administrator for the current policy export rather than relying on memory of past setups.

Shared and delegated mailboxes

Determine whether any channel reads a shared mailbox, a group alias or a mailbox opened through delegated access. Consent is granted by a user account, so the account that authorizes the channel must have the rights the provider requires for that mailbox type. Record each mailbox, its owner and who holds access, because a shared mailbox may need a different consent path than a personal one.

Attachment and message size handling

Check how your deployment handles large inbound messages and attachments, including the reverse proxy body size limit, the storage location for attachments and any search indexing of attachment content. Changing the authentication method does not change these limits, so a mailbox that worked on passwords may still fail on large messages after the switch. Test with a representative sample of your largest real support threads.

Regional hosting and plan limits

Confirm where your provider tenant is hosted and whether any change to basic authentication or OAuth rules differs by region or by subscription plan. If you run a hosted Zammad plan, check with the vendor which connection options that plan exposes. Ask the provider and the Zammad vendor in writing, and keep the answers with the change record.

How DeployOpen scopes and delivers Zammad email channel migrations

DeployOpen treats the move from password-based IMAP and SMTP to OAuth for each Zammad email channel as a scoped change to your live support mailboxes. We inventory every channel, agree the written scope and the test plan before work starts, then build, verify and hand over the result inside your own infrastructure.

How we scope

  • Inventory every Zammad email channel, its mailbox provider, group destination and current authentication method before any change.
  • Confirm which channels use the built-in Google or Microsoft 365 IMAP path and which are Microsoft Graph channels that must be re-added.
  • Agree the written scope, deliverables and timeline with you, with ongoing support available as a retainer afterward.

How we build

  • Prepare the OAuth app registrations and consent settings with your identity and mail administrators, using your tenant and your accounts.
  • Migrate each IMAP channel using Zammad's built-in OAuth path, and re-add Graph channels with their own setup steps.
  • Test inbound and outbound mail, filters and group routing on each channel in a non-production instance before cutover.

How we hand over

  • Document each channel with its provider settings, redirect URLs, owners and rollback steps, so your team can run it.
  • Record the test results for every channel, including the provider's basic authentication dates you checked against.
  • Walk your administrators through the change and leave a runbook for renewals, credential rotation and future channel additions.

How we support

  • Retest channels after provider changes or Zammad upgrades when you have a support retainer in place.
  • Investigate mail delivery or token problems that appear after cutover and agree fixes in writing.
  • Plan follow-up work such as Elasticsearch-based attachment search or additional channels as separate fixed-scope engagements.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.