Mail Client
Read, move and send company mail
Mail Client is a generic email client for Odoo, connected to any IMAP server.
Each user saves one mailbox (IMAP server, username and password; the password is stored encrypted) and reads it from its own Mail Client application: folders, message list, reading pane, mark as read or unread, star, move to another folder, write, reply and forward, and attach a message to a contact, order, invoice or other record. The reading pane shows the SPF, DKIM and DMARC results of the mail server and warns about signs of a forged sender; a read-only access log keeps who opened, sent or attached which message. Archive, spam and delete in one click, and the owner can create, rename and delete folders and empty the trash. Mailboxes can be shared with other users, each with a read or full access. The screen follows the colors of your company (or a theme you choose in Settings).
Mail stays on the mail server and is read live; only the messages you attach to a record are copied into its discussion. HTML messages are cleaned and shown in an isolated frame: no scripts and no remote images.
This is stages 1 to 6a of the roadmap (read, move, send, attach, security, audit and shared mailboxes). The later stages come next,
see ROADMAP.md.
Set up your mailbox (once)
- Go to Mail Client → Configuration → Mail Accounts → New.
- Fill in the IMAP Server, the Username (usually your email address) and the Password. The port 993 and the SSL/TLS security are already selected. For Gmail or Microsoft 365 do not use a password: choose Sign in with instead (see Sign in with Google or Microsoft 365 below).
- To send mail too, fill in the Outgoing (SMTP) group: the From Address, the SMTP Server and its port and security. The SMTP username and password are optional: when empty, the IMAP ones are used.
- Save, then click Test Connection. Odoo tells you how many folders it found.
The password is stored encrypted and is not shown again. Leave it empty when you edit the account to keep it.
Sign in with Google or Microsoft 365
Google and Microsoft no longer accept the password of the account for IMAP and SMTP. Connect the mailbox with the account itself (OAuth2):
- In the mailbox form choose Sign in with → Google (OAuth2) or Microsoft 365 (OAuth2). The servers are filled in for you.
- In Username write the address of the account (for example
accounting@company.example) and save. - Click Connect with Google or Connect with Microsoft and allow the access on the page of the provider. You come back to the Mail Client, and the form shows Connected.
The account you sign in with must be the one in Username; another account is refused and nothing is saved. Reading and sending work as with a password, and the access is renewed by itself. If it is withdrawn (or the password of the account is changed), Odoo says to connect the mailbox again, and the new-mail check shows the same text. Disconnect removes the access.
On the Google screen tick the Gmail permission. Google shows the permissions with the box for Gmail ("Read, compose, send and permanently delete all your email from Gmail") and lets you leave it unticked. Without it Google signs the mailbox in but the mail server refuses it (Sign-in refused by the mail server). If that happens, remove the access of the application at myaccount.google.com/connections and connect again with the box ticked.
One-time setup of the sign-in (administrator)
Odoo signs in through its own Google and Microsoft modules. Where Odoo offers its sign-in service for your subscription, the Connect button works as it is. Otherwise you create an application at Google (and/or Microsoft) and give its id and secret to Odoo:
- In the Google Cloud console create a project, then Google Auth Platform → Branding (name of the application) and Audience. For a Google Workspace organization choose Internal: any user of the organization can connect, with no verification and no expiry of the access. A personal Gmail account (or users from outside the organization) needs External, and then in Testing only the addresses listed under Test users can connect (at most 100) and the access expires after 7 days; to avoid this the application has to be published and verified by Google, which for the Gmail scope is a long process.
- Clients → Create client → Web application. In Authorized redirect URIs put
https://your-odoo-address/google_gmail/confirm(for a test on your computer:http://localhost:8069/google_gmail/confirm). - Save the Client ID and copy the Client secret at once (Google shows it only when it is created; later you can only add a new one).
- In Odoo: Settings → General Settings → Emails, tick Use Custom Email Servers and save; then tick Use a Gmail Server, fill in ID and Secret and save.
- For an External application, add the Gmail address of each user under Audience → Test users.
Microsoft 365
- In the Azure portal: App registrations → New registration, with the redirect URI (type Web)
https://your-odoo-address/microsoft_outlook/confirm. - Under Certificates & secrets create a client secret, and copy its value at once.
- In Odoo: Settings → General Settings → Emails, tick Use an Outlook Server, fill in ID (the application id) and Secret, and save.
The Microsoft setup follows the one of the mail servers of Odoo; it was not tried with a real account in this version.
Sign in with the server master account (administrator)
On a Dovecot server the administrator can open the mailboxes with the master user, so that no mailbox keeps a password in Odoo.
- Put the credential in a JSON file that only the Odoo service can read:
{"master_user": "master", "master_pass": "...", "separator": "*"}(the separator is optional,*by default). With systemd, addLoadCredential=deltatech-mail-master:/etc/credstore/deltatech-mail-masterto the service; otherwise set the variableDELTATECH_MAIL_MASTER_FILEto the path of the file. The file can also be INI, with the same keys in a[mail]section. If the service already gets the credential under another name, set the system parameterdeltatech_mail_client.credential_nameto that name (a plain name, no path): nothing changes on the server. - In the mailbox form choose Sign in with → Server master account and write the address of the mailbox in Username. Odoo signs in as
mailbox*master_userwith the master password, for reading and for sending.
Only a Mailbox administrator (the group is in Settings → Users, under Mail Client; the administrators of the system are in it too) can choose this option or change the user, the server, the port or the security of such a mailbox. The password is never saved in the database, and a neutralized copy of the database does not connect. A mailbox created with the master account, or whose Username changes, is written in the access log (Access changed) and announced in Odoo to its owner, to the mailbox administrators and to the colleague whose login or email is that address, so nobody reads a colleague's mail without a trace.
Bring the mailboxes of the mail server (administrator)
With a mailcow server, Odoo can bring the mailboxes by itself, so nobody adds them by hand. Add to the credential file of the previous section the servers the new mailboxes use and the read-only API of the mail server: "imap_host": "mail.example.com", optionally "imap_port", "smtp_host", "smtp_port", and "api_url": "https://10.0.0.5", "api_key": "...", "api_certificate": "mail.example.com" (the name the certificate of the server is issued for; it is checked in full).
In Mail Client → Configuration → Mail Account (or All Mailboxes), click Bring mailboxes from the mail server. A mailbox missing in Odoo is added with the master account: the colleague whose login or email is exactly its address gets it as the personal mailbox (if they have none), any other one is shared and belongs to you, and you give access to the others. A mailbox switched off on the server is archived; nothing is deleted. To run it every 15 minutes, activate the scheduled action Mail Client: bring the mailboxes of the mail server.
Read your mail
- Open the Mail Client application (its own icon in the apps menu); it opens on Mailbox.
- Pick a folder on the left. The messages of the folder are listed newest first, 30 per page; unread ones are in bold.
- Click a message to read it. It is marked as read on the server.
- Use Mark as unread or the star button to change its state on the server.
HTML messages are cleaned and shown in an isolated frame: scripts are removed and remote images are not loaded. The colors, fonts, backgrounds and layout of the message are kept, so it looks much as it does in your usual mail program. Attachments are shown as cards, each with the icon of its type (PDF, image, spreadsheet, document, archive...), its name and its size. Click a card to preview it (images and PDF) or to download it; the arrow downloads a file that can be previewed.
Show images. Remote images are blocked because the sender can see, through them, that you opened the message, when, and from which address. If you trust the message, click Show images next to the note: this message is shown again with its images (only those on https addresses; scripts, forms and the rest stay blocked). The choice is for this message only: the next one is shown without images again. Pressing the button is written in the access log.
Move a message to another folder
Open the message, then pick the destination in the Move to... list (the current folder is not offered). The message is moved on the server; the folder list and the message list are read again, and the message disappears from the old folder. The star and the read state are kept.
Write, reply and forward
Click New message (above the folders), or open a message and click Reply (the main button, in the color of the theme), Reply all or Forward. The window of the message has a head that says what it is (New message, Reply, Reply to all, Forward or Draft) and the address the mailbox sends from (Sending from ...), which matters when you have several mailboxes. Fill in the recipients (separate several with commas; Cc / Bcc shows the other fields), the subject and the text, attach files with the paperclip if you need to, and click Send (or press Ctrl+Enter). Save draft keeps the message in the Drafts folder and closes it, and the trash icon discards the message (and its draft) after asking for confirmation if you changed it.
A reply starts with the answer address, the subject with Re: and the original text quoted. A forward starts with Fwd:, the original text and its attachments (you can remove them), and you choose the recipients. The attachments of the original are taken again from the message on the server when the draft is saved and when you send: if the original was moved or deleted meanwhile, nothing is sent and you are told; remove the attachment or forward again. The header of the quote (From, Date...) is in your language.
The message leaves from your own address and a copy is saved in the Sent folder of the server (switch it off with Keep a Copy in Sent on the account). Replying marks the original message as answered.
The text is written in an editor: select some words and a toolbar appears over them (paragraph or heading, size, bold, italic, underline, color, list and link). Pictures cannot be put inside the text. The message leaves with the formatting and with a plain text version for the mail programs that cannot show it. Attachments are limited to 25 MB.
Signature
A new message, a reply and a forward start with your signature under the text, after a -- line (and above the quote, in a reply). The signature belongs to the mailbox: set it in Mail Client → Configuration → Mail Accounts, in the Signature group, where you see how it looks. If the mailbox has none, the signature from your preferences in Odoo is used, so you can keep a single one for all. If your company uses the Mail Signature module (deltatech_mail_signature), that signature is generated for every user from the template of the company, with their own name, job, phone and the images of the template, and you get it here without doing anything more: in a shared mailbox without a signature of its own, each member signs with the one generated for them. In a shared mailbox, the signature of the mailbox is used for all its members (also for those who have one in their preferences); if the mailbox has none, each member signs with their own. Only the owner of a mailbox changes its signature. You can put images in the signature (a logo, a banner): in the Signature field type /image or use the media dialog and upload the file. The images travel inside the message, so the reader sees them without loading anything from another server. At most 5 images, 300 KB each, PNG, JPEG or GIF; the limits are checked when you save the mailbox. Inside the text of a message there are still no images.
Drafts and recipient suggestions
What you write is kept on its own: 5 seconds after your last change the message is saved in the Drafts folder of the mail server ("Draft saved" shows next to the buttons). Nothing is stored in Odoo, so the draft is also visible from your phone or another mail application. Each save replaces the previous version, so there is one draft per message. Opening another message, switching mailbox or leaving the screen while you write also keeps what you wrote as a draft; the trash icon asks for confirmation and removes the draft too.
To go on, open the Drafts folder, pick the draft and click Continue writing: the recipients (also Cc and Bcc), subject, text and attachments come back. Send removes the draft from the folder. A server with no Drafts folder gives a warning and the draft is not saved (the folder is not created on its own).
In To, Cc and Bcc, after two characters a list of up to 8 of your contacts with an e-mail address appears, searched by name or address. Pick one with the mouse or with the arrow keys and Enter (Esc closes the list). The field stays free text, so you can also type an address that is not among your contacts.
Attach a message to a record
Open a message and click Attach to.... Choose the kind of record (Contact, and Sales Order, Purchase Order, Invoice, Transfer, Lead or Task when those applications are installed and you can edit them), type part of its name and click the record. An administrator chooses the kind offered first in Settings → Mail Client: Attach to. The arrow button next to a record attaches the message and opens the record.
The message is posted in the discussion of the record as an internal note written under the name of the sender (found by email address among the contacts), with the text of the message, its attachments and the original .eml. Remote images are not kept. Messages over 25 MB are not attached.
The same message is not attached twice to the same record (you get a warning), but it can be attached to several records. Under the header, Attached to lists where you attached this message, and Related to this sender the contacts with the sender's address and the records you attached earlier messages of that sender to. These links are private: each user sees only their own.
Sender check and access log
Under the header of every message, Sender check shows the SPF, DKIM and DMARC results that your mail server wrote in the Authentication-Results header, and the name of the server that wrote them (a check mark on green is pass, a cross on red is fail, a question mark on grey is anything else; hover for the exact result). Odoo verifies nothing itself: if the server wrote no header, the line says so.
Above the message you may see warnings: the server could not verify the sender; replies go to another domain; the name shown contains another email address; the sender domain uses special characters or imitates the domain of one of your contacts; a link shows one site but leads to another. Warnings only inform: the message is read as usual and the links are left as they are.
Mail Client → Configuration → Mail Access Log lists when you opened, sent or attached a message (administrators see everybody's lines). Nobody can change or delete a line from Odoo, and the content of the messages is not kept.
Colors
An administrator chooses the colors of the screen for each company in Settings → Mail Client Colors: Company colors (default, the same button colors as the Email Templates setting), Odoo neutral, Dark green or Custom (button and sidebar colors; the text color is picked to stay readable). Only #rrggbb values are accepted.
Shared mailboxes
The owner of a mailbox ticks Shared Mailbox on the account and adds members with an access level: Read (read messages and mark them as read) or Full (also star, move, write, send and attach to records). Only the owner keeps the password and never shows it to the members; they can see the server, the user name and the From address of the mailbox, but only the owner can change them and the members.
Everyone keeps one personal mailbox and can be a member of several shared ones: a selector above the folders switches between them. Messages are sent from the address of the shared mailbox, under the name of the mailbox. Links to records made in a shared mailbox are visible to all its members, and the access log shows which mailbox each line is about (the owner sees the lines of the members too). Changing who can open a mailbox (adding a member, changing the Read or Full level, removing a member, a new owner) is written in the access log as Access changed, and the owner and the system administrators, except the one who made the change, get a notice.
Folders: Archive, Spam, Delete
The folders come from your mail server. The module recognises what each is for (inbox, sent, drafts, archive, spam, trash) and shows a matching icon. With a message open, Archive, Spam and Delete move it to the folder of that role; Delete goes to the trash, so you can recover it. If the server has no such folder, the owner of the mailbox is asked whether to create it.
The owner of the mailbox manages the folders with the tools under the folder list: + creates a folder, the pencil renames it, the bin deletes it, and the eraser empties the trash or spam folder. A folder can be deleted only when it is empty and has no subfolders, and the folders the mailbox needs (inbox, sent, drafts, archive, spam, trash) cannot be renamed or deleted.
Emptying the trash or spam asks for confirmation and shows how many messages will be deleted for good; it is the only way to delete messages permanently from the module. Members with Full access can move, archive, mark as spam and delete to the trash, but not change the folders. The access log records the folders created, renamed, deleted and emptied.
New mail: unread counters and notices
Next to each folder a round badge shows how many messages are unread; it is refreshed when the client opens, on Refresh and when messages are read or moved. The unread total of the inbox also appears in the title of the browser tab, for example "(3)".
The bell under the folders turns notices on or off for you and the chosen mailbox (they are off by default). A scheduled action runs every 5 minutes, looks only at the state of the inbox and, when unread mail has arrived, tells the users who asked, on any Odoo screen, with the sender and subject of the newest message (and the number of new messages when there are several). The first check of a mailbox only remembers its state: mail already there gives no notice. Mail already read elsewhere is not announced, and a member who loses access to a shared mailbox gets no more notices. Notices are not instant: they arrive within 5 minutes.
An envelope in the top bar shows the unread total of the inbox of the mailboxes you asked notices for. With one mailbox a click opens the Mail Client; with several, a small list shows the count of each and opens the chosen one. The number comes from the last check (up to 5 minutes old) and is refreshed at once when a notice arrives or when the Mail Client counts the unread messages.
Is the mailbox checked? The state of the check
Open the mailbox in Mail Client → Configuration → Mail Accounts: the New-mail check group tells you how many users watch the mailbox, when it was last checked, how many unread messages the inbox had then and, if the last check failed, the error the mail server gave, in red (for example a changed password). The list of mailboxes shows the same two columns, with a red row for a failed check, and the filter Check Failed finds those mailboxes.
Only a mailbox somebody watches is checked (the bell under the folders). For a mailbox nobody watches the group says so: empty fields do not mean a fault. The error goes away at the next good check.
Search and filters
Type in the search field above the list and press Enter (or the magnifier): the open folder is searched on the mail server. A word is looked for in the subject, the sender and the recipients; with several words, every one must match, and "two words" between quotes stays together. You can narrow the search with operators:
| Write | Finds |
|---|---|
from:ion |
messages whose sender has "ion" in the name or the address |
to:maria |
messages sent to a recipient with "maria" |
subject:offer |
messages with "offer" in the subject |
is:unread, is:read |
unread or read messages |
is:starred, is:unstarred |
starred or not starred messages |
has:attachment |
messages with an attachment |
after:2026-10-01 |
messages from that day on |
before:2026-11-01 |
messages before that day |
The Unread, Starred and With attachment buttons add or remove the operator for you. The result is the usual list, newest first, with paging, and you can select several messages in it. The cross (or Esc) clears the search, and so does opening another folder.
Words with accents are sent as UTF-8; if the server does not accept it you are told and the words are searched without accents. With attachment finds the messages the sender built as "mixed" (the usual way), so a message built differently may be missing.
Search in all folders
Under the field, This folder is chosen by default; choose All folders to look in every folder of the mailbox with the same words and operators. The results come in one list, newest first, and each message shows its folder as a small tag. Click a message to open it: replying, starring, moving or attaching it work on the folder it is in.
Trash and Spam are left out; tick Include Trash and Spam to add them. At most 40 folders are searched, with the newest 500 matches of each; if a limit is reached, or a folder cannot be searched, you are told that the result is partial. In this list you open messages one by one: selecting several messages works only when you search in one folder.
Work on several messages
Tick the box at the left of a message (it shows when you point at the row) to select it. Shift+click on a box selects everything between it and the last one you ticked; Ctrl (or Cmd)+click on a row adds or removes it; the box in the header selects all the messages of the page. A bar then replaces the header of the list: it shows how many messages are selected and lets you mark them as read or unread, star them, send them to Archive, Spam or Delete (the Trash, so it can be undone), or Move to... another folder. Esc, the cross, a click on a message or a change of folder cancels the selection.
If some messages were removed from the server in the meantime, you are told how many; the others are done. The selection covers the messages of the page you see.
Folders: the usual ones and the others
The left column shows first the usual folders (Inbox, Sent, Drafts, Archive, Spam and Trash) and then the others in a group called Other folders, with the number of folders. A mailbox with up to five other folders shows them all; with more, the group is folded until you click it, and it remembers what you chose, for each mailbox, in your browser. When the group is folded and some of its folders have unread messages, their total is shown on its line. Choosing a folder of the group opens it, and while you drag a message the group opens by itself, so that every folder can take it.
Who sent the message
Above the technical checks, the message says in plain words how far the sender can be trusted: Verified sender (the mail server confirmed the origin with SPF, DKIM and DMARC), Partly verified, Sender not verified (a check failed: the message may be forged) or Sender not checked (the server wrote no result). Outside the company is added when the domain of the sender is not one of your own: the domain of the mailbox, the email and the website of your companies. Why? opens the reasons. It only informs, nothing is blocked; the warnings and the technical checks (SPF, DKIM, DMARC) stay under it.
Drag messages onto a folder
To move a message to another folder, drag its row from the list and drop it on a folder of the left column. While you drag, the row is dimmed and the folder that can take the message gets a dashed outline; the folder the message is already in does not. If you drag a row of the selection (two or more messages ticked), all the selected messages move; any other row moves alone. It moves on the server, like Move to..., and needs write access (with read access the rows cannot be dragged). The unread counters are read again after the move. On a touch screen use Move to... in the menu of the message.
Right click on a message
Right click on a row of the list opens a menu next to the pointer: Mark as read or Mark as unread, Star or Unstar, and, under a line, Move to..., Move to archive, Mark as spam and Move to trash (in red). Move to... opens the list of the folders of the mailbox (the folder the message is in is not in it): click one and the message, or all the selected messages, is moved there. The menu acts on that row only; the message is not opened, and what is selected and what is open stay as they are. If you right click on a row that is part of the selection (two or more messages ticked), the menu acts on all the selected messages and says how many they are. A member of a shared mailbox with read access only sees Mark as read/unread. Esc, a click elsewhere, scrolling or a right click outside the list closes the menu. A right click outside the rows leaves the usual menu of the browser.
On a phone
On a screen narrower than 768 px the mailbox shows one pane at a time. It opens on the list of messages, with one bar on top: Folders (the menu button), the name of the open folder, the search (magnifier), the filters (unread, starred, with attachment) and New message (the pencil). The search box appears only after you press the magnifier.
The magnifier opens the search box and the This folder / All folders switch; press it again to clear the search and hide them.
Folders opens the folders panel; Back to messages, or picking a folder, returns to the list.
Click a message to read it full screen; the arrow Back, next to the subject, returns to the list. A message you are writing also opens full screen, and Back keeps it in the Drafts folder. The buttons are 38-44 px high, the actions of a message wrap under its subject, and the "..." menu, the sender check and the attachments fit the screen. Wider screens are unchanged.
Speed
The connection to the mail server stays signed in for two minutes after the last click, so the next clicks do not wait for a new sign-in (with Gmail this made each action several seconds faster). A system administrator changes the time with the system parameter deltatech_mail_client.imap_session_seconds (in seconds; 0 signs in at every action).
Limits of this stage
- Reading, moving (also several messages at once), sending, attaching, sender checks, the access log, shared mailboxes, new-mail notices, searching (in the open folder or in all folders), drafts and recipient suggestions. Searching in the text of the messages is planned for a later stage.
- The warnings can be wrong (for example a legitimate domain that looks like a contact's): they inform, they never block.
- The attached note is internal: customers never receive it, but internal followers of the record who follow notes are notified as for any note.
- Subscriptions to folders, the size of the mailbox and moving a folder under another one are not handled. Mail stays on the mail server and is read live; Odoo keeps a copy only of the messages you attach to a record.
- Each user has one personal mailbox that only they can open, plus the shared mailboxes they are a member of.
✓ Included in the Terrabit support subscription
If Terrabit is your Odoo implementation partner, your support subscription includes the right to use this module and every other Terrabit module, with no separate purchase. The modules are kept up to date with each new Odoo version and supported by the developers who build them.
Need help getting started?
Our 800+ apps on the Odoo Apps Store are used in Odoo implementations across Europe, the Americas, Asia and Africa — by companies we have never even met. That is the advantage of building modules that simply work.
Questions about this module? Write to us — the developers who build it will answer.
More apps by Terrabit
Other modules from the same publisher, built to work together. All apps →
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 6546 |
| Technical Name |
deltatech_mail_client |
| License | OPL-1 |
| Website | https://www.terrabit.ro |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module