FAQ
Emails are not collected automatically
Check that the scheduled task is active. Go to Home > Setup > Scheduled tasks and find the "Capmail" job. Check that:
- The job is enabled (active status).
- The frequency is correctly configured (every 2 hours by default).
- Your server's cron system is operational.
- The job's last result is 0. The output of the last run indicates how many emails were imported and from how many mailboxes. When a mailbox could not be checked, the job is marked as error and the message names the mailbox concerned, even if the other mailboxes were checked successfully.
You can also click the Refresh button in the email list to launch a manual collection and check that the IMAP connection works.
The IMAP connection fails
Check the connection settings in the mailbox configuration:
- Is the IMAP server reachable from your Dolibarr server?
- Is the port correct (993 for SSL, 143 for STARTTLS)?
- Are the credentials up to date?
- Is the encryption type correct?
- Does the server present a self-signed certificate? This is common in self-hosting. Then set "Validate TLS certificate" to No on the mailbox card.
Use the Test connection button on the mailbox card to get a diagnosis, and Detect folders to check that the configured paths match those of the server.
The SMTP test succeeds but sending fails
This symptom has been fixed since version 2.0.4: the test used to stop before authentication and therefore validated a wrong password. It now really authenticates. If the test fails now when it used to pass, the SMTP password was already wrong.
A third party is not detected automatically
Sender detection relies on matching the sender's email address with the email addresses stored in the Dolibarr third party and contact cards. Check that the email address is filled in on the third party or contact card.
The module redirects to an onboarding page
Capmail displays this page as long as no mailbox is configured. If you are an administrator, click Configure my first mailbox to start; otherwise, ask an administrator to configure a mailbox.
Emails from a sender appear when they should be hidden
Check the Excluded senders setting in the configuration (Behavior tab). Addresses must be comma-separated. To exclude a whole domain, use the *@domain.com format.
Reply sending fails
Check the SMTP configuration:
- If you use a dedicated mailbox, check that the SMTP configuration is filled in on that mailbox's card.
- If you use the global configuration, check the SMTP settings in Home > Setup > Emails.
- Use the Test SMTP button on the mailbox card to check connectivity.
The mailbox selector does not appear in Dolibarr sending forms
This selector only appears if:
- At least one mailbox has an SMTP configuration filled in.
- Your user has the send right on at least one of these mailboxes (see Permissions).
Data is not extracted automatically in Lead Mode
Check that you have configured at least one active template with detection and extraction rules. The template must match the email structure for extraction to work.
Use the Test tab of the template card to validate your regular expressions.
How to change the email collection frequency?
Go to Home > Setup > Scheduled tasks, find the "Capmail" job and change the frequency. By default, collection happens every 2 hours. You can reduce it to every 30 minutes or every hour depending on your needs.
My emails appear twice
This is the sign of a replayed collection: re-fetch after an outage, migration, full folder resynchronization... A purge tool is available in the Advanced tab of the module configuration (see Administration -- Advanced). The criterion is strict: same message identifier, same mailbox, same direction (incoming/outgoing). The tool keeps the most complete copy (with its third party, contact, project links) and deletes the duplicates. Run Dry run mode first to check what would be deleted.
An email has disappeared from the list
It was probably snoozed: the email is hidden until the chosen date, then reappears automatically. To find it:
- In the leads interface, select the Hidden status bubble.
- In the classic list, use the moon button of the toolbar.
- The Reactivate button (sun icon) of the email brings it back immediately.
If the email was archived or marked as spam, it is respectively in the Archived or Spam status bubble. See Usage.
Stars and flags do not show up in Thunderbird
The mapping is as follows: the Capmail star corresponds to the IMAP flag \Flagged, and flags 1 to 4 to the IMAP keywords $Label1 to $Label4 (keys 1 to 4 of the Thunderbird numeric keypad). Check that:
- You use flags 1 to 4: flags 5 to 8 are local to Capmail and never leave Dolibarr.
- The star and flag 1 are two different things: ticking flag 1 in Capmail changes label 1 in Thunderbird, not the star.
- Thunderbird and Capmail both consult the same mailbox and the same IMAP folder (for example the INBOX of the same address).
Who can see the emails of my personal mailbox?
Emails collected by your personal mailbox are private by default: only you can see them, even if they are linked to a Dolibarr third party. You can however share a private email linked to a third party with the team, which makes it visible to other users who have access to that third party. See Configuration.
Private does not mean personal: all the emails of your personal mailbox are private, work emails included. To flag those that belong to your private life, apply the Personal label to them (see the next question).
What happens to my emails when I leave the company?
When an administrator disables your Dolibarr account:
- your personal mailboxes are disabled and no longer collect mail;
- the emails that were assigned to you become unassigned again, so that a colleague can take them over;
- after a delay set by the administrator (30 days by default), the emails of your personal mailboxes tagged Personal are deleted automatically;
- all the other emails are kept: they are company documents.
Before you leave, remember to apply the Personal label to your private messages, to retrieve those you want to keep, then, if you wish, to delete them yourself with Purge personal mails on your personal mailbox card. If your account is enabled again before the end of the delay, nothing is deleted, but an administrator has to enable your mailboxes again. See Mark an email as personal.