Configuring OpenProject outbound email and SMTP

A self-hosted OpenProject sends notifications, invitations and password emails only when its SMTP settings, background workers and network paths all work. This page covers the setup and checks that keep mail reliable.

On this page

Why OpenProject SMTP configuration decides whether notifications arrive

When invitations, reminders and work package notifications stop reaching users on a self-hosted OpenProject instance, the cause is almost always outside the web page itself. Outbound email depends on three things: the SMTP settings, the background workers that send the messages, and network reachability from the container or host that makes the connection. A mail server that accepts connections from one part of the stack can still be unreachable from the worker that actually delivers the mail, so a working test from an administrator's shell does not prove the instance can send.

OpenProject gives administrators a direct check. The documented health endpoint at /health_checks/mail tests the SMTP configuration, and the monitoring documentation describes it as part of routine instance health checks. Email delivery itself runs in background workers rather than in the web process, which means a healthy web interface says nothing about whether queued messages are leaving. Teams should confirm both the health check result and the worker logs after any change, and they should check that the worker service, not just the web service, can resolve and reach the mail server. The Docker Compose documentation specifically advises setting DNS on the worker service when SMTP fails with a "Network is unreachable" error, which is a common surprise after a move to containers.

Plan this work before go-live, and again whenever the deployment method changes, such as a move from packages to Docker Compose or to Kubernetes, because the network path and the service that sends mail often change with it. Ask your mail team which relay host, port and authentication method they will provide, whether the relay accepts connections from the worker subnet, and which sender address is permitted for the domain. Email encryption in OpenProject is optional. Organizations that require message-level protection should be aware that GPG and S/MIME end-to-end encryption are not supported, so transport security and any gateway-side controls must be designed and confirmed with your security team against the processing of personal data documentation.

Which SMTP settings fit your mail environment

A hosted relay or transactional mail service is the most common choice when OpenProject runs in a cloud account or a data center with outbound internet access. The provider accepts mail from your instance, handles routing to recipients and publishes the sending domain's reputation. Your team supplies the connection details and the sending identity, and the provider's account owner supplies the credentials. Settings to gather before you configure anything:

  • SMTP host and port: the relay hostname the provider documents for submission, which is often a dedicated submission port rather than port 25.
  • Authentication: the username and password or API key the provider issues, and who in your organization holds them.
  • Encryption mode: whether the provider requires implicit TLS or STARTTLS on the chosen port.
  • Sender address: a mailbox or no-reply address on a domain you control, with SPF, DKIM and DMARC records already published for that domain.
  • Provider limits: daily or per-minute sending caps and any allowlist of source IP addresses.

Confirm with the mail team who owns the sending domain and whether the provider's account is shared with other applications. Use the official configuration docs for the exact configuration keys.

How background workers send OpenProject mail

Email delivery runs in background workers, not in the web process, so a healthy web page does not prove that mail works. When a user assigns a work package, mentions a colleague or changes a status, the web request records the event and queues the notification. A separate worker container picks the job up later, builds the message, opens a connection to the SMTP host set in your configuration and hands the message over. If the web interface loads normally while no one receives notifications, the fault is usually in the worker path, not in the pages users see. Check the worker logs first, then the mail health check at /health_checks/mail described in the OpenProject monitoring documentation, which tests the SMTP configuration directly.

Failures show up in the worker logs, not in the browser. A connection error, a refused TLS handshake or an authentication rejection from the relay all surface there as failed jobs. In Docker Compose installs, the official guidance is to set DNS on the worker service when SMTP fails with the message "Network is unreachable", which usually means the container cannot resolve or route to the mail host even though the host itself can. Confirm which containers run the workers in your deployment, then confirm from inside the worker container, not from the host, that it resolves the SMTP host name and reaches the relay port you configured. Firewall rules that allow the web container but not the worker container are a common cause of a split result.

Scaling workers changes mail throughput as well as job processing. Each additional worker can send queued messages in parallel, so a burst of notifications, such as a bulk status change across a large project, is cleared faster with more workers, while a single worker can fall behind. The OpenProject scaling documentation explains how worker processes are separated from the web tier. Before you add workers, confirm with your mail provider how many messages per minute it accepts from one sending address, because a faster sender can trigger rate limits. Ask your relay operator for those limits in writing and plan the worker count against them.

