Plain-English email rules for Google Workspace

Sort Google Workspace mail with plain-English rules. Connect with an app password where your admin allows it, or one-click once your admin trusts MailRules.

Google Workspace settings
IMAP server
imap.gmail.com
Port
993
Security
SSL/TLS
App password
If your admin allows them

Two ways in

People in your organisation can connect with an app password, on any plan, where your admin allows app passwords. On the cloud plans they can also sign in with Google in one click, once your admin marks MailRules as trusted.

For admins: trust MailRules for one-click sign-in

You need the Service Settings administrator privilege in the Google Admin console.

  1. In the Google Admin console, go to Menu, then Security, then Access and data control, then API controls.
  2. Click Manage App Access.
  3. Under Configured apps, click Configure new app.
  4. Search for MailRules by name, or by the OAuth client ID that MailRules shows in its connect wizard, and click MailRules in the results.
  5. Leave the top organisational unit selected to cover everyone, or choose the units that should have access. Click Continue.
  6. Under Access to Google data, choose Trusted. Click Continue, check the summary and click Finish.

If Gmail’s End User Access settings allow only OAuth mail clients, add MailRules’ client ID to that list as well.

For admins: allow app passwords

App passwords connect over IMAP without the steps above. Google allows them only when IMAP is on and set to allow any mail client: in the Google Admin console, go to Apps, then Google Workspace, then Gmail, then End User Access, and under POP and IMAP access tick Enable IMAP access for all users and choose Allow any mail client.

Rules in words, sorted on the server

Your people write “invoices from suppliers go to Accounts” instead of building filters. MailRules moves mail on Google’s server, so Gmail on the web, the Gmail app and any other client see the same folders.

01

Create an app password

  1. Check with your admin that IMAP is on for your account and set to allow any mail client. Google allows app passwords only with that setting.
  2. Turn on 2-Step Verification for your Google Account.
  3. Open myaccount.google.com/apppasswords, name the app password MailRules and create it.
  4. Copy the password Google shows into MailRules.

Open myaccount.google.com

02

Connect it in MailRules

  1. In MailRules, open the connect wizard and add a mailbox with server imap.gmail.com, port 993 and SSL/TLS.
  2. Enter your full work address and paste the app password.
  3. MailRules tests the connection and lists the folders it found.
  4. Pick starter rules or write your own in plain English, check the preview, then go live.
  5. New installs start in dry-run: MailRules shows what it would do and changes nothing until you switch it live.

Good to know about Google Workspace

  • An app password works on every plan, self-hosted and cloud. One-click sign-in is on the cloud plans and needs your admin to trust MailRules first.
  • Since 14 March 2025 Google Workspace no longer accepts your normal password over IMAP. App passwords are the exception.
  • If the app password option is missing, your organisation has turned it off. Ask your admin, or use one-click sign-in once they trust MailRules.
  • Changing your Google Account password revokes every app password. Create a new one to reconnect.

Questions

I'm not the admin. What do I send them?

A link to this page. The admin steps are below, and both are done in the Google Admin console.

Does trusting MailRules give it access to everyone's mail?

No. Trusting lets people in your organisation sign in to MailRules with Google. MailRules reads only the mailboxes of people who connect their own.

Can we trust MailRules for one team only?

Yes. When you configure the app, pick the organisational units it applies to instead of the whole organisation.

Tell your inbox what to do. Then stop thinking about it.