Connect Your Own Google Account
Kamo connects to Gmail with your own Google app, not one Kamo provides. You create the app once in your own Google Cloud account, enter its client ID and secret in Kamo, and your members' Connect With Google button starts working. Until an app is set up and switched on, the button stays hidden. Mailboxes connected with IMAP and an app password need no app and always work.
Before You Start
- The Manage Email Settings right in Kamo.
- A Google account that can create a Google Cloud project. If your organization uses Google Workspace, use an administrator account in that Workspace.
Choose The Kind Of App
Your situation | Pick | What it means |
|---|---|---|
Your members use Google Workspace addresses at your domain | Internal (recommended) | Only accounts in your Workspace can sign in. Nothing else to set up. |
Your members use personal Gmail addresses, or you have no Workspace | External, left in Testing | Add each person who will connect as a test user (up to 100). Google ends a Testing app's sign-ins after 7 days, so those members sign in again each week. |
Steps In Google Cloud
- Go to console.cloud.google.com and create a project, for example Kamo Mail.
- Open APIs & Services › Library and enable Gmail API. If members will also sync calendars, contacts or Drive attachments, enable Google Calendar API, People API and Google Drive API too.
- Open Google Auth Platform › Branding. Enter an app name your members will recognize and a support email, then save.
- Open Google Auth Platform › Audience and pick Internal or External (see the table above). For External, add your members' Google addresses under Test users.
- Open Google Auth Platform › Data Access › Add or remove scopes and add the scopes Kamo shows under Scopes on the Google App panel. For connected mailboxes these are:
https://mail.google.com/https://www.googleapis.com/auth/userinfo.email
Add the Calendars And Contacts and Drive Attachments scopes from the panel only if you use those. The Organization Mail Service scopes are needed only when Google Workspace is your organization's mail provider.
- Open Google Auth Platform › Clients › Create client. Choose Web application. Under Authorized redirect URIs, add every address Kamo shows under Redirect URIs on the Google App panel, exactly as shown. Leave Authorized JavaScript origins empty.
- Click Create, then copy the Client ID and Client secret.
Steps In Kamo
- Go to Settings › Email › Mail Service › Mail Provider › Google And Microsoft Apps.
- On the Google App panel, paste the Client ID and Client Secret and click Save App.
- Make sure the switch at the top of the panel is On.
- Click Test Connection. Kamo asks Google whether it knows the app, accepts the secret and has every redirect URI. Nobody is signed in. Fix anything marked in red and test again.
Your members can now go to My Settings › My Mailbox › Connected Accounts, click Connect A Mailbox and choose Gmail.
Push Notifications (Optional)
Without push, Kamo checks each Gmail mailbox every few minutes. With a Cloud Pub/Sub topic, new mail shows up within seconds.
- In Google Cloud, enable the Cloud Pub/Sub API for the same project as your app.
- Create a topic, for example
gmail-push. - On the topic's Permissions, add
gmail-api-push@system.gserviceaccount.comwith the Pub/Sub Publisher role. - Create a push subscription on the topic. For the endpoint, copy the Push Subscription Address from the Push Notifications (Optional) box on the Google App panel.
- Paste the topic's full name, like
projects/my-project/topics/gmail-push, into Gmail Pub/Sub Topic and click Save App.
Mailboxes switch to push on their next check. Leave the field blank to go back to checking every few minutes.
Turning It Off
Switch the panel Off to stop new connections through your app while keeping its details on file. If the platform provides a Google app, your members use that one instead; otherwise Connect With Google is hidden again. Remove App deletes the details; mailboxes connected with it will need to sign in again.
If Something Goes Wrong
- redirect_uri_mismatch — a redirect URI is missing in Google. Copy every address from the panel into the client's Authorized redirect URIs, exactly as shown.
- invalid_client or Google rejected the client secret — paste the client ID and secret again. If you lost the secret, add a new one to the client in Google and paste that.
- Access blocked: this app can only be used within its organization — the app is Internal and the person signed in with an account outside your Workspace.
- Error 403: access_denied when a member signs in — the app is External in Testing and that person is not a test user. Add them under Audience › Test users.
- A member has to sign in again every week — the app is in Testing. Use an Internal app if your members are in Google Workspace.