How a notification travels from OpenProject to the recipient

A notification starts in the web process, which queues the message for a background worker rather than sending it inline. The worker container resolves the SMTP host through DNS and opens the connection to the mail relay, which hands the message to the recipient's mailbox. The health check at /health_checks/mail is a separate branch that tests the SMTP configuration on demand, so check it first when a message never arrives, then confirm DNS on the worker if the log reports that the network is unreachable.

Notification path from the web process to the recipient, with the separate mail health check.

Setting up and verifying SMTP step by step

This sequence takes outbound email from unknown settings to a verified path: the mail server details are confirmed, the configuration is applied and loaded, and a real notification is delivered and traced through the worker logs.

  1. Collect the SMTP details from the mail team

    Ask the mail team for the relay host name, port, the encryption mode the relay expects (STARTTLS or implicit TLS), the authentication method and credentials, the sender address your relay accepts, and whether the relay only accepts connections from specific source addresses. Confirm which of these addresses the OpenProject host or worker container will connect from, because relays often allowlist by IP. Stop here if the relay requires an authentication method or sender domain you have not confirmed, since guessing these settings produces failures that look like network faults.

  2. Set the outbound mail settings for your deployment

    Enter the SMTP values in the place your installation method reads them: the configuration file for packaged installs, environment variables for Docker Compose and container deployments. Keep the sender address and the reply path consistent with what the relay accepts, and store the SMTP password in your secrets mechanism rather than in a plain file where possible. Confirm the values are visible to the web and worker processes, not just to one of them, by checking the setting source for each service. Stop if the settings exist only in one service definition.

  3. Restart web and worker services

    Restart the web and background worker processes so both load the new mail configuration. In a packaged install, this means the services that run the web application and the workers. In Docker Compose, restart the containers that run the web and worker roles. A web process that has the new settings while the worker still uses old ones will send mail that looks correct in the interface but never leaves the worker, so check both. Done when each service reports a healthy start and the logs show no configuration errors at startup.

  4. Call the mail health check

    Open the mail health check endpoint at /health_checks/mail on your OpenProject host as an administrator or from a network path your monitoring can use. The check tests the SMTP configuration itself, so a passing result shows the server accepted the connection and settings, not yet that a message reached a mailbox. If the check fails, read the error text, fix the reported setting or network path, restart the services and repeat this step. Do not send a test notification until this check passes.

  5. Send a test notification to a known mailbox

    Trigger a real notification, such as a work package assignment or a mention, from a test user to a mailbox you control and can read, preferably one inside the same organization and one outside it. Use an account that has the notification setting enabled for the event. Record the time you triggered it so you can match it in the logs. Done when the message arrives in both mailboxes, with the expected sender and link. If it does not arrive, check spam folders and the relay's own logs before changing OpenProject settings.

  6. Confirm delivery in the worker logs

    Open the logs of the background worker around the time you recorded in the previous step. Look for an entry showing the message was handed to the relay and accepted, and note any retry or error lines. Mail is sent from workers, so a successful result in the web logs alone does not prove delivery. If the logs show the network is unreachable, the Docker Compose guidance for setting DNS on the worker service applies; check name resolution from inside the worker container. Done when one notification shows an accepted send in the worker log and arrived in the test mailbox.

  7. Record the verified configuration and schedule a recheck

    Save the final non-secret settings, the health check result, the test notification details and the log evidence in your change record, and name the owner who will receive mail-related alerts. Repeat the health check and a test notification after any change to the relay, certificate, DNS or the OpenProject version. Done when the change record lets another engineer repeat the test without asking how it was set up.

Fixing the Network is unreachable error on the worker container

When OpenProject cannot send mail from a Docker Compose install and the logs show a Network is unreachable error, the first fix to try is setting DNS on the worker service. The Docker Compose documentation advises this step when SMTP fails with that message. Background workers perform the sending, so the fix belongs on the worker container, not only on the web container. In your Compose override, add a dns entry under the worker service that points to resolvers your network actually uses, then recreate the container so the setting takes effect. Confirm the exact service name and resolver addresses against your own compose file and your network team's records before you change anything.

