Connecting Gmail to Zammad for shared support mailboxes
A support team whose requests arrive in a Gmail or Google Workspace mailbox needs those messages to land in the right Zammad group, not in one person's inbox. Zammad's Google email channel handles this through OAuth against Google, so the connection is granted by consent to a Google Cloud application rather than by storing a mailbox password in Zammad. That distinction matters for security reviews, because the access can be scoped, reviewed and revoked from the Google side without changing the mailbox credentials.
Inbound, the channel fetches mail from the connected mailbox and creates or updates tickets in the group you choose as the destination, so the group, not an individual agent, becomes the owner of the queue. Outbound, replies from agents go out through the same connected Google account, which means the sender address customers see is the shared mailbox they wrote to. Confirm in your Zammad version whether the channel covers the sender identity, signatures and mail folders you expect, because these behaviors differ from a generic IMAP account, where you enter server settings and a password yourself.
The exact screens, menu labels and Google Cloud console layout change between Zammad releases and over time, so confirm each step against the Zammad version you run and the current Google Cloud console before you plan the rollout. Plan the Google Cloud project, the consent screen audience and the redirect URL together with your mailbox owner, because a mismatch there is the most common reason the connection fails at setup. Note who in your organization is allowed to approve the OAuth application, since that person effectively controls which mailbox Zammad can read.
What the Google channel needs before configuration
The Google channel depends on four things lining up before anyone opens the Zammad channel settings: a reachable Zammad instance, a Google Cloud project, the right Workspace rights, and an admin account in Zammad. Check each one first, because a mismatch in the public address or the mailbox owner is the most common reason the consent step fails.
Public HTTPS address of Zammad
Zammad must be reachable at the public HTTPS address that Google will redirect to after consent. The host name, scheme and path registered in the Google Cloud console must match what Zammad generates, character for character. Confirm the external URL in Zammad's system settings before you register anything with Google, and confirm that a reverse proxy passes the callback through unchanged. Changing the address later means updating Google's registration again.
Zammad software requirementsConfirm the Zammad release line
Zammad 6.5 and 7.x both receive security releases, so the screens and menu labels you follow may differ between the two lines. Check the version under your admin panel or on the running instance, and follow the documentation that matches it. Do this before you copy any screen-by-screen steps, so the redirect and channel settings you record come from the correct version.
Zammad releasesA Google Cloud project your team controls
The OAuth client is created inside a Google Cloud project. Use a project that your own administrators own and can change, not one tied to a departed employee or a personal account. Record who holds owner rights, where the client ID and secret are stored, and who can edit the consent screen. This project is a long-lived dependency of the mail channel, so treat its access the same way you treat other production credentials.
Workspace admin rights for organization mailboxes
If the mailbox belongs to the organization, someone with Google Workspace admin rights must approve the app for the domain or grant the access that the consent flow requires. Without that, the Zammad user may see a block at consent that they cannot resolve. Ask your Workspace administrator early, and confirm whether your domain restricts third-party app access, since that policy can stop the connection even when the Cloud project is correct.
A Zammad admin with channel access
Only an administrator with access to the channel settings can create the Google channel and complete the consent step. Confirm that the account you will use has that role, and that it is not a shared login you cannot audit. Decide in advance which group will receive the mail, since the channel setup asks for a destination group. Agents who will work the tickets should already exist in Zammad.
How Zammad reads and replies through Google mailboxes
The Google channel lets Zammad act on one mailbox through OAuth authorization rather than a stored mailbox password. An administrator creates the channel in Zammad, signs in with a Google account that can read and send for the target mailbox, and grants the consent screen permissions that the Google Cloud OAuth app requests. Zammad then uses the resulting token to poll the mailbox for new messages and to send replies from it. Before approving, the team should compare each scope Google lists against what Zammad needs for reading and sending mail, and question any scope that goes beyond those functions. Confirm the exact scope names with the current Zammad documentation and your own Google Cloud project, because the consent screen text is controlled by Google and can change.
Inbound messages are fetched from the mailbox and turned into tickets in a destination group, which is a separate decision from the mailbox itself. The mailbox is the address customers write to, while the group is the team that owns the resulting ticket and sees it in its queue. Several mailboxes can feed one group, and one mailbox can be routed to different groups only through filters or triggers, so the mapping should be written down before rollout. Agents see the sender identity that the channel configuration provides, so the display name and address on outbound mail depend on how the channel and its sender settings were set up. Teams that need a shared support address should confirm which name customers will see on replies before the channel goes live.
Replies leave from the same mailbox that received the original message, which keeps threads coherent for customers and for Google's own message handling. Test a full cycle with a message from an external address, a reply from an agent, and a customer response, and check that each step lands in the right group and thread. Also confirm how the channel behaves with forwarded mail and with the shared mailbox's own rules, since Gmail filters and labels can move or hide messages before Zammad polls them. Record the Google Cloud project, the consent owner and the scopes approved, so the channel can be reviewed when the Google account, its administrators or Zammad's documentation change.
How mail moves between Google, Zammad and agents
The diagram starts with a customer emailing a support address that lands in a Gmail or Workspace mailbox inside the Google account. During setup, an admin approves the OAuth consent screen, and Google sends the browser to the redirect URL on the Zammad server with an authorization code, which Zammad exchanges for tokens. The Google email channel then fetches new mail, creates a ticket in the destination group, and sends agent replies back through the same Google connection. Check that the redirect URL matches the one registered in the Google Cloud project exactly, because that callback is where the trust boundary is crossed.
Mail and OAuth flow between the Google account and the Zammad server, with the redirect URL callback marked.
Configuring the Google Cloud OAuth app and redirect URL
This sequence builds the Google Cloud project, consent screen, Gmail API access and OAuth client that Zammad needs before it can read and send mail for a Gmail or Google Workspace mailbox. Each step ends with a check so problems surface before any customer email is routed.
Select or create the Google Cloud project
A Google Workspace administrator or the person who owns the Google Cloud billing account creates a dedicated project for the Zammad integration, or selects an existing project that the support team already controls. Keep the project under the organization's own account rather than a personal one, so that access survives staff changes. The step is done when the project appears in the console selector and the people who will maintain it are listed as owners or editors. Confirm the current project setup with your Google Workspace administrator, since their policies can restrict who may create projects or OAuth clients.
Configure the OAuth consent screen
In the Google Auth Platform section, set the user type to match your Workspace setup, then enter the application name as it should appear to agents and mailbox owners, such as your support brand followed by Zammad. Add the domain of your Zammad instance, the one users reach in their browser, as an authorized domain, and provide a support contact address. Use the same hostname here that appears in the Zammad system settings, because a mismatch is a common cause of consent errors. The step closes when the consent screen saves without warnings and shows the scopes you intend to request.
Enable the Gmail API
Open the API library in the same project and enable the Gmail API. Zammad uses this API to read incoming messages and send replies from the mailbox through the OAuth grant. Enabling the API is a project-level setting, so do it before creating credentials. The step is complete when the Gmail API page shows the enabled status for the project. If your organization restricts which APIs can be enabled, ask the administrator to approve the Gmail API for this project before you continue.
Create the OAuth client and register the redirect URL
Create an OAuth client ID with the web application type. Open the Google channel setup in your own Zammad admin interface and copy the redirect URL exactly as Zammad displays it, including the protocol, hostname and path. Paste that value into the authorized redirect URIs of the OAuth client. Do not copy the redirect URL from documentation or from another instance, because the value depends on your domain and Zammad version. Save the client, then store the client ID and client secret in your secrets manager. The step closes when Google shows the client with the redirect URI you pasted and the secret is recorded.
Add the Google channel and authorize the mailbox
In Zammad, open the channel settings for email, add a Google channel, and enter the client ID and client secret from the previous step. Select the destination group that should receive tickets from this mailbox, then start the authorization. Sign in with the mailbox account and approve the requested permissions. A successful grant returns the browser to Zammad with the channel marked as connected. If the browser stays on a Google error page, compare the redirect URI and the consent screen domain against the values Zammad displays.
Verify inbound ticket creation
From an external address outside your organization, send a test message to the mailbox connected to Zammad. Within normal processing time, confirm that a new ticket appears in the destination group, that the sender is recorded as the customer, and that the original subject and body are present. Check the attachment handling if the test includes a file. The step is complete when the ticket is visible to an agent who belongs to the destination group. Record the test in your change log so that the baseline is available if routing changes later.
Verify outbound replies reach the customer
Reply to the test ticket from Zammad as an agent, using the connected mailbox as the sender. Confirm that the reply arrives at the external test address, that the sender name and address match the mailbox, and that the reply threads correctly in the external client. Check the Zammad ticket history for the outbound article and any delivery errors. The step closes when the external address receives the reply and the ticket shows it as sent. If delivery fails, review the channel status and the Google Cloud audit information before changing any other setting.
Choosing the Google channel or a generic IMAP account
The Google channel is the option for Gmail and Google Workspace mailboxes. Setup starts in Google Cloud, where the team creates an OAuth client, configures the consent screen and registers the redirect URL that Zammad shows during channel setup. The mailbox is then authorized through Google's consent flow, so Zammad receives access on the user's behalf and the team does not handle the mailbox password in this flow.
- Setup needs: a Google Cloud project, an OAuth client, a consent screen that lists the access Zammad requests, and a redirect URL that matches your public Zammad hostname exactly.
- What the team stores: the OAuth client ID and secret entered in Zammad, plus the tokens Zammad obtains after consent. Confirm in a test tenant exactly which values your version keeps and where.
- Renewal: access tokens refresh through the stored grant, so the ongoing work is keeping the consent valid, the app status current and the mailbox account active. Confirm refresh behavior for your account type before go-live.
- Provider changes: Google's rules for sensitive access, app verification and testing-mode consent can change. Recheck the consent screen status before each Zammad upgrade and after any Google notice.
- Destination: the channel delivers into the group you choose, so decide that group before consent so routing is clear from the first message.
Before routing live support mail, check that the redirect URL, the consent screen status and a test mailbox all work end to end.
A generic IMAP channel connects Zammad to any server that speaks IMAP and SMTP using a username and a credential. It suits providers without a dedicated Zammad channel, or mailboxes where the Google channel does not apply. The team enters server hosts, ports, encryption settings and login details directly into the channel configuration.
- Setup needs: IMAP and SMTP hostnames, ports, encryption settings and a mailbox login. Confirm that the provider still allows this login method for the account type you plan to use.
- What the team stores: a credential that Zammad keeps so it can reconnect to the mailbox. Use a dedicated service mailbox and protect the Zammad database and its backups as you would any other secret store.
- Renewal: nothing refreshes automatically. A rotated password, a revoked app password or a disabled account stops mail retrieval until someone updates the channel.
- Provider changes: providers retire basic authentication and password-based logins on their own schedule. Track provider notices, and test the channel after each change to the account's security settings.
- Scope of access: a password login usually grants access to the whole mailbox, so review the folders and aliases the account can reach and limit them where the provider allows.
Before you build, confirm the provider's current position on password and app credential logins, and document who rotates the credential and how often.
Microsoft 365 and other providers are out of scope for this page. Microsoft 365 has its own channel behavior and authentication rules, and other providers vary widely in what they permit. Those decisions need separate planning, and the points below show where the reader should look next.
- Microsoft 365: moving existing Microsoft IMAP channels to OAuth, and re-adding Graph channels, are covered on the sibling page Moving Zammad email channels to OAuth (XOAUTH).
- Other OAuth providers: confirm whether Zammad provides a built-in channel for the provider or whether a generic IMAP route with OAuth applies, and what the provider requires for app registration.
- Existing channels: a working Google or Microsoft IMAP channel that predates OAuth needs a migration plan, which the sibling page addresses before provider switch-off dates.
- Hosting model: the provider's rules apply the same way to self-hosted and hosted Zammad, but the team operating the server carries the renewal, monitoring and recovery work.
- Testing: before any change, send test messages in both directions and confirm that replies thread into the same ticket.
Choose the provider path before building the Google channel, so the OAuth app and mailbox plan match the rest of your email estate.
How Google mailbox fields map to Zammad groups and tickets
This table compares each Google-side item with its Zammad counterpart and the decision the team must make before connecting. Read it top to bottom as a setup checklist, since the group and sender choices affect every ticket the channel creates. Exact field names and menu labels can differ between Zammad versions, so confirm them in the version you run.
| Google side item | Zammad side item | What the team must decide |
|---|---|---|
| Google account or mailbox address | Email channel account created through the Google option | Which mailbox is the support inbox, and whether it is a dedicated shared address or a person's mailbox |
| Google Cloud OAuth client and consent screen | Redirect URL configured in Zammad and authorized in Google Cloud | Who owns the Google Cloud project, and whether the consent screen is internal or external to your organization |
| Google Workspace group or shared address | Group destination on the channel | Which Zammad group receives new tickets and whether that group matches the support team's routing |
| Sender address shown to customers | Outbound sender on the same channel account | Whether replies come from the mailbox address or an alias, and whether the alias is verified in Google |
| Sender header of the incoming message | Customer and organization records created on first contact | How to handle duplicate customers, shared domains and personal webmail senders |
| Labels or folders Google applies | Mail is fetched from the inbox, not from Google labels | Whether existing labels or filters in Google will move, hide or duplicate messages before Zammad reads them |
| Mailbox forwarding or delegation rules | Ticket creation depends on messages reaching the connected mailbox | Which forwarding and delegation rules stay in place during and after cutover |
Securing the OAuth grant and the mailbox it reads
A Gmail channel gives Zammad read and send access to a live mailbox, so the OAuth grant, the Google Cloud project and the channel settings carry the same weight as the helpdesk itself. The cards below cover the decisions and checks that keep that access narrow, owned and visible to the people who must answer for it.
Limit consent to the scopes Zammad needs
The OAuth consent asks for specific Gmail permissions, and each one widens what Zammad can do with the mailbox. Confirm with the Google admin team which scopes the channel requests, and check that they cover only reading and sending the support mailbox your team actually uses. Ask for a written list before the first authorization, because a broader scope set is hard to notice once users have approved it. Request only the scopes the channel needs.
Zammad requirementsRestrict the Google Cloud project to named administrators
The Google Cloud project holds the OAuth client that Zammad uses, so anyone with editor or owner rights on it can change redirect URLs, add test users or rotate credentials. Name a small set of administrators, record them in your access register and remove accounts that leave the team. Ask the Google admin team who holds project roles today and whether project-level audit logs are enabled. Project ownership should be deliberate, not inherited.
Keep the client secret out of shared tickets
The client ID and client secret are credentials, and they often leak through screenshots, setup tickets, chat threads and wiki pages written during rollout. Store the secret in your secrets manager or the Zammad configuration with restricted access, and rotate it if it has appeared in a shared location. Ask your team to confirm that setup notes contain no secret values before they are linked from the helpdesk wiki. Treat the secret like a production database password.
Review and revoke unused Google grants
Each Google account that authorizes the app creates a grant that continues until someone removes it. Former staff, test accounts and retired mailboxes can keep access long after the channel changed hands. Review the list of accounts that have authorized the app on a schedule, revoke grants that no longer match a live mailbox and confirm the process with the Google admin team. Unused grants are access nobody is watching.
Choose internal or external app status
Whether the OAuth app is internal to your Workspace domain or external changes who can authorize it and how Google reviews it. An internal app limits authorization to accounts in your own domain, which suits a support mailbox that lives inside the organization. Ask the Google admin team to confirm the user type before consent, because changing it later can affect existing authorizations. The user type defines who can grant access.
Log every channel change in Zammad
Changes to the Gmail channel, such as the destination group, the mailbox it reads, or the sender settings, alter where customer email lands and who sees it. Confirm that administrator actions in Zammad are logged and retained under your own policy, and that someone reviews changes to channels on a set cadence. Ask the Google admin team to share sign-in and token events from the Workspace admin console for the same mailbox. Pair Zammad change records with Google-side events.
Zammad third-party docsWhy the Google channel fails after setup
This table pairs the failures most often seen after a Gmail or Google Workspace channel goes live with their likely causes and the first check to make. Start with the Zammad log for the channel and the Google account activity for the mailbox, since those two sources show whether the problem sits in Google, in Zammad or in routing.
| Symptom | Likely cause | First check and fix |
|---|---|---|
| Google returns a redirect URI mismatch error | The redirect URL registered in the Google Cloud OAuth client does not exactly match the callback URL Zammad sends, often because of a different host name, http instead of https, or a trailing slash. | Compare the authorized redirect URI in the Google Cloud console with the callback URL shown in Zammad's Google channel settings, then correct the Google client and retry the connection. |
| Authorization succeeds but no tickets appear | The channel is not active, the fetch job has not run, or the mailbox has no new messages after the connection date. | Check that the channel is enabled and review the Zammad log for fetch entries. Send a test message to the mailbox and confirm it arrives in the inbox that Zammad reads. |
| Mail lands in the wrong group | A group filter or routing rule matches the sender or recipient before the intended destination, or the channel's default group is not the one the team expects. | Open the Zammad log entry for the ticket, confirm which filter or group assignment applied, then adjust the filter order or the destination group on the channel. |
| Replies fail to send | The OAuth token lacks the send scope, the sending account differs from the connected mailbox, or the outbound settings for the group do not point at the connected account. | Check the Zammad log for SMTP or API errors on outbound mail. Confirm the granted scopes in the Google account and that the group uses the same address as the connected channel. |
| Consent screen shows an unverified app warning | The Google Cloud app is set to External with a test status or has not completed Google's verification, so users see a warning and may be limited to listed test users. | Review the OAuth consent screen status and test user list in Google Cloud. Plan verification or an internal app type with the Google Workspace administrator before wider rollout. |
| Connection stops working after an administrator change | The administrator who authorized the connection was removed, suspended, or changed the mailbox's access policy, which revokes the token. | Review the Google account activity for the mailbox and the Admin console for third-party app access. Reauthorize the channel with an approved account and record the owner in your runbook. |
| Access blocked by Workspace admin policy | The Google Workspace admin has restricted third-party app access or specific OAuth scopes for the organization. | Check the admin console app access controls and the Zammad log for authorization denials. Ask the administrator to allow the approved Zammad client before retesting. |
Questions teams ask before connecting Gmail to Zammad
How much more effort is the Google channel than a generic IMAP account?
The Google channel takes more setup work up front but less ongoing password handling. A generic IMAP account needs a mailbox username, an application password or service credential, and server settings for both receiving and sending. The Google channel instead needs a Google Cloud project, an OAuth client with a consent screen, an authorized redirect URL that matches your Zammad address exactly, and an administrator who can approve the access. Once connected, the channel authenticates with OAuth tokens rather than a stored password, which removes one class of credential rotation. Expect the extra work to sit in Google Cloud configuration and in testing, not in Zammad itself.
What must our team provide before the work starts?
Three things should be ready before anyone configures the channel. First, a Google Workspace administrator who can create or approve an OAuth client and confirm which users may grant access. Second, a Zammad administrator who can add the channel, choose the destination group and review the result. Third, a dedicated test mailbox that receives realistic messages, including replies, attachments and automated notices, so you can check ticket creation before pointing production mail at Zammad. Also confirm who owns the Google Cloud project, since the consent screen and client credentials should belong to your organization, not to an individual's account.
What drives how long setup takes?
The main drivers are how many mailboxes you connect, whether the Google Cloud project already exists, and how quickly your Google administrators approve the consent screen and scopes. Mailboxes that route to several groups need filter design and testing, which adds time. Time also grows when the Zammad host is not yet reachable over HTTPS at the address Google will redirect to, because the redirect URL must match exactly. Ask any provider to break the timeline into project setup, Google configuration, channel configuration, and a test round with sample messages, and to name which of those steps depend on your staff.
Can our own team connect Gmail to Zammad without outside help?
Yes, a team with Google Workspace administration skills and Zammad administration experience can do it without an outside partner. The work is documented, and the steps are sequential: configure the Google Cloud project and consent screen, register the redirect URL, add the channel in Zammad, choose the group destination, then test. The risks lie in details that are easy to miss, such as an unverified consent screen, a redirect URL that differs by a trailing slash or protocol, or a test that only confirms inbound mail and never checks outbound replies. If your team lacks one of the two admin skill sets, or lacks time for a structured test, an outside partner is a practical option.
What ongoing work recurs after the channel goes live?
Recurring work falls into three groups. Token and access issues appear when a user revokes access, changes password, or an administrator changes a Google policy, so someone must know how to reconnect a channel and who receives the alert. Scope reviews matter because the permissions requested by the OAuth app should be checked periodically against what Zammad actually needs. Version upgrades of Zammad, including security releases, can change how channels behave, so each upgrade needs a test of inbound and outbound mail. Assign an owner for each of these, and record the reconnection steps in your runbook.
What should a partner quote include for this channel?
A written quote should list the scope in concrete terms: how many Google mailboxes or groups are in scope, which Google Cloud and Workspace settings the partner will configure and which your administrators must perform, the Zammad destination groups and filters, the test plan, and the handover documentation. It should state what is one-time work and what is ongoing support, and whether Google-side changes or future Zammad upgrades are included. Ask which items depend on your staff, such as approvals or test mailbox access, and how delays on those items affect the schedule. DeployOpen does not publish a price list, and a quote follows from the written scope.
Does the Google channel handle group and shared mailbox routing the same way as IMAP?
The destination group is set on the channel itself, so all mail arriving through that Google connection lands in the group you select. Routing finer than that, such as sending messages from one sender address to a specific team or raising priority for certain subjects, is handled by Zammad email filters or triggers, not by the channel type. Confirm with a test set which messages should be routed differently, then check that filters apply the same way whether the source is the Google channel or a generic IMAP account. Verify this in your own version of Zammad before relying on it.
How DeployOpen works on this
DeployOpen plans and implements self-hosted Zammad inside your own infrastructure, so the Google channel is set up in the same environment where your helpdesk runs. We agree the scope in writing before work starts, then build, test, document and support the channel against the Google Workspace tenant you actually use.
How we scope
- We confirm which Gmail or Google Workspace mailboxes, groups and shared addresses will feed Zammad and who owns each one.
- We record the Google Cloud project, OAuth consent screen audience and redirect URL that your Zammad instance will use.
- We agree the destination group, sender address and reply handling for each channel in a written scope before work starts.
How we build
- We create the Google Cloud OAuth app and configure the consent screen and scopes for the mailboxes in scope.
- We connect each mailbox to Zammad, set the group destination and test inbound and outbound mail with real threads.
- We check the redirect URL, instance hostname and reverse proxy settings so the OAuth callback works in your environment.
How we hand over
- We document the Google Cloud project, consent screen settings, redirect URL and each mailbox mapping in a handover pack.
- We walk your administrators through reconnecting a mailbox, rotating credentials and reviewing which accounts are authorized.
- We record the test cases used so your team can repeat them after upgrades or Google-side changes.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after the initial channel is live.
- A retainer can cover checks after Zammad upgrades and reviews when Google changes OAuth or mail access requirements.
- Support scope and response expectations are defined in the written agreement, so your team knows what is covered.

