Connecting the Dovecot IMAP backend to OX App Suite

This page explains what OX App Suite expects from a Dovecot IMAP backend, how to configure and verify the connection, and where Dovecot Pro support fits. It is written for teams planning the mail backend on Kubernetes.

On this page

How OX App Suite uses a Dovecot IMAP backend for mail

If you run or plan OX App Suite v8 on Kubernetes, you need a mailbox store that speaks IMAP. OX App Suite depends on its IMAP server for mailbox access, user flags, ACL-based sharing and the execution of Sieve rules on delivery. The supported connection is IMAP for mailbox operations plus Sieve managed through the ManageSieve protocol, with the Sieve engine (Pigeonhole for Dovecot) running next to the IMAP service. Dovecot is the backend this page covers, but the requirements that matter here are protocol features, not the product name: user flags and keyword search, ACLs for shared folders, and a Sieve server that can handle the extensions App Suite uses.

The exact Dovecot and Pigeonhole version pairing, and any OAuth passdb settings for single sign-on, must be confirmed before you build. The facts available to this page do not list Dovecot or Pigeonhole versions, so check the current OX App Suite requirements for the supported mail backend versions, then confirm the matching Dovecot and Pigeonhole releases and their configuration with the vendor documentation. Ask Open-Xchange which passdb and userdb mechanisms they have tested with App Suite v8, and whether token-based login is supported for your identity provider and your chosen release.

Plan the mail backend as a dependency of several features, not only of mailbox reads. Categories, server-side filters, mail push and shared accounts each place their own demands on IMAP and Sieve, and a gap in one of them often shows up late in testing. Before you commit to a design, write down which App Suite features you will enable, check each one against the requirements, and run a test mailbox through every feature in a lab that mirrors your production identity setup.

What the platform and mail backend need before configuration starts

Dovecot configuration goes faster when the cluster, data services and mail server are settled first. The cards below cover what OX App Suite v8 expects from its platform, and the mail-side facts your team should confirm before anyone edits a Dovecot or Sieve setting.

Kubernetes versions and Helm

OX App Suite v8 is delivered as Helm charts that reference container images, so the cluster and the deployment tooling both have version floors. Confirm that your Kubernetes version falls within the N-1 or N-2 range the requirements support, and that the Helm client on your deployment host is 3.17.0 or newer. Check the version before you build the values files, because an upgrade later changes both the cluster and the chart pinning.

OX requirements

Istio or ingress-nginx

The v8 requirements call for Istio, supporting the latest Istio release plus two prior versions. Where Istio cannot be used, a basic ingress-nginx option exists. Decide which path applies before you design routing, TLS termination and the path from clients to the middleware, and confirm with Open-Xchange which features your chosen path covers.

Redis, MariaDB and file storage

Redis 7.4.x handles caching and session storage, and the littlered operator deploys it by default, although unmanaged or custom Redis is also configurable. MariaDB with InnoDB is the primary data store, with supported lines 10.6.x, 10.11.x, 11.4.x and 11.8.x, and Galera Cluster is supported. Persistent data such as Drive files and PIM attachments needs a distributed file system: NFS for small to mid-size deployments, or object storage such as AWS S3, Ceph RadosGW or Scality RING for larger ones.

IMAP and ManageSieve reachability

Before setting any Dovecot option, confirm that the middleware pods can reach the IMAP and ManageSieve endpoints on the mail backend, and that the network policies and firewalls allow those ports in both directions. Test from inside the cluster, using the same namespace and egress path the middleware will use, because a successful test from a laptop proves little. Record the hostnames the middleware will resolve.

TLS trust for mail connections

The middleware must trust the certificate chain presented by the IMAP and ManageSieve services. Self-signed or internal certificate authorities are common in mail estates, so add the CA bundle to the middleware trust store and verify the full chain, including intermediates and hostnames, before enabling any mailbox. A certificate that a laptop accepts can still fail inside a pod that has its own trust store.