Before changing DNS, separate a name resolution problem from a firewall block, because the fixes differ. Run a lookup of the SMTP host from inside the worker container, for example with docker compose exec worker getent hosts smtp.example.internal. If the name does not resolve, the container's resolver is the problem. If the name resolves but a connection to the SMTP port times out or is refused, the cause is more likely a firewall, a proxy or an egress rule. A Network is unreachable message can also point to missing routes, so check the container's routing table and compare the result with the same test run from the Docker host. Then open a TCP connection to the mail host and port from inside the worker container, and confirm the answer matches what the health check at /health_checks/mail reports.

The same error often returns after a move to a new host, a new Docker network or a more restricted network segment. A host migration can change the resolver the Docker daemon inherits, and a stricter egress policy can block the SMTP port that worked before. Record the worker's DNS settings, the mail host's resolved address and the result of the connection test in your change record, then repeat those checks after every host, network or firewall change. Ask your network team which resolvers and egress paths the worker container may use, and confirm that the mail server is permitted to accept connections from that address.

SSRF rules and network paths for the mail server test

The SMTP check in OpenProject makes a network connection from the server to your mail host, so it behaves like any outbound request. The cards below cover the decisions that connect the mail test to your SSRF protection, firewall, proxy, certificate and air-gap rules.

The mail test is an outbound request

Checking the mail configuration makes the OpenProject host open a connection to the SMTP host and port you configured. If that host resolves to an internal address, the request reaches inside your network from the application's point of view. Treat the mail test like any other server-side fetch of a user-influenced or admin-influenced address. Confirm with your security team whether the admin who edits SMTP settings can point them at arbitrary hosts, and who can run the health check at /health_checks/mail.

Monitoring docs

Deciding which internal mail hosts to allow

Most organizations run mail through one or a few internal relays, which are private addresses. Build a short, named list of the relay hosts and ports that OpenProject must reach, and record why each one is needed. Ask your SSRF protection owner how the application's allow rules are expressed in your OpenProject version, because this page does not assume specific syntax. Avoid broad allowances such as whole private subnets unless the mail relay truly sits in that range.

Firewall and egress rules

The application's own allow settings are only one layer. The host or container network should also permit outbound traffic from the OpenProject worker to the SMTP relay on the agreed port, and block other destinations that the worker has no reason to reach. Test from the same network namespace the worker uses, not only from an admin workstation. Confirm which containers or hosts run background workers, since email is sent there rather than in the web process.

Proxy and relay routing

Some organizations send mail through a hardened relay or a cloud mail gateway reached via an egress proxy. Decide whether OpenProject connects directly to the relay or through a proxy, and document the path for each environment. If mail fails with a network unreachable error in Compose, the official docs advise setting DNS on the worker service, so confirm that name resolution for the relay works inside the worker container and not only on the host.

Docker Compose docs

Certificate trust for internal mail servers

If your internal relay presents a certificate issued by a private certificate authority, the connection will fail until the OpenProject containers or hosts trust that root. Ask the mail team which CA signs the relay certificate and whether it chains to a root your image or host already trusts. Keep the trust change in configuration management so it survives image updates. Verify the trust with the mail health check after each change rather than assuming the relay is reachable.

Rules in air-gapped networks

In an air-gapped network there is no public internet, so the mail server is almost always internal and the SSRF allow list is the only route for outbound mail. Keep the allow list minimal and documented, and confirm that every host the mail test touches is on the internal network. Any step in the installation that normally pulls from a public registry is a separate question from mail, so plan it independently. Ask the team to confirm the mail path with a test message after the install is complete.

Questions teams ask before configuring OpenProject email

Can our internal team configure OpenProject email without outside help?

Yes, a team that already runs Linux services and Docker or packaged installs can usually set the SMTP values and run the mail health check alone. The harder part is usually outside OpenProject: the mail relay's authentication method, whether a relay accepts connections from your network, and the DNS and firewall rules that let the background workers reach it. Teams without someone who can change those controls, or who cannot read the logs from the worker containers, tend to get stuck on delivery failures rather than on the settings themselves. An outside partner is most useful when several of these owners must agree on changes.

What drives the effort of an OpenProject email setup?

The main drivers are the number of mail environments, the network controls between the instance and the mail server, and the approval steps on the mail side. A single production instance with one relay that accepts the server's address is a small task. Separate staging and production environments, relays that need new credentials or allowlist entries, and mail teams that require a change request for every firewall rule add review cycles that are often longer than the technical work. Ask for the scope to list each environment and each approval gate, because those items decide the timeline more than the settings do.

