Updated 2026-11-20
How to Configure an Outgoing Mail Server (SMTP) in Odoo
In Odoo go to Settings > General Settings > Emails, enable Use Custom Email Servers, save, then open Outgoing Email Servers > New. Set Authenticate with: Username, Connection Encryption: TLS (STARTTLS), SMTP Server smtp.bulko.io, SMTP Port 587, your Bulko SMTP username and password, and FROM Filtering = your domain, then click Test Connection.
Odoo sends quotations and invoices from the chatter, portal invitations and password resets, purchase orders, follower notifications, helpdesk replies and Email Marketing campaigns. On Odoo Online and Odoo.sh this works out of the box through Odoo's own mail server and the company-name.odoo.com subdomain. A self-hosted Community or Enterprise install has no mail server at all: the settings page itself says "Using your own email server is required to send/receive emails in Community and Enterprise versions". Without one, Odoo falls back to localhost:25 and every message ends with a red envelope.
This guide adds Bulko as an Outgoing Mail Server (model ir.mail_server). The labels below are from Odoo 20 (released September 2026) and Odoo 19; differences in 17 and 18 are noted. It also works on Odoo.sh and Odoo Online if you send from your own domain. If your Odoo currently sends through smtp.office365.com with a username and password, read what changes for Microsoft 365 SMTP AUTH first.
Odoo SMTP settings
| Field | Value |
|---|---|
| Name | Bulko SMTP (any label) |
| FROM Filtering | Your sending domain, e.g. example.com (or a full address) |
| Priority | 1 if this should be the default server (lower number wins) |
| Authenticate with | Username |
| Connection Encryption | TLS (STARTTLS), encryption and validation (Odoo 19+); TLS (STARTTLS) in 17/18. For port 465: SSL/TLS |
| SMTP Server | smtp.bulko.io |
| SMTP Port | 587 (2525 if 587 is blocked; 465 only with SSL/TLS) |
| Username | Your Bulko SMTP username (smtp_xxxxxxxxxxxxxxxx) |
| Password | Your Bulko SMTP password from Dashboard > SMTP Access |
FROM Filtering, alias domain and the notifications@ rewrite
Odoo picks an outgoing server for each email by comparing the sender with each server's FROM Filtering (comma-separated domains or full addresses):
- a server whose filter matches the sender's full address, then the sender's domain;
- otherwise a server matching the notifications address of the alias domain, and the From is replaced with it;
- otherwise the first server with an empty filter, also with the notifications address;
- otherwise the first server by Priority, then name.
The rewrite keeps the person's name, so a salesperson using a Gmail address goes out as "Jane Doe" <[email protected]>. That is what you want: Bulko should only send for domains you control and have verified.
The notifications address comes from Settings > Technical > Email: Alias Domains (developer mode): Default From Alias (default notifications), Catchall Alias and Bounce Alias. Alias domains replaced the mail.catchall.domain and mail.default.from system parameters in Odoo 17. If you put a full address into Default From Alias, every outgoing email uses it.
Step-by-step setup
- Buy an SMTP package on the Bulko SMTP Relay page, copy the username and password from Dashboard > SMTP Access, and verify your sending domain under Sending domains (DKIM record
bk1._domainkey, optional Return-Path CNAMEbnc., plus DMARC). - In Odoo open Settings > General Settings, scroll to the Emails block, tick Use Custom Email Servers and click Save.
- In the same block click Outgoing Email Servers, then New. (With developer mode on, the same list is under Settings > Technical > Email: Outgoing Mail Servers.)
- Fill in Name, FROM Filtering (your domain) and Priority. Keep Authenticate with on Username (the Gmail and Outlook OAuth options are not for Bulko).
- On the Connection tab choose TLS (STARTTLS), encryption and validation, enter
smtp.bulko.ioand port587, then the Bulko username and password. The port field defaults to 25, which Bulko does not offer, so do not leave it. - Click Test Connection at the top of the form and wait for Connection Test Successful!
- Make sure the company's Alias Domain (Settings > Emails) is the same domain you put in FROM Filtering, so Odoo's
notifications@,catchall@andbounce@addresses are built on it. - Send a real document (for example a quotation via Send) and check that it arrives.
odoo.conf (self-hosted, optional fallback)
[options]
; Used by outgoing servers set to "Command Line Interface",
; and as a fallback when no Outgoing Mail Server record exists.
smtp_server = smtp.bulko.io
smtp_port = 587
; smtp_ssl = True means STARTTLS (there is no implicit-SSL option here)
smtp_ssl = True
smtp_user = smtp_xxxxxxxxxxxxxxxx
smtp_password = YOUR_BULKO_SMTP_PASSWORD
email_from = [email protected]
from_filter = example.com
Self-hosted: SMTP in odoo.conf or on the command line
On your own server you can also define SMTP once in the configuration file (official Docker image: /etc/odoo/odoo.conf) or with --smtp, --smtp-port, --smtp-ssl, --smtp-user, --smtp-password, --email-from and --from-filter. Odoo uses these values when no Outgoing Mail Server record matches, and for any server record set to Authenticate with: Command Line Interface.
Watch the encryption: smtp_ssl = True means STARTTLS, so use port 587 or 2525. There is no option for implicit SSL on 465 here. Restart the Odoo service after editing the file. Any active Outgoing Mail Server record in the database takes precedence over these settings.
Send a test email
Test Connection does not send an email. It logs in, issues MAIL FROM with a test sender, RCPT TO [email protected] and opens DATA, then disconnects. A green Connection Test Successful! therefore proves host, port, encryption, credentials and that the sender is accepted, but not delivery.
For a real test, send a quotation to an outside mailbox and check in the message source that From is your domain and DKIM passes. A red envelope in the chatter means failure; click it to read the error.
Odoo's email queue: why a mail can wait or show as failed
Person-to-person emails (quotations, invoices, purchase orders) are sent immediately. Bulk mail (mass mailing, marketing automation, event messages) goes into the queue processed by the scheduled action Mail: Email Queue Manager, which runs every 60 minutes by default and is also triggered early when new mail is queued.
- See queued and failed mail in Settings > Technical > Email: Emails (developer mode). Filter by Failed; the Failure Reason tab shows the SMTP reply. Click Retry to re-queue or Send Now to push an outgoing one.
- Self-hosted: with
--max-cron-threads=0on every instance, queued mail is never sent. - Odoo.sh staging and development branches do not send mail: it is caught in the branch's Mails tab. Only the production branch sends through your server.
- Bulko allows 2,000 emails per day per SMTP access. For large campaigns, add a second outgoing server and select it under Email Marketing > Configuration > Settings > Dedicated Server, keeping the lower Priority value for transactional mail.
Troubleshooting
| Problem | Fix |
|---|---|
| Server replied with following exception: (535, ...) | Odoo reached the relay but the login was refused. Paste the username and password again from Dashboard > SMTP Access (smtp_ plus 16 hex characters, not your email address), save and click Test Connection again. More: https://bulko.io/en/smtp-errors/535/. |
| An SSL exception occurred. Check connection security type. ... WRONG_VERSION_NUMBER, or: The server has closed the connection unexpectedly | Encryption and port do not match. Use TLS (STARTTLS) with port 587 or 2525, or SSL/TLS with port 465. SSL/TLS on 587 and STARTTLS on 465 both fail. |
| No response received. Check server address and port number. timed out | The Odoo host cannot reach smtp.bulko.io on that port. Many hosting providers block outbound SMTP ports. Try 2525 with TLS (STARTTLS). |
| Please configure an email on the current user to simulate sending an email message via this outgoing server | Test Connection needs a sender. Fill FROM Filtering with your domain or set an email address on your own user, then test again. |
| Mail Delivery Failed / Mail delivery failed via SMTP server ... (red envelope in the chatter) | Open the message's failure reason. A sender or policy rejection usually means the From is not on a domain you control: set FROM Filtering and the Alias Domain to your verified domain so Odoo rewrites other senders to notifications@. |
| Emails stay in Outgoing status and never leave | The Mail: Email Queue Manager scheduled action is not running. Check that it is active and cron threads are enabled, and that you are not on an Odoo.sh staging branch. |
Replies and aliases need a separate incoming server
Replies that land in the chatter, and aliases such as sales@ or a helpdesk team address that create records, require Odoo to receive mail. That is done with an Incoming Mail Server (IMAP or POP) on the same settings block, with forwarding from your mailbox provider, or, on Online and Odoo.sh, with DNS records pointing the domain to Odoo. Bulko is send-only, with no IMAP, POP3 or mailboxes, so keep incoming mail with your mailbox provider and use Bulko only for the Outgoing Mail Server.
FAQ
Can I use my own SMTP server on Odoo Online?
Yes. Use Custom Email Servers and Outgoing Email Servers are available on Online and Odoo.sh too, but you must send from your own domain. Odoo's built-in server on Online has a daily limit of 5 to 200 emails depending on the subscription and apps, which is a common reason to switch.
Which Connection Encryption should I pick for Bulko?
TLS (STARTTLS), encryption and validation with port 587. smtp.bulko.io has a public Let's Encrypt certificate, so validation works and you don't need the encryption only variant.
Test Connection is green, so why did nothing arrive?
The test never sends a message: it stops after opening DATA. Send a real quotation or invoice and check the chatter and Settings > Technical > Email: Emails for errors.
Why do my emails come from notifications@ instead of the salesperson's address?
The salesperson's email does not match any server's FROM Filtering, so Odoo uses the alias domain's notifications address and keeps the name. Give users addresses on your domain, which FROM Filtering covers.
How much does it cost?
Bulko SMTP Relay is a one-time package: $5 for 5,000 emails, $15 for 20,000, $30 for 50,000 or $60 for 150,000, with no subscription and no expiry. Each SMTP access sends up to 2,000 emails per day.
Get SMTP credentials for Odoo
One-time payment by card or crypto, no subscription. Unused emails never expire. 2,000 emails per day per SMTP account.
What you can send: Acceptable Use Policy.