Test mailboxes and license terms

Create a small set of test mailboxes that exercise the features you plan to enable, such as user flags, shared folders, filters and quota reporting, so that each change has a known target. Separately, agree the license terms in writing before go-live. Open-Xchange's Operations Guide notes that certain modules or features may carry custom packaging, limitations or separate fees set in the license agreement, so ask which features your agreement covers.

Operations Guide

How the middleware, Dovecot and supporting services connect

The diagram starts with browser and mobile clients reaching the OX App Suite frontend through ingress, which passes requests to the middleware. The middleware is the component that talks to Dovecot over IMAP and ManageSieve, keeps caching and session state in Redis, and stores its primary data in MariaDB, while attachments and other persistent files sit on a distributed file system. The trust boundary around the Kubernetes cluster is the key line to review: every protocol path that crosses it needs a confirmed port and TLS mode, and the reader should check whether the mail backend is reachable only from the middleware and whether the IMAP and ManageSieve connections are encrypted end to end.

Request path from clients through the cluster to the Dovecot mail backend.

How to configure the IMAP and Sieve connection in order

This sequence takes a Dovecot server from a clean install to a state where OX App Suite can log in, list folders, change flags and store Sieve filters for a test account. Each step closes with a check you can run before moving on.

  1. Confirm the supported version pairing

    Before touching the mail server, check the OX App Suite release you plan to run and the Dovecot and Pigeonhole versions that Open-Xchange lists for it in the requirements and support documentation. Your platform team owns this step, and the output is a written version record that the mail team and DeployOpen can both reference. Ask for the exact Dovecot and Pigeonhole versions in writing, because the mail backend is the component most likely to fall out of step with an App Suite upgrade. You know it is done when the version record names one OX App Suite release, one Dovecot version and one Pigeonhole version, and all three are confirmed as a pair.

  2. Enable IMAP user flags and ACL support

    On the Dovecot server, turn on IMAP user flags and keyword handling, and enable the ACL plugin so that shared folders and delegated access can be managed through IMAP. The mail administrator makes these changes in the Dovecot configuration and restarts the service according to your change process. Confirm the exact configuration keys against the Dovecot release you selected, since key names differ across major versions. You know it is done when a test IMAP session can set and read a custom keyword on a message and when the ACL capability appears in the server capability list.

  3. Enable ManageSieve with Pigeonhole

    Install the Pigeonhole extension that matches your Dovecot version, then enable the ManageSieve service and the Sieve extensions that OX App Suite relies on for mail filters and categories, including imap4flags. The mail administrator sets the listening port and the authentication method for ManageSieve, which should match the IMAP authentication setup. You know it is done when a ManageSieve client can authenticate and when the server advertises the extension list, including imap4flags, in its capability response.

  4. Set the middleware connection and TLS

    Configure the OX App Suite middleware to reach Dovecot for IMAP and ManageSieve over TLS, using the hostnames and certificates your internal certificate authority issues. The platform team sets these values in the Helm chart configuration and the mail team confirms the certificate chain is trusted from inside the cluster. Plaintext connections should be disabled on both services unless a documented exception exists. You know it is done when the middleware pod opens both connections with certificate verification enabled and the logs show a successful handshake.

  5. Create a test account with a known layout

    Create a dedicated test mailbox on the Dovecot server with a fixed set of folders, such as Inbox, Sent, Drafts, Trash and two custom folders, plus a few seeded messages with known subjects. The mail administrator creates the account and the test owner records the folder names and message count, so later checks can be compared against a known baseline. Do not use a real employee account. You know it is done when a manual IMAP login returns exactly the folder list and message counts recorded in the baseline.

  6. Verify login and folder listing

    Using the test account, run an IMAP login from the middleware network path and then list all folders, including the nested ones. The platform engineer performs the test and compares the output with the baseline from the previous step. Watch for folder separator mismatches and encoding issues in non-ASCII folder names, since these are common causes of missing folders in a web client. You know it is done when the login succeeds over TLS and the folder listing matches the baseline exactly.

  7. Verify a flag update

    With the same test account, select a seeded message, set a standard flag and a custom keyword, then read the message back in a new session. The check confirms that flag writes persist and that keywords survive a reconnect, which is what mail categories depend on. Record the result against the baseline message. You know it is done when the flag and the keyword are both present on the message in the new session and the message count is unchanged.

  8. Upload and validate a Sieve script

    Upload a short, clearly named test script through ManageSieve, using a rule that moves messages with a known subject into a test folder. Ask the server to validate the script before activating it, then send a message with the matching subject and confirm it lands in the expected folder. The mail administrator runs the upload and the platform team confirms the result from the OX App Suite side once the middleware is connected. You know it is done when the script validates on the server, the message is filed as expected, and the script can be read back unchanged.

