Control mailbox access
Use this page to decide who can open which mailbox in MailDesk. MailDesk has two roles, and every mailbox has its own list of users. Odoo checks both on the server.
Who this is for: Odoo administrators who assign roles, and MailDesk administrators who manage mailboxes.
You need: to assign roles, an Odoo administrator who can edit users. To choose who opens a mailbox, the Mailbox Admin role.
Available in: Basic and Pro. The roles and mailbox rules are part of the MailDesk engine (Basic). The per-mailbox AI switch is Pro only.
The big picture in one minute
MailDesk security rests on three simple ideas. Once you see them, everything else on this page is just the detail.
- Two roles. A Mailbox User works the mailboxes they are given. A Mailbox Admin also sets mailboxes up.
- Every mailbox carries its own guest list. Each mailbox account has a Users with Access field. If you are not on that list, the mailbox simply does not exist for you.
- The rules run on the server. MailDesk uses Odoo record rules, which Odoo applies to every read and write of the protected records. They do not depend on what the interface shows.
For example, a colleague sees the shared support@ inbox they help run, an accountant sees the finance mailbox, and neither sees the other.
What this protects
MailDesk keeps every mailbox account, its folders, its messages, the cached message bodies, the read/unread/star state, and the drafts behind Odoo's access control. Each mailbox carries a list of the users allowed to see it, and Odoo's record rules enforce that list on the server for every read and write. For Gmail and Outlook, the connection uses the provider's own sign-in (OAuth), so no password is stored.
Why it matters in plain terms:
- A user only ever sees the mailboxes you have granted them — even a shared team mailbox
like
support@. - Credentials are minimised: Gmail and Outlook store no password at all, only revocable tokens. Classic IMAP credentials live inside your own Odoo database, behind Odoo's access controls and the per-mailbox record rules.
- Your synced email is stored in your own Odoo database. MailDesk does not send your email content to Metzler IT to operate.
Before you begin
- Assigning MailDesk roles happens in Settings ▸ Users & Companies ▸ Users and needs an Odoo administrator.
- Creating mailbox accounts and choosing who may access them is a Mailbox Admin task.
- To connect mailboxes, see Gmail, Microsoft 365 or IMAP/SMTP.
- The rules below were checked against Odoo 18. Other versions may differ.
The two MailDesk roles
MailDesk adds two access groups, Mailbox User and Mailbox Admin, under the MailDesk category on a user's Access Rights tab.
| Role | What it can do | What it cannot do |
|---|---|---|
| Mailbox User | Open the MailDesk app and work the mailboxes they are granted: read accounts and folders, read and triage messages, and create and edit message tags and drafts for those mailboxes. | Create, reconfigure or delete mailbox accounts; change who else has access. |
| Mailbox Admin | Everything a Mailbox User can do, plus management of every mailbox of the companies the user is allowed to use: create, edit and remove accounts and folders. Mailbox Admin includes Mailbox User. | Open mailboxes of companies outside their allowed companies. |
Configuration is deliberately admin-only
A Mailbox User can read a mailbox account and its folders, but cannot change the account configuration or create new ones. This keeps an everyday user from changing a live mailbox by accident.
How to assign a role
- Go to Settings ▸ Users & Companies ▸ Users and open the user.
- Click the Access Rights tab.
- Find the MailDesk category.
- Set the user to Mailbox User or Mailbox Admin.
- Save.
The role lets someone into MailDesk. It does not give them any mail. For that, add them to a mailbox's access list (next section).
Who can see a mailbox: the access list
A user needs both: the Mailbox User role to open MailDesk, and a place on a mailbox's access list to see that mailbox.
Every mailbox account has a Users with Access field — a simple list of Odoo users. MailDesk's record rules then restrict everything that belongs to that mailbox to the people on that list:
- the mailbox account itself,
- its folders,
- its messages,
- the cached message bodies,
- the read / unread / star / archive state,
- and that mailbox's drafts.
If a user is not on a mailbox's access list, that mailbox and its content are not visible to them. Odoo applies the rule on the server for reads and writes.
Mailbox Admins manage every mailbox account of their companies
Members of Mailbox Admin can see and edit every mailbox account of the companies they are allowed to use, in Configuration. To read a mailbox's mail in MailDesk, they must also be on its Users with Access list. Keep this group small. Most people only need the Mailbox User role and a place on the lists of their mailboxes.
Personal mailboxes vs shared mailboxes
The same access list handles both common patterns:
- Personal mailbox — one person's account (for example
[email protected]). Add just that one user to Users with Access. - Shared mailbox — a team address such as
support@orinfo@. Add every team member who works that queue, and they all share one inbox, one set of read/unread marks, and one set of folders — no forwarding, no duplicates, no "did anyone reply to this?".
The Mailbox Account form also has an Allow Personal Connection switch. When it is on, a Share Password field appears. Users who know the mailbox address and that password can add the mailbox to their own list with Connect Mailbox. Leave it off for Gmail and Outlook mailboxes that use sign-in. See Add or manage a mailbox.
How to grant or change mailbox access
- Go to MailDesk ▸ Configuration ▸ Mailboxes ▸ Mailbox Accounts and open (or create) the account.
- In Users with Access, add the users who should work this mailbox — one for a personal mailbox, several for a shared one.
- Optional: turn on Allow Personal Connection and set a Share Password, so team members can add the mailbox themselves.
- Save.
What you should see: every listed user now finds this mailbox in the MailDesk app the next time they open it; everyone else still cannot see it at all.
Per-mailbox AI control (Pro)
Available in: Pro.
With MailDesk Pro installed, each mailbox has an Enable AI features switch on its Mailbox Account form. It is one of four checks for AI:
- A global switch an administrator can use to turn all AI off at once.
- A per-feature switch (thread summary, reply draft, and so on).
- Enable AI features on the mailbox — off means no AI for that mailbox, full stop.
- A configured AI provider with a valid key (or a local server).
A separate per-mailbox attachment-analysis setting is off by default. It is not shown on the standard Mailbox Account form. For exact details, see What AI can access.
How to set a mailbox's AI control
- Go to MailDesk ▸ Configuration ▸ Mailboxes ▸ Mailbox Accounts and open the account.
- Switch Enable AI features on or off for that mailbox.
- Save.
Want to know exactly what the AI can and cannot see?
For which text is sent to the AI provider, see What AI can access and Data sent to the AI provider.
Authentication and stored credentials
MailDesk uses OAuth for Gmail and Microsoft 365, so you store as little as possible.
| Provider | Sign-in method | Password stored? |
|---|---|---|
| Gmail / Google Workspace | OAuth 2.0 + Gmail API | No — only revocable tokens |
| Outlook / Microsoft 365 | OAuth 2.0 + Microsoft Graph | No — only revocable tokens |
| Classic IMAP | Username + password (or app password) | Yes — stored in your own Odoo database, behind Odoo's access controls |
OAuth is the recommended path where it is available: no stored password, and you can withdraw access at any time from your Google or Microsoft account. Where you do use a classic IMAP password, protect it the way you protect any Odoo credential — serve Odoo over HTTPS so it is never sent in the clear, and secure the database and the server it runs on.
Revoking access
You can cut off MailDesk's access at any time. You do not need to change the provider password.
- Gmail: remove the mailbox account in MailDesk, then revoke access in your Google Account ▸ Security.
- Outlook / Microsoft 365: remove the mailbox account in MailDesk, then revoke the app in Microsoft Entra.
To remove MailDesk entirely, remove the mailbox accounts and uninstall the modules — that withdraws all access at once.
What MailDesk stores, and what it does not
MailDesk keeps only what it needs to show you your mail quickly:
- email metadata (sender, subject, date, folder),
- cached message bodies for fast reading (these expire automatically),
- OAuth tokens, or — for classic IMAP — the mailbox credentials, kept inside your own Odoo database behind Odoo's access controls,
- folder and synchronisation state.
MailDesk does not:
- store Gmail or Outlook passwords,
- send your email content to Metzler IT to operate,
- access mailboxes you have not connected and authorized.
Where your data lives
Everything above is stored in your own Odoo database, on the server you control. Your mail provider and (for Gmail and Microsoft 365) the sign-in service are involved in the connection. With Pro AI, the email text for an AI action is sent to the AI provider you configure. With a local, self-hosted AI server, it stays on your own network. See What AI can access.
Cached message bodies
To keep reading instant, MailDesk caches message bodies and attachment lists for a limited time and expires them automatically with a scheduled background job. The cache obeys the same per-mailbox access rules as the messages themselves, so a cached body is only ever visible to users on that mailbox's access list.
License verification
MailDesk checks its licence in Odoo. An administrator manages it under Settings ▸ License Locker. If a licence is missing, expired or invalid, the licence status shows it there. For activation steps, see Activate your license. For what each plan includes, see Plans and included features.
Best practices
A short checklist for a tidy, secure setup
- Grant MailDesk access only to the users who need it, and keep Mailbox Admin small.
- Add each person to only the mailboxes they actually work.
- Prefer OAuth (Gmail, Microsoft 365) over passwords where you can.
- Serve Odoo over HTTPS only.
- Turn on two-factor authentication for your Odoo users.
- Keep Odoo and the underlying server up to date, and take regular database backups.
If it does not work
| Symptom | Likely cause | What to do |
|---|---|---|
| A user cannot see a mailbox they should | They are not on that mailbox's Users with Access list | Add them to the list on the Mailbox Account |
| A user cannot create or edit a mailbox account | They are a Mailbox User, not a Mailbox Admin | Grant Mailbox Admin only if they genuinely need to manage accounts |
| A user sees a mailbox they should not | They have Mailbox Admin, which is not limited by the per-mailbox list | Move them to Mailbox User and add them only to the mailboxes they need |
| AI options greyed out for a mailbox | Enable AI features is off for that mailbox (Pro) | Switch it on, and confirm a provider is configured |
| MailDesk asks to sign in to Google / Microsoft again | The stored authorisation was revoked or expired | Re-run the provider sign-in — see OAuth problems |
Next step
Add or manage a mailbox shows where to set Users with Access. For problems, see Fix common MailDesk problems.