What do we need to provide before the email work starts?

Plan to provide the mail server host name and port, the authentication method and a service account for OpenProject, and the sending domain and sender address your policy allows. You also need the name of the owner of the firewall or network policy between the OpenProject hosts and the mail server, and a test mailbox that the team can read during verification. Confirm with your mail administrator whether the relay requires TLS, which certificate authority signs it, and whether it accepts traffic from the address range where OpenProject runs. Missing items usually show up as blocked test messages, so collect them in writing before the first change.

Does OpenProject support email encryption beyond TLS?

OpenProject email encryption is optional, and the documentation states that GPG and S/MIME end-to-end encryption are not supported. In practice, the transport between OpenProject and your mail server is protected by the TLS settings you configure, and that is the control to verify with your mail team. If your policy requires message-level encryption of notification content, that requirement needs a decision before go-live, because it cannot be met by configuring OpenProject alone. Record the decision in your data protection documentation, and ask your compliance lead how notifications containing project data should be handled.

Why does email fail with a network unreachable error in Docker Compose?

Delivery runs in background workers, so a failure that appears in the web interface may actually come from the worker container's network. The Docker Compose documentation advises setting DNS on the worker service when SMTP fails with a Network is unreachable message. Check the mail health check first, then inspect the worker logs to see whether the host name resolves from inside the container. Verify the resolver settings against your own network before changing them, because the correct DNS servers depend on the environment.

How do we confirm the mail settings work after go-live?

Start with the mail health check at the monitoring endpoint, which exposes the status of the SMTP configuration. Then trigger a real notification, such as an assignment or a password reset for a test account, and confirm the message arrives in the test mailbox with the expected sender and headers. Repeat the check after each update, because a changed relay or certificate can break delivery without any change to OpenProject. Record the results so that a later failure can be compared against a known good state.

What changes when we scale OpenProject or move it to Kubernetes?

Email becomes a question of which workers send mail and where they run. The scaling documentation explains that delivery runs in background workers, so every worker host or pod needs the same SMTP settings and must be able to reach the relay. In a Kubernetes deployment, the cluster's egress rules, DNS and any network policies apply to those pods, so the firewall review should be repeated for the new network path. Re-run the health check and a test notification after each move, and treat the old host's rules as temporary until the new path is confirmed. Ask your platform team to confirm where outbound traffic exits the cluster.

Do internal mail server addresses need an exception in the SSRF rules?

The mail server test can be blocked by SSRF protection when the relay is an internal address, so you may need to add it to the allowlist. Only allow the specific host and port your relay uses, and document who approved the entry. Keeping the allowlist narrow limits what an attacker could reach through an administrator's test action. Confirm the exact setting name and its behavior in the version you run, and review the allowlist again whenever the relay moves.

How DeployOpen scopes and delivers mail configuration

DeployOpen plans and implements self-hosted OpenProject inside your own infrastructure, and the outbound mail work is scoped in writing before any configuration begins. The written scope names the mail provider, the SMTP host and port, the authentication and encryption mode, the sender address and the systems that will send notifications. It also records who approves DNS and mail-relay changes on your side, because a mail configuration usually depends on records and allowlists that your messaging or network team controls. Most engagements are fixed-scope, so the deliverables, the test cases and the handover items are agreed before work starts.

During delivery, the work covers the SMTP settings in the OpenProject configuration, the network path from the background worker containers to your mail server, and verification through the mail health check at /health_checks/mail. Worker networking is tested from the worker itself, not from the web container, since the worker is where mail is sent. DeployOpen also confirms how the mail server test interacts with your SSRF rules and documents every setting that was changed, so your operations team can reproduce the configuration after an upgrade or a host rebuild. The handover includes a short runbook covering a failed test, a DNS change and a rotated mail credential.

Ongoing support is available as a retainer for teams that want someone to review mail configuration after upgrades, mail provider changes or new worker deployments. A retainer covers the review and retesting of those changes, while your team keeps ownership of the mail provider and the DNS zone. Ask any provider you evaluate to state in writing which items are delivered, which are your responsibility and how a retest is handled after a change.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.