Which mail attributes map to which OX App Suite settings

This table compares each identity and data item shared between OX App Suite and the IMAP backend, showing what App Suite reads or writes and what the mail server must provide. Use it as a checklist before go-live, and confirm every attribute name against your own Dovecot and App Suite configuration rather than relying on defaults. The main takeaway is that most failed integrations trace back to a login name, folder or flag that the two systems interpret differently.

AttributeOX App Suite reads or writesMail server must provide
Login nameSends the login name at IMAP authentication and matches it to the stored user recordA passdb that accepts the same login string App Suite sends, confirmed in your authentication settings
Mail addressUses the primary address for sending identity, folder ownership and mapping to the mailboxA mail address that resolves to the same account as the login name, including any alias or domain rewriting you apply
Folder structureReads the folder tree and standard folders such as Inbox, Sent and Drafts, and maps them to its own folder viewsConsistent folder names and hierarchy separator, confirmed in your namespace configuration
User flags for categoriesWrites user flags or keywords to tag messages when categories are enabled, and searches on themIMAP user flag and keyword support enabled for the mailboxes in use, confirmed against the categorization requirements
ACL entries for shared accountsChecks access rights on shared or function mailboxes before showing or changing foldersACL support enabled on the relevant mailboxes, with rights granted per user or group that match the App Suite sharing model
Sieve script namesLists, creates and edits user rules as named scripts over ManageSieveA ManageSieve service and script storage that keep script names stable, with the active script identified by its state
Sieve active stateReads which script is active and activates or deactivates rules when the user changes themSupport for marking exactly one script active per account, confirmed in your Pigeonhole version
Quota reportingReads mail quota usage and limits to display storage status to the userAn IMAP quota resource reported for each account, confirmed against your quota plugin and App Suite quota settings

Where OAuth passdb and push change the design

OAuth-based password databases and push listeners add design decisions that have to be settled before the build starts, because they change how a user's login is checked and how long the mail backend holds on to access. The first decision is how credentials are validated. With a conventional passdb, Dovecot checks a password against a local or directory store. With an OAuth passdb, Dovecot validates a token against an identity provider, so the identity provider, its token lifetimes and its revocation behavior become part of the mail path. Confirm which OAuth settings the current Dovecot and OX App Suite documentation supports for your identity provider before you commit to that model.

The second decision is whether persistent connections run on stored user credentials or on tokens. Push listeners stay open after the user's session ends, so they need some way to authenticate when nobody is logged in. Storing a user's password or refresh credential for that purpose widens the set of places a secret can leak from, while a token with a finite lifetime needs a renewal path that does not fail silently. Check how push authentication is handled in the current release, and read the sibling topic on mail push for the trade-offs of each option, and the credential vault topic for how offline access reaches a mailbox.

The third decision is which node runs the listeners. Push listeners are kept on the middleware, so their placement affects connection counts to Dovecot, failover behavior after a node restart and how many IMAP sessions one node holds open. Plan this alongside the Kubernetes layout described in the deployment section, and ask Open-Xchange to confirm how listeners are distributed across nodes in your version. Treat the push and OAuth behavior as a checklist item to verify against current documentation in a test environment, not as a fixed property of the platform.

