How SuiteCRM connects to Gmail and Google Workspace mail
A sales or service team that wants inbound and outbound Gmail in SuiteCRM without sharing passwords should plan for OAuth through an External OAuth Provider as the supported organizational method. App passwords are the fallback for cases where OAuth is not available. SuiteCRM's admin guide documents the External OAuth Provider as the mechanism, and SuiteCRM uses the PHP League OAuth 2.0 Client with its GenericProvider for every External OAuth Provider, so the connection is built on a standard OAuth flow rather than on a stored mailbox password. The External OAuth Provider overview is the next read for the admin setup.
For a personal mailbox, SuiteCRM's user guide recommends setting the email account's Auth Type to OAuth when the organization connects SuiteCRM to Gmail or Microsoft 365. In that case no app password is needed. Gmail app passwords require 2-Step Verification on the Google account and are shown only once when generated, so a user who loses the value must generate a new one. Ask your Google Workspace administrator whether 2-Step Verification is enforced for your users before you promise an app password route to the business. The SuiteCRM app passwords guide describes the user-side steps.
Shared and personal mailboxes need different decisions. A personal mailbox connected by the individual user can use OAuth without a separate secret, but it ties sync to that person's account. A shared group mailbox, such as a support or sales inbox, needs a single, admin-controlled connection that survives staff changes, so confirm with your Google Workspace administrator how the OAuth client is registered and who owns it. Before go-live, test inbound sync and outbound sending from a non-production SuiteCRM instance with a test mailbox, and record which account owns each connection.
What you need before connecting a Google mailbox
Connecting a Gmail or Google Workspace mailbox to SuiteCRM depends on three things working together: a supported SuiteCRM 8 host, a Google account set up for the sign-in method you choose, and network paths that let SuiteCRM reach Google and your mail servers. Check each of these before the build starts so that problems do not surface halfway through the mailbox setup.
SuiteCRM 8 version and runtime
Confirm the SuiteCRM 8 release you will run and check it against the compatibility matrix before installing. For SuiteCRM 8.10, the matrix lists PHP 8.2, 8.3 and 8.4, Apache 2.4, and MariaDB 10.6, 10.11, 11.4 and 11.8 or MySQL 8.0 and 8.4 on Linux, Unix or macOS. Pin the versions you test against, because the matrix is the reference for which combinations are supported, and a mismatch here will cause mailbox problems that look like email faults.
Compatibility matrixGoogle account with 2-Step Verification
Gmail app passwords only work when 2-Step Verification is enabled on the Google account that owns the mailbox. Enable it for the mailbox owner before you plan an app password route, and make sure the account is not blocked by an admin policy. Note that each app password is shown only once when generated, so the person setting it up needs a secure place to store it immediately.
App passwords guideAdmin access to the Google Cloud project
An OAuth connection through an External OAuth Provider needs a Google Cloud project with an OAuth client that SuiteCRM can use. Confirm who in your organization holds admin rights to that project, who approves the consent screen, and who can grant access for Workspace users. Without this access, the build stalls at the point where the client ID and secret are needed.
OAuth provider overviewGoogle consent and scope settings
Google changes consent screen rules, verification requirements and scope policies over time, so the settings that worked for an earlier install may not apply now. Before the build, confirm with Google the current consent and scope requirements for the mail access SuiteCRM requests, including any restrictions for internal or external apps in your Workspace. Record the answers so the admin team can reproduce the setup later.
Outbound HTTPS and mail server reachability
The SuiteCRM host must make outbound HTTPS calls to Google's OAuth and mail endpoints, and it must reach your inbound and outbound mail servers on the ports you configure. Check egress rules, proxies and firewall policies with the network team, and test from the same host and network segment that will run SuiteCRM. A host that can browse the web may still be blocked from the mail ports SuiteCRM needs.
Staging instance and a test mailbox
Test the mailbox connection on a staging SuiteCRM instance that uses a dedicated test mailbox before you touch a production user's account. The SuiteCRM migration guidance also recommends staging tests and backups, so align your mailbox testing with the same staging environment. Agree who owns the test mailbox, how it is removed afterward, and what evidence the team keeps of each successful check.
How to set up OAuth for Gmail step by step
This sequence connects a Gmail or Google Workspace mailbox to SuiteCRM 8 through an External OAuth Provider, then proves inbound import and outbound sending work. A separate app password path covers accounts where OAuth is not available. Each step closes with a check you can record.
Create the External OAuth Provider in SuiteCRM
A SuiteCRM administrator opens the administration panel, goes to the email settings for External OAuth Providers, and adds a Google provider entry. SuiteCRM uses the PHP League OAuth 2.0 Client with its GenericProvider for every External OAuth Provider, so the entry will need the client ID and secret that Google issues in the next step. Leave the record open, because it displays the redirect URI you need in step 3. Check the option names against the admin guide for your version. The check: the provider appears in the list and can be edited.
Register the OAuth client with Google
A Google Workspace administrator, or the owner of the Google account, creates an OAuth client in the Google Cloud project the organization uses for SuiteCRM. Configure the OAuth consent screen first, then choose the web application type, which matches a server-side redirect flow. Keep the client secret in your secrets store and out of tickets and chat. If Google Workspace restricts third-party apps, an administrator must approve the client before any mailbox can authorize. The check: Google shows a client ID and secret that you can paste into the SuiteCRM provider record.
Set the redirect URI and Gmail scopes
Copy the redirect URI shown on the SuiteCRM provider record into the authorized redirect URIs of the Google client, character for character, including the scheme and path. Then add the Gmail scopes that let SuiteCRM read mail for import and send mail. Use the scope strings listed in the SuiteCRM admin guide for your version, and confirm them there rather than relying on memory. Save the Google client, then enter the client ID, secret and scope values in the SuiteCRM provider record. The check: a mismatched redirect URI fails at the Google sign-in step, so the tests in later steps will expose it.
Set the mailbox Auth Type to OAuth
Open the inbound or outbound email account in SuiteCRM and change Auth Type from password to OAuth, selecting the provider from step 1. For a personal mailbox, the mailbox owner signs in with their own Google account. For a shared mailbox, use a dedicated account so the granted permissions match the people who use it, and confirm in the admin guide that shared mailboxes are supported for your Google setup. Save the record, then complete the Google sign-in prompt as the mailbox owner. The check: SuiteCRM shows the mailbox as authorized, which confirms the token exchange completed.
Test inbound import with a known message
Send a test message to the connected mailbox from an outside address you control. Then trigger the inbound import, either from the email client in SuiteCRM or through its scheduled job, and wait for it to finish. Confirm the message appears in the mailbox list with the correct sender, subject and body. If the sender matches an existing contact or lead, check that the message is linked to that record. The check: the import log shows no authentication errors. If the import fails, review the token status before you change any scope values.
Test outbound sending and the Sent folder
From a test contact or account record, send an email through SuiteCRM to an address you control, using the connected mailbox as the sender. Confirm the recipient gets the message with the expected From address and display name. Then check the Sent folder of the Gmail mailbox and the sent history in SuiteCRM, if your configuration saves copies there. Record the test date, mailbox, provider and result, so a later change to scopes or credentials can be compared against a known good state. The check: the message arrives and a copy appears in the Sent folder.
Generate a Gmail app password if needed
Use this path only when OAuth cannot be used for the account. The Google account must have 2-Step Verification turned on, because Gmail app passwords depend on it. Sign in to the Google account, generate an app password for the mail connection, and copy it immediately, since Google shows it only once. Store it in your team's secrets store and keep it out of shared documents. For the generation steps, the SuiteCRM user guide on app passwords is the next read. The check: the value is saved in your secrets store before you close the Google page.
Enter the app password and retest
In the mailbox settings, set Auth Type to the password option instead of OAuth, then enter the Gmail address and the app password and save. Repeat the inbound test from the fifth step and the outbound test from the sixth step using the same test records. The check: both tests pass with no authentication errors. Record that this mailbox uses an app password, because a revoked or changed password will stop the mailbox until a new one is entered, and the rotation should be scheduled with the account owner.
How the OAuth grant flows between SuiteCRM and Google
The flow starts in SuiteCRM, either when an administrator authorizes a personal mailbox or when a scheduler job needs to fetch or send mail. SuiteCRM uses the PHP League OAuth 2.0 Client with its GenericProvider to send the request to Google's authorization and token endpoints, then calls the Gmail mailbox with an access token. The trust boundary sits between the SuiteCRM host and Google, so the refresh token stored on the SuiteCRM host is the credential to protect and review.
Token and mail requests cross from the SuiteCRM host to Google, with tokens held on the host.
Mailbox and account settings mapped between SuiteCRM and Google
This table pairs each SuiteCRM email account setting with the Google Workspace object or credential it depends on, so you can check both sides before you configure anything. Read each row as a question to answer in your own tenant, and treat the Google column as the place where most mismatches start. The main takeaway is that the Auth Type choice determines which Google values you need, and shared mailboxes need a different ownership model from personal ones.
| Setting | SuiteCRM side | Google side to confirm |
|---|---|---|
| Auth Type | Set to OAuth for a personal account when the organisation connects Gmail, so no app password is needed; app passwords are the fallback | An OAuth client configured for the SuiteCRM External OAuth Provider, or a 2-Step Verification account if you use app passwords |
| Mailbox name | The email address SuiteCRM reads from or sends as, entered exactly as it appears in Google | The Workspace user address or the Google group address that receives the mail |
| Personal or group ownership | A personal mailbox assigned to one user, or a group mailbox shared with a team | Whether the address is a user mailbox or a group, and who in your domain has permission to access it |
| Inbound server fields | Host, port and encryption for IMAP, entered as your mail provider documents them | Gmail IMAP access enabled for the account, and the server settings Google publishes for IMAP |
| Outbound server fields | Host, port and encryption for SMTP, with the same authentication type as inbound | SMTP access for the sending address and the sender identity your Workspace policy allows |
| Credential | Password field used only when Auth Type is not OAuth, and shown once when an app password is generated | The app password generated under the account, which requires 2-Step Verification to be on |
| Scopes and consent | Requested permissions shown by the External OAuth Provider during setup | Scopes approved for the OAuth client by a Workspace admin, including mail read and send access |
| Admin approval | Who can create or edit the External OAuth Provider and assign mailboxes to users | Whether your Workspace admin must approve the third-party app before users can grant access |
Securing Google mail credentials in SuiteCRM
Mailbox connections give SuiteCRM standing access to staff email, so the credentials behind them need the same care as any other production secret. The cards below cover where secrets live, how far each grant reaches, who may change the connection settings, and how access is removed when people leave.
Keep client secrets out of shared files
An External OAuth Provider stores a client ID and client secret from your Google Cloud project. Keep the secret in the SuiteCRM admin panel and your secrets store, not in a shared spreadsheet, a ticket, a chat thread or a copied configuration file. Before any export, backup or support ticket leaves your environment, check that it does not contain the secret or the tokens issued from it. Rotate the secret in Google Cloud if you suspect it has been exposed.
OAuth provider docsRequest only the scopes the mailbox needs
Each Gmail permission granted to the OAuth client defines what SuiteCRM can read and send. Ask for the narrowest Gmail scopes that cover the features you enable, such as sending or importing mail, and avoid broad full-account access where a narrower option exists. Review the consent screen and the scopes listed in Google Cloud before go-live, because a scope added later for a new feature changes the risk. Record the scope list with the design so reviewers can compare it with what is granted.
Limit who can create External OAuth Providers
Creating or editing an External OAuth Provider in the admin panel decides which Google client ID SuiteCRM trusts and which mailboxes users can attach to it. Restrict the admin role to a small named group, and confirm that ordinary users cannot change provider settings or the Auth Type of other accounts. Review the list of providers each quarter and remove any that no longer map to an approved Google Cloud project.
Revoke app passwords when staff leave
Where OAuth is not available, a user may connect a Gmail mailbox with an app password, which requires 2-Step Verification on the Google account and is shown only once. An app password works independently of the user's normal sign-in, so disabling the SuiteCRM account does not revoke it. Make revocation part of the leaver checklist: the mailbox owner or an administrator removes the app password from the Google account security settings, and the stored password is cleared from the SuiteCRM email account.
App passwords guideReview mailbox access during offboarding
Offboarding should cover every mailbox a person connected, including personal accounts and any group mailboxes they were allowed to use. For each account, check whether the connection uses OAuth or an app password, remove or reassign it, and confirm that the mailbox no longer imports or sends through SuiteCRM. Keep a dated record of the review so the compliance and security teams can show that access ended when the person left.
Why Gmail sync fails after connecting
This table lists the failures most often seen after a Gmail or Google Workspace mailbox is connected to SuiteCRM, with the likely cause and the first check for each. Work through the rows in order, because the first two checks usually settle the most common cases.
| Symptom | Likely cause | First check |
|---|---|---|
| Consent not granted or token expired | The user closed the Google consent screen without approving access, or the stored OAuth token was revoked or has expired. | Open the mailbox record in SuiteCRM and confirm the connection status, then reconnect the account and approve every requested scope. |
| Redirect URI mismatch | The redirect URI in the Google Cloud OAuth client does not match the address SuiteCRM sends, often because the hostname or protocol differs between environments. | Compare the redirect URI in the External OAuth Provider settings with the authorized redirect URI in the Google Cloud console, character for character. |
| App password not saved | Gmail app passwords are shown only once when generated, so the value was copied incorrectly or never stored. | Generate a new app password, paste it into the mailbox settings immediately and save before leaving the page. |
| 2-Step Verification not enabled | App passwords require 2-Step Verification on the Google account, so the password option is unavailable or fails without it. | Check the security settings of the Google account that owns the mailbox and confirm 2-Step Verification is on before generating a password. |
| Personal mailbox still on basic authentication | The personal email account's Auth Type is still set to a password method, so SuiteCRM does not use the OAuth connection the organisation configured. | Open the personal email account in SuiteCRM and set Auth Type to OAuth, then test the connection. |
| Shared mailbox connected under a personal user | A group or shared mailbox was attached to one person's account, so sync stops when that person leaves, changes role or revokes access. | Identify the owning user on the mailbox record and confirm whether the mailbox should be a group mailbox connected under a shared configuration instead. |
Questions buyers ask before connecting Gmail to SuiteCRM
Is an app password enough to connect Gmail to SuiteCRM?
For a single personal mailbox, an app password can work, but it is not the option SuiteCRM recommends when the organisation is connecting Gmail. SuiteCRM's guidance is to set a personal email account's Auth Type to OAuth when the organisation connects SuiteCRM to Gmail or Microsoft 365, and in that case no app password is needed. Gmail app passwords require 2-Step Verification on the Google account and are shown only once when generated, so the person generating one must store it at that moment. Before choosing, confirm with your Google Workspace administrator whether OAuth through an External OAuth Provider is available in your tenant and whether app passwords are permitted by your Google policies.
How does OAuth differ for a shared inbox compared with a personal mailbox?
A personal mailbox is usually connected by the user who owns it, with that user's own consent. A shared inbox, such as a support or sales address, is a group mailbox that several people read and send from, so it needs a different ownership model. SuiteCRM's External OAuth Provider overview describes how providers are configured in the admin panel, and the OAuth consent must be granted by an account that can authorize access to the shared mailbox. Ask your Google administrator how group mailboxes and delegated access are handled in your organisation before you design the setup, because a token tied to one person's account stops working when that person leaves. Confirm the exact steps against the current SuiteCRM admin guide for your version.
What drives the effort of connecting Gmail to SuiteCRM?
The effort depends mostly on three things: how many mailboxes are connected, how much control your team has over the Google Workspace tenant, and how much testing the setup needs. Each mailbox needs its own authorization or app password, and each one must be checked for inbound import and outbound sending. Google admin access determines whether the OAuth client, consent screen and access policies can be set up without waiting on another team. Testing includes sending and receiving on a non-production mailbox, confirming that imported messages attach to the right records, and checking what happens when a token is revoked or a password is changed. Ask any provider to break its quote down by these three drivers.
Can our team connect Gmail to SuiteCRM without a partner?
Yes, a team with administrator access to SuiteCRM and to the Google Workspace tenant can usually complete the setup alone, using the documented steps for External OAuth Providers or app passwords. The work is manageable when there are only a few mailboxes and the team can test in a staging copy first. It gets harder when the team must create a Google Cloud project, manage consent settings, handle shared mailboxes, and keep the setup working through password resets and staff changes. Assess the skills available in your team against those tasks before deciding. Confirm the current requirements with Google and the SuiteCRM documentation for your release.
What does the work need from our team?
The work needs a named owner on the SuiteCRM side, an administrator on the Google Workspace side, and a test mailbox that is not used for live customer email. Your team should provide a list of mailboxes to connect, their intended purpose (personal, shared or sales-only), the users who will send from them, and the retention expectations for imported emails. You will also need a staging SuiteCRM instance so changes can be tested before production. Agree in advance who approves the consent screen, who receives alerts when a connection fails, and how credentials are rotated. Confirm the details of each step against the current SuiteCRM and Google documentation.
When is it worth scoping an outside partner for Gmail email?
An outside partner is worth scoping when the connection touches several mailboxes, shared inboxes, a tight deadline, or compliance evidence you must produce. DeployOpen plans and implements SuiteCRM work in the client's own infrastructure and runs fixed-scope engagements, where scope, deliverables and timelines are agreed in writing before work starts. A written scope lets you compare providers on the same list of mailboxes, environments, testing and handover items. DeployOpen does not publish a price list, so ask for a quote that follows from that scope. Ongoing support and upgrades are available as retainers if the connection needs regular attention.
What breaks after Gmail is connected, and how do we check for it?
Common faults include expired or revoked OAuth tokens, changed Google account passwords that invalidate app passwords, consent screens that were never published, and scheduled import jobs that stop running. Check that the scheduler is running, that a test email imports on schedule, and that outbound sending works from each connected mailbox. Review the connection after password changes, staff departures and Google policy changes. Keep a record of which mailbox uses which method so that a fault can be traced quickly. Confirm the exact checks with the SuiteCRM documentation for your version.
What DeployOpen scopes for a Gmail connection
A Gmail connection scope starts with a mailbox inventory: every mailbox SuiteCRM must read or send from, whether it is a personal inbox, a shared support or sales address, or a Google group, along with who owns each one and what SuiteCRM should do with its mail. The inventory decides the authentication method. For each mailbox the written scope records whether it uses OAuth through an External OAuth Provider or an app password, and why. Personal mailboxes are usually set to OAuth on the user's email account, while shared mailboxes need a decision on how the organisation's Google account and its 2-Step Verification settings will be managed. Ask the partner to show this table before any configuration starts, and confirm that every mailbox has a named owner who can approve the choice.
The configuration part of the scope covers the settings that SuiteCRM and the Google side must agree on: the OAuth provider entry in the admin panel, the client details issued for it, the redirect address, the inbound and outbound mail settings per mailbox, and the scheduler jobs that import mail. It should also state who creates the Google Cloud and Workspace items, who holds the client secret, and where the secret is stored on the server. The scope should name which parts are changed in the staging instance first and which are moved to production, so that no credential is pasted into a shared document or a ticket.
The test plan and handover notes close the scope. The test plan should list the checks run on each mailbox, including a successful sign-in through the provider, a test inbound message linked to a record, an outbound send from the correct address, and a token refresh after the first session expires. Handover notes should record each mailbox's authentication method, the owner of the Google credentials, the steps to rotate an app password or secret, and the known limits of the setup. Ask for these items in writing, and confirm with the partner which of them are delivered as documents and which are walked through with your administrators.
How DeployOpen scopes and delivers SuiteCRM email integrations
DeployOpen plans, implements, tests and documents self-hosted open-source platforms inside your own infrastructure. For SuiteCRM and Gmail or Google Workspace email, that means agreeing which mailboxes connect, which sign-in method fits each one, and how the result is tested and handed over before any work starts.
How we scope
- Inventory which Gmail and Google Workspace mailboxes are shared, group or personal, and who needs inbound and outbound access.
- Confirm the Google Workspace admin settings, OAuth client ownership and the External OAuth Provider configuration your organization can approve.
- Agree in writing which mailboxes use OAuth and which, if any, use app passwords, with the reasons recorded for each choice.
How we build
- Configure the External OAuth Provider and mailbox Auth Type settings in a staging SuiteCRM 8 instance before touching production.
- Set up inbound import and outbound sending for each agreed mailbox, and check the scheduler jobs that move email into records.
- Test token refresh, sending from user and group mailboxes, and how failed authorization appears to administrators.
How we hand over
- Deliver a written configuration record covering provider settings, mailbox mappings, credential ownership and the rotation steps for each account.
- Provide a runbook for revoking access, re-authorizing a mailbox and handling app password replacement when it is needed.
- Walk your administrators through the test results and the known limits of the integration before the scope closes.
How we support
- Engagements are fixed-scope, so changes to mailboxes or sign-in methods are agreed in writing before work begins.
- Ongoing support, upgrades and continuous testing are available as a retainer that covers SuiteCRM and mail connection changes.
- Ask any partner to confirm how they handle Google API policy changes, token expiry and admin access to shared mailbox credentials.

