Dolibarr: SMTP server
Set up Dolibarr to send its emails through Mailcheer: SMTP/SMTPS sending method, port 587 with STARTTLS, credentials, then a real test email.
Dolibarr sends its emails with the sending method chosen in its setup. By default, that is PHP's mail function. This guide replaces it with an SMTP connection to Mailcheer. The labels are those of Dolibarr 24.0.1 in English, the latest release as of September 25, 2026.
Before you start
- A domain verified in Mailcheer. Your sending address must belong to it. See Verify your domain.
- Your Mailcheer SMTP credentials. In Mailcheer, open Integrations → From your website or software and click Create my credentials. The key is shown only once, so copy it right away.
- A Dolibarr administrator account. The Setup menu is for administrators only. If the multicompany module is enabled, only the superadministrator can change the connection settings.
The values to enter
In the Parameters block:
| Dolibarr setting | Value |
|---|---|
| Sending method | SMTP/SMTPS socket library |
| SMTP/SMTPS Host | smtp.mailcheer.com |
| SMTP/SMTPS Port | 587 |
| Authentication method | Use a password (AUTH LOGIN) |
| SMTP username or ID (if sending server requires an authentication) | mailcheer |
| SMTP password or token (if sending server requires an authentication) | <your Mailcheer key> |
| Use TLS (SSL) encryption | No |
| Use TLS (STARTTLS) encryption | Yes |
In the Other options block:
| Dolibarr setting | Value |
|---|---|
| Sender email for automatic emails | an address on your verified domain, for example contact@yourdomain.com |
Prefer port 465? Enter 465 in SMTP/SMTPS Port, set Use TLS (SSL) encryption to Yes and Use TLS (STARTTLS) encryption to No.
On a Windows server, the host and port labels are longer and mention the default value from php.ini. They are the two rows right below Sending method.
Set up Dolibarr
- Log in with an administrator account and open Home → Setup → Emails.
- Click Modify at the bottom of the page.
- Under Sending method, choose SMTP/SMTPS socket library: the credential fields appear.
- Fill in the settings with the values from the tables above.
- Make sure Sender email for automatic emails is filled in: Dolibarr won't save without it.
- Click Save.
Emails you send yourself from Dolibarr go out, by default, with the address chosen in Default sender email preselected on forms to send emails: the user's email (User email) or the company's (Company Email). That address must also be on your verified domain.
Test it
- Back on the page, click Test server connectivity. If Dolibarr reaches Mailcheer, it shows "Server is available at address smtp.mailcheer.com on port 587". This test only checks the address and the port.
- Then click Test sending. In the form, pick an address on your verified domain under From, put your own address in To, and click Send email.
- Dolibarr confirms with "Email (from … to …) successfully accepted for delivery".
- As soon as that first email reaches Mailcheer, the Integrations → From your website or software page in Mailcheer shows that the connection works: Connected. It also lists recent rejections, with their reason.
If it doesn't work
- "Server is not available at address … on port …" Check SMTP/SMTPS Host (
smtp.mailcheer.com) and SMTP/SMTPS Port (587or465). Don't leave the port empty: Dolibarr would then use the standard port 25. - The port and the encryption don't match. With
587: STARTTLS on Yes, TLS (SSL) on No. With465: the other way round. When you set one of them to Yes, Dolibarr switches the other back to No. - "Failed to send mail (sender=…, receiver=…)" Read the message that follows. Check your credentials:
mailcheerin lowercase, and your Mailcheer key pasted again with no space at the start or the end. Also check that the address chosen under From is on a domain verified in Mailcheer. - The connection fields can't be edited. The multicompany module is enabled: they are reserved for the superadministrator.
- The test works, but some emails are rejected. Read the reason shown in Mailcheer's recent rejections. If the sender is not on your verified domain, fix Sender email for automatic emails or Default sender email preselected on forms to send emails.
Sources
- Setup EMails, official Dolibarr wiki — accessed September 25, 2026
- Dolibarr 24.0.1 release notes — accessed September 25, 2026
- Email setup page, Dolibarr 24.0.1 source code — accessed September 25, 2026
- Setup menu, Dolibarr 24.0.1 source code — accessed September 25, 2026
- Official English labels of Dolibarr 24.0.1: admin.lang, mails.lang and main.lang — accessed September 25, 2026. The wiki does not always use the exact on-screen labels (for example "Method to send emails" for Sending method, or "EMails" for the Emails menu), so the labels in this guide come from the official source code and translation files.