Security settings for the mail backend connection

The connection between OX App Suite and Dovecot carries every mailbox read, every rule change and every credential the middleware uses. The six controls below cover the transport, the account, the network path, the credentials, the audit trail and the storage beneath them. Confirm each setting against your own Dovecot configuration and your compliance requirements before you sign off the design.

TLS on every connection

Require TLS for IMAP and ManageSieve sessions between the App Suite middleware and Dovecot, so credentials and mail content never cross the cluster network in cleartext. Check that Dovecot offers TLS only on the expected ports, that the certificate chain is trusted by the middleware pods, and that plaintext login is disabled for the connection. Confirm the exact TLS settings in your Dovecot configuration and in the App Suite mail configuration.

Dedicated least-privilege service account

Create a separate service account for the middleware instead of reusing an administrator or a personal mailbox. Grant only the mailbox access, ACL rights and Sieve management rights the integration needs, and keep master or admin accounts out of the normal request path. Ask your team to document which rights the account holds and who can change them.

Network restriction on mail ports

Limit which source networks can reach the IMAP and ManageSieve ports, so only the App Suite middleware subnet and approved administration hosts connect. In Kubernetes, this is usually expressed as network policies or firewall rules around the Dovecot service. Confirm the allowed source ranges with your network team and test that connections from other workloads are refused.

Stored and master credential handling

Decide whether the middleware uses a master password or stores individual user credentials for background work such as push listeners, scheduled tasks and data export. A master password gives broad access if it leaks, while stored credentials widen the set of secrets to protect and rotate. Document the choice, where secrets are held, how they are encrypted at rest, and how rotation works.

Audit logging of logins and scripts

Enable logging of successful and failed IMAP logins and of changes to Sieve scripts, then forward those logs to your central log store. Confirm which events Dovecot and the App Suite middleware record, how long logs are kept, and who can read them. Without these records, you cannot show when a rule was changed or when a service account was misused.

Encryption of mail and attachment storage

Mailboxes on the Dovecot side and the persistent storage that holds attachments and file data both need encryption at rest. Check whether encryption is provided by the storage layer, the filesystem or the object store, and confirm key management and backup handling. Ask your storage team to verify these settings against your compliance requirements, since the App Suite requirements cover the storage type but not every encryption option.

App Suite requirements

Why the connection fails and how to fix it

This table lists the failures teams most often hit when OX App Suite is connected to a Dovecot backend, with the likely cause and the first check to run for each. Read it top to bottom when a login, mail fetch, category or Sieve action breaks, and start with the first check before changing configuration.

SymptomLikely causeFix and first check
Middleware pods reject the IMAP or ManageSieve certificateThe internal certificate authority is not in the middleware trust store, or the certificate name does not match the host used in configurationCheck the certificate chain and subject name from inside a middleware pod, then add the CA to the trust bundle and match the configured hostname
Sieve rules cannot be saved or listed from App SuiteManageSieve port is not reachable from the cluster network, often blocked by a network policy or a firewall between the cluster and mail hostsFrom a middleware pod, test a TCP connection to the ManageSieve port on the mail host, then correct the network policy or firewall rule
Backend features missing after an upgradeDovecot or Pigeonhole version is outside the set supported for the App Suite release in useCompare the installed Dovecot and Pigeonhole versions with the requirements for your App Suite release, and confirm the pairing with Open-Xchange before changing either side
Mail categories do not appear or do not sortThe IMAP server lacks user flag or keyword search support, or the Sieve side does not enable imap4flagsRun an IMAP capability check for user flags and keyword search, then confirm the imap4flags extension is enabled on the Sieve server
Shared mailbox is visible to the owner but not to the delegateACL entries were not written for the shared account, or the delegate identity does not match the IMAP login nameInspect the ACL list on the shared folder as the owner, then confirm the delegate's login name matches the identity App Suite uses
Sieve script rejected with an unknown or unsupported extensionThe script uses an extension that is not enabled in the Pigeonhole configurationRead the exact error from the ManageSieve response, enable the named extension in the Sieve server settings, and reload the service
Logins fail after changing passdb or OAuth settingsStale credentials stored for users, a changed token validation endpoint, or a mismatch in the OAuth client settingsTest one account with the IMAP login tool, then review the passdb order, token issuer and client settings, and ask affected users to re-authenticate

When a single Dovecot deployment is enough and when to plan vendor support

A small or mid-size deployment run by your own team usually means one Dovecot IMAP and Pigeonhole Sieve service behind OX App Suite, operated by people who already run mail or directory services. The work here is mostly configuration correctness: user flags and ACLs that App Suite depends on, Sieve scripts that must be readable by the ManageSieve path, and authentication settings for the OAuth passdb path if you use it. Your team can own this if it has capacity for patching and restore testing.

  • Configuration ownership: Keep a written record of the IMAP flags, ACL settings and Sieve extensions App Suite relies on, so an upgrade does not silently remove them.
  • Upgrade rhythm: Plan Dovecot and Pigeonhole upgrades alongside App Suite release changes, since both move on their own schedules.
  • Restore testing: Test restores of mailbox data and Sieve scripts on a schedule, not only after an incident.
  • Community resources: Confirm which fixes you need are available through the release channel you use, and who on your team reads security notices.
  • Staffing cover: Identify who can act during an outage, because a single administrator is a single point of failure.

Before relying on this model, confirm the Dovecot and Pigeonhole versions your App Suite release requires with your DeployOpen scope and the Open-Xchange documentation.

What buyers ask before connecting Dovecot to OX App Suite

What drives the effort and cost of connecting Dovecot to OX App Suite?

The effort follows the number of mailboxes, how many mail servers or Dovecot nodes sit behind the platform, and how much of the mail feature set you switch on. The core connection covers IMAP access with user flags and ACLs, Sieve through Pigeonhole, and the authentication model for logins. Each optional feature adds work: server-side rules, push listeners, categories, shared accounts, authenticity checks, antivirus and quotas each need configuration and testing. Your existing directory, identity provider and storage layout also change the cost. Ask any quote to list each feature as a separate line so you can see which items are in scope and which are deferred.

Can our own team connect Dovecot to OX App Suite without outside help?

A team that already runs Dovecot, Sieve and Kubernetes can do much of the work, but the connection touches several layers at once: the App Suite deployment on Kubernetes, the mail backend, identity and the file storage behind it. The OX App Suite v8 documentation requires Helm 3.17.0 or newer and specifies Istio or ingress-nginx, Redis 7.4.x and a MariaDB version from its supported list, so the platform side needs skills in those components. Before deciding, check whether your engineers have time to test each mail feature end to end. Many teams keep the mail server work in house and bring in a partner for the platform rollout or for hardening.

How long does a typical Dovecot connection take, and what sets that duration?

No duration figure is supplied for this work, so confirm timelines with any provider against a written scope. The main duration drivers are the number of features enabled, the size of the mailbox estate, the number of environments you need (lab, staging and production) and how many systems must be integrated, such as identity, storage and monitoring. Testing time often takes longer than configuration time, particularly for client push, categories and shared mailboxes, which depend on how clients behave. Ask for milestones that name the test cases each stage must pass.

What must we provide before the Dovecot connection work starts?

Plan to supply access and decisions before work begins. You will need the target Kubernetes environment and its cluster version, a decision on ingress (Istio or the basic ingress-nginx option), a Redis approach (the default operator-managed setup or your own), and a MariaDB deployment from the supported versions. Persistent data such as Drive files and attachments needs a distributed file system: NFS for smaller deployments or object storage such as AWS S3, Ceph RadosGW or Scality RING for larger ones. On the mail side, provide your IMAP and Sieve server details, Dovecot and Pigeonhole versions, test accounts, the authentication method and the list of features you want enabled.

Is Dovecot Pro required to connect OX App Suite to Dovecot?

No. The OX App Suite requirements describe IMAP with user flags and ACLs, Sieve through Pigeonhole, and OAuth passdb support as what the mail backend needs, and they do not make the commercial Dovecot Pro edition a prerequisite. Dovecot Pro adds vendor support and is most relevant when you run at scale and want a single accountable supplier for the mail backend. Confirm with Dovecot which edition provides the features and support level you need, and compare that against the cost of an internal on-call rota for the mail servers.

How can licensing terms affect which OX App Suite modules we can use?

Open-Xchange's Operations Guide states that the right to use certain modules or features may be subject to custom packaging, limitations or separate fees set in the license agreement. This means the AGPL-3.0 licensed source code on GitHub does not by itself settle which modules you may run in production. Before you design the mail integration, list every module and feature you plan to use, then confirm in writing which ones your license covers. Features such as categories, mail authenticity or the credential vault should be checked, because a feature you cannot license can change the design of the mail backend.

What should we check after the Dovecot connection goes live?

Start with a test plan that covers the mail features you enabled, not only basic send and receive. Verify IMAP folder access and flags, ACL behavior on shared folders, Sieve rules created in the web client and executed on delivery, push notifications on mobile and desktop, category search, quota reporting and the antivirus path if you enabled it. Then review logs and metrics for the mail backend and the App Suite pods, confirm backup and restore for the storage layer, and document the upgrade order for Dovecot, Pigeonhole and App Suite. Recheck the Open-Xchange support commitment when you plan upgrades, because standard releases are supported for 12 weeks and LTS releases have their own end dates.

Where do the operational risks sit once the connection is running?

The main risks are mismatched versions between Dovecot, Pigeonhole and App Suite, which can break features that depend on Sieve or flags, and expired or unsupported release lines. Credentials used for push and background features are a security concern, since storing them changes the exposure of the mail system. Storage performance also matters, because Drive files and attachments depend on the distributed file system you chose. Put these items on a regular review list and assign an owner for each one before go-live.

How DeployOpen scopes and delivers the mail backend connection

DeployOpen plans the connection between OX App Suite and your Dovecot service as a written, fixed-scope engagement inside your own infrastructure. The work covers IMAP flags and ACLs, Sieve through Pigeonhole, passdb choices, push and the verification steps that show the setup behaves as your teams expect.

How we scope

  • Inventory the mail features you need, such as categories, server-side rules, push and shared accounts, before choosing the backend configuration.
  • Confirm your Dovecot and Pigeonhole versions, passdb method and whether OAuth or stored credentials apply to your login model.
  • Agree the scope, deliverables and timeline in writing before any configuration work begins, with a quote following from that scope.

How we build

  • Configure IMAP user flags, keyword search and ACLs on the Dovecot side so the App Suite features your scope requires can function.
  • Set up Sieve through Pigeonhole and ManageSieve access, then test that rules run on delivery and stay editable outside App Suite.
  • Test push, quota reporting and authentication against a staging environment that mirrors your production mail and identity setup.

How we hand over

  • Document each configuration setting, its owner, and the reason it was chosen, so your mail team can review and reproduce it.
  • Deliver test results, including mail flag, filter and login checks, along with a list of open items that need your decision.
  • Walk your operations and security staff through the runbook covering restarts, version changes and rollback steps.

How we support

  • Ongoing support, upgrades and continuous testing for the mail connection are available as a retainer.
  • Plan Dovecot and App Suite upgrades against the release and support dates you confirm with Open-Xchange and your vendors.
  • Confirm with Open-Xchange and your Dovecot vendor which features need separate licensing or vendor support before you commit to a scope.

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.