How to add ClamAV scanning to OX App Suite attachments
A security or platform lead who must show that uploaded attachments and Drive downloads are scanned before users open them needs three things settled first. ICAP is the request-forwarding protocol that hands a file from the application to a scanning service, and ClamAV is the open-source engine that inspects it. The exact hook OX App Suite offers for ICAP must be confirmed in the Open-Xchange documentation for the release in use, because the integration point, supported options and configuration keys differ between releases and cannot be assumed from the general product description. This page covers the integration path, the prerequisites, the order of configuration, what is scanned, the sizing drivers, the security choices and the tests that prove scanning actually happens.
Start by confirming the release and the deployment model. OX App Suite v8 runs on Kubernetes from Helm charts, and the ICAP server and ClamAV become additional workloads in the same cluster or in a segment the cluster can reach. Confirm with Open-Xchange which ICAP server and ClamAV versions are compatible with your release, where the scanning call sits in the request path (attachment upload, Drive upload, Drive download, or all three), and what the middleware does when the scanner is unreachable or times out. That fail-open or fail-closed decision belongs to your risk owner, not to the platform team alone. Ask whether the ClamAV signature database is updated by a mirror you control, since an air-gapped or restricted network will need that mirror planned before the first deployment.
Test the path with known-safe and known-test files that trigger detection, then check the audit trail, the user-facing error and the behavior under load. Confirm which items are not scanned. Synced Drive items handled by desktop or mobile clients may bypass the server-side hook, so the scope statement you give auditors must match what your configuration covers. Size the scanning service from your peak upload and download volume, the largest attachment size you allow, and the number of concurrent scans, and ask the vendor or your own benchmarks to confirm the figures for your file mix. Keep a retest in the change calendar, because signature updates and release upgrades can change behavior without any change to your own code.
What you need in place before connecting a scanner
A scanner cannot start until the OX App Suite platform it sits beside is stable and the storage holding attachments and Drive files is reachable. The cards below cover the supported platform baseline and the items you must confirm with vendors and in your own network before any integration work begins.
OX App Suite v8 on Kubernetes
Scanning hooks into the middleware that serves attachments and Drive downloads, so the scanner has to match the deployment you actually run. OX App Suite v8 is designed for Kubernetes and delivered as Helm charts that reference container images. Confirm which v8 release you run, and plan the scanner change as a release item rather than a live edit to the running cluster.
Requirements docsHelm 3.17.0 or newer
The Helm client that deploys and upgrades the App Suite charts must meet the minimum version in the requirements. Check the version on the machine or pipeline that runs deployments, not only on a workstation. If the scanner is added through chart values or an additional workload, the same Helm client must be able to render and roll it out.
Ingress: Istio or ingress-nginx
Your ingress choice determines how traffic reaches the middleware, and therefore where any scanning decision is enforced. Istio is the documented path, with the basic ingress-nginx option available where Istio cannot be used. Confirm which one you run and whether it affects the path between the middleware and the scanner, including any mesh policy applied to that traffic.
Operations GuideDistributed file system for attachments
Attachments and OX Drive files live on a distributed file system, which is the content a scanner must read. Use NFS for smaller deployments or object storage such as AWS S3, Ceph RadosGW or Scality RING for larger ones. Confirm where your PIM attachments and Drive files are stored, and how the scanner service will access them or receive them, since that choice drives both throughput and access control.
ICAP server product and version
ICAP is the protocol the platform uses to hand content to a scanner, and not every ICAP server behaves the same way. Confirm with the vendor which ICAP server product and version you will run, whether it supports the request and response modes you need, and how it reports a virus verdict back. Record the version in your change plan so later upgrades are tested against it.
ClamAV version and signature updates
ClamAV detects threats using signature databases that change frequently, so the engine version and update method matter as much as the install. Confirm the ClamAV version you run, how signatures are downloaded (mirror, proxy or direct), how often they refresh, and what happens when an update fails. Stale signatures leave new threats undetected without any visible error.
Network paths and TLS to the scanner
The middleware must reach the scanner over a permitted path, and the connection carries customer documents, so it needs protection. Map the required network flows between the middleware pods, the ICAP server and ClamAV, and write them into your network policies. Decide with your security team whether the ICAP connection uses TLS, which certificates it trusts, and how those certificates rotate.
Requirements docsHow an attachment moves through the scanner
The flow starts when a user uploads an attachment or downloads a Drive item in the browser, and the request reaches the OX App Suite middleware. Before the file is released, the middleware hands it to an ICAP server in a separate scanning namespace, which passes it to ClamAV and returns a verdict that either allows or blocks the download. The ICAP hand-off is the step to confirm against the Open-Xchange documentation, including which operations trigger a scan and how the verdict is returned.
Attachment and Drive download path through the ICAP scanner, with the trust boundary marked.
What is scanned and what synced Drive items skip
Attachments in mail are the most common place to plan a scan, but the trigger point matters. Verify whether the scan runs when the mail backend delivers a message into the mailbox, when a user sends from the web client, or both. Also confirm whether mail that arrives through other paths, such as connectors or imports, passes the same check.
- Delivery path: Confirm whether inbound messages are checked before they reach the mailbox or only when a user opens the attachment.
- Send path: Check whether outgoing attachments are scanned before submission and what the user sees if a file is blocked.
- Mail from other systems: Identify whether messages arriving through connectors or migration imports skip the check.
- Stored messages: Ask whether mail already in mailboxes before the scanner was enabled is ever rescanned, and how.
- Quarantine and notice: Confirm where infected items go and how users and administrators are notified.
Check these answers in a staging environment with a test file before you rely on them for inbound mail.
Uploads through the Drive web interface are the path most teams expect to be scanned. Verify that the upload request passes through the ICAP-connected path and that the scan completes before other users can access the file. Also check how large files are handled, since scanners often set size limits that differ from Drive quotas.
- Upload trigger: Confirm whether the scan runs on every upload or only on certain file types or sizes.
- Availability window: Check whether a file can be shared, previewed or opened before the scan result returns.
- Chunked or resumable uploads: Verify that large uploads are scanned as complete files rather than as partial chunks.
- Size limits: Ask what happens to files above the scanner's maximum size, and whether they are rejected or accepted unscanned.
- Sharing links: Confirm whether files uploaded through public or guest links are scanned.
Test each upload type with the EICAR test file, a large file and a shared link, and record the outcome for each release you run.
Downloads through the web interface are where a scan can run on demand, and the design choice determines whether files stored before the scanner existed are protected. Verify whether the middleware sends the file to the ICAP server at download time, uses a stored verdict, or relies on an upload scan alone. Each choice changes response time and what happens to older files.
- Scan at download: Confirm whether every download is sent to the scanner or only files that have no recorded result.
- Stored verdicts: Ask how scan results are kept and when a changed file is scanned again.
- Preview and inline view: Check whether previews, thumbnails and document views are covered, since they can open a file without a separate download.
- Blocked download behavior: Confirm the message the user receives and whether the event is logged for administrators.
- Added wait: Measure the delay on typical file sizes during testing, because scanning at download adds time to each request.
Ask Open-Xchange for the download code path that applies to your release, and test previews separately from the download button.
Desktop and mobile clients synchronize files through their own mechanisms and may not call the same endpoints as the browser. Verify whether sync uploads and downloads pass through the ICAP check at all, and whether items already on a device are rescanned. Treat sync as a separate path until Open-Xchange confirms otherwise, because this is where protection is most often assumed without testing.
- Sync traffic path: Confirm whether the sync protocol reaches the same scanning hook as the web interface.
- Items outside the scan: Ask which synced item types or sync-only operations, such as placeholders or metadata updates, are not scanned.
- Files already on devices: Identify whether a file scanned on the server is trusted on the device and whether a later verdict reaches clients.
- Offline copies on mobile: Check whether files kept for offline use are downloaded without a scan event.
- Client versions: Record the desktop and mobile client versions you test, since sync behavior can change between releases.
Build a sync test matrix covering each client platform with a new file, a changed file and a file that is already on the device.
Connecting ICAP and ClamAV to OX App Suite in order
This sequence adds attachment and Drive download scanning to OX App Suite by confirming the hook your release supports, then wiring a ClamAV-backed ICAP service into the cluster with controlled network access, verdict handling and tested blocking behavior. It ends with evidence that scans run, results are logged and infected downloads are refused.
Confirm the scanning hook for your release
Before any deployment, the platform engineer and the OX administrator confirm with Open-Xchange which scanning hook, configuration keys and ICAP options the installed App Suite release supports. Check the release notes and the documentation for your exact version, not a neighboring one, and record the supported Kubernetes and Istio versions from the requirements page. Ask Open-Xchange to confirm whether attachment uploads, Drive downloads and synced Drive items each pass through the hook. Done when you have a written note listing the hook, the release and the item types covered.
Deploy ClamAV and the ICAP server
The cluster administrator deploys the ICAP server and ClamAV as workloads in a dedicated namespace, using container images from a registry you control and the Helm or manifest method your team already uses. Enable signature updates through the freshclam process and confirm the update source is reachable from the cluster or from an internal mirror. Set resource requests and limits after reviewing how your OX App Suite deployment is sized, and confirm sizing with your vendor rather than assuming it. Done when the ICAP service reports healthy, the ClamAV daemon loads its signature database, and a test scan of an EICAR-style test string returns a detection.
Restrict network paths and enable TLS
The security engineer writes network policies so that only the App Suite middleware pods can reach the ICAP service port, and only the ICAP service can reach the ClamAV daemon port. Where the cluster runs Istio, decide whether mutual TLS between the middleware and the scanner is enforced by the mesh or by the application, and document which option applies. Issue certificates from your internal CA, mount them into both workloads and confirm the connection fails when a non-approved pod attempts to connect. Done when a connection attempt from an unapproved namespace is denied and a connection from the middleware completes over TLS.
Configure scanning settings and verdict handling
The OX administrator sets the scanning endpoint, timeouts and maximum object size in the App Suite configuration supplied for your release, then defines what happens for each verdict: clean, infected, scanner unavailable and scan error. Agree the fail-open or fail-closed behavior with the security owner and record the reason, because it determines whether users can download files while the scanner is down. Confirm which item types are scanned and which skip scanning, including synced Drive items, and document the exceptions. Done when the configuration is applied to a non-production environment and a restart or reload shows the values in effect.
Run a standard test file in non-production
In a non-production tenant, a tester uploads the standard antivirus test file as an email attachment and as a Drive file, then downloads it through the normal interface. The test should be run once per item type that your configuration covers, and once for a clean file as a control. Record the time of each upload, the file name, the user account and the observed result. Done when the infected test file is detected in each covered path and the clean control file passes without any error or delay that users would notice.
Verify logs and refusal for a test user
The operations engineer checks that each scan produces a log entry in your central logging system with the item identifier, user context, verdict and scanner version, and confirms that no file contents or credentials are written to the log. A standard user account then attempts to download the infected test file and must receive a refusal message rather than the file content. Repeat with the scanner stopped in the test environment to confirm the fail-open or fail-closed behavior matches the documented decision. Done when logs, refusal and failure behavior all match the written verdict policy.
Sizing the scanning service for your upload and download load
Scanner capacity follows the volume and shape of traffic that passes through ICAP, not the number of mailboxes. Before you choose replica counts, measure how many attachments users send and receive, how many files they upload to and download from Drive, and how large those files are. Size distribution matters more than averages: a few very large files can hold a scanner worker far longer than hundreds of small ones. Also count concurrent sessions at peak, because each open browser or sync client may trigger several scans in a short burst. Sync client traffic deserves separate attention, since desktop clients can repeat requests on every change. Timeout settings on the ICAP and ClamAV side determine how long a slow scan can tie up a connection, and a short timeout under load can turn scanner delay into failed downloads.
No sizing figures are given on this page. Ask the scanner vendor and Open-Xchange for their measured throughput per worker, memory and CPU guidance, and any documented limits on maximum file size and concurrency. Then run a load test using a realistic mix of your own file types and sizes, with the signature update running in the background, and record latency, error rates and queue depth at target peak. Only after that test should you set the number of replicas, and you should leave headroom for growth and for a node failure.
Setup work is largely one-time: designing the integration, agreeing which content types and Drive paths are scanned, documenting exceptions for synced items, configuring timeouts and failure behavior, and testing infected, clean and oversized samples end to end. Confirm with Open-Xchange which scanning paths apply to your release, since the scope of ICAP checks for attachments and Drive downloads must be verified in your version's documentation rather than assumed.
Recurring work is where long-term cost sits. ClamAV signature updates need a scheduled window, a rollback plan and monitoring that alerts when definitions go stale. Scanner and ICAP component upgrades must be tested against the App Suite release you run, and monitoring for queue length, scan latency and error rates needs an owner. Ask any implementation partner to price these recurring tasks separately from the initial build, and to state what their retainer or support covers.
Content types and the scan decision for each
This table maps each content type that reaches OX App Suite to the trigger you need to confirm, whether a scan is expected, and the action on detection and on scanner error. Where the documented behavior does not settle the answer, the cell lists what to confirm with Open-Xchange and record in the design document before any scanning service is sized.
| Content type | Trigger to confirm | Scan expected | Action on detection and scanner error |
|---|---|---|---|
| Mail attachments | Whether the scan runs at delivery, at send or when the attachment is opened, and which path the ICAP call takes | Confirm with vendor | Confirm whether the message is quarantined, flagged or delivered with a stripped attachment, and whether a scanner timeout fails open or closed |
| Drive uploads | Whether the upload request calls the ICAP service before the file is written to the filestore | Confirm with vendor | Confirm whether the file is rejected, held in a pending state or stored with a warning, and how the user is told |
| Drive downloads | Whether each download is scanned on the fly or only files scanned at upload are served | Confirm with vendor | Confirm whether a download is blocked and what error the user sees when the scanner is unreachable |
| Synced Drive items | Whether desktop or mobile sync clients trigger the same scan path as the web interface | Confirm with vendor, likely excluded from scanning | Record whether synced items skip scanning, and whether that gap is covered by scanning at upload or by endpoint controls |
| PIM attachments | Whether calendar and contact attachments pass through the same ICAP integration as mail and Drive | Confirm with vendor | Confirm the detection action and whether an attachment can be opened while a scan is pending |
| Documents files | Whether office files opened and edited in Documents are scanned on save, on open or not at all | Confirm with vendor | Confirm the save behavior and what happens to an edit session when the scanner returns an error |
Security choices in the scanner design
The scanner sits in the download path, so its failure behavior, its policy controls and its handling of infected files shape the risk as much as the scanning itself. Each card below is a decision your security and platform teams should settle and test before the scanning service goes live.
Fail closed or fail open
Decide what happens when the ICAP server or ClamAV cannot return a verdict, such as a timeout, a crash or a full queue. Failing closed blocks the download until a scan completes, which protects users but makes scanner outages visible as download failures. Failing open lets the file through with a log entry, which keeps mail and Drive working but means unscanned files reach users. Write the choice down per file type and per channel, and test it by stopping the scanner during a download.
Ownership of the scanning policy
Identify who may change which files are scanned, the size limits, the failure mode and the action taken on a detection. Policy changes should go through the same change control as other security settings, with a named approver and a record of the previous value. Confirm in your environment whether the administrative interface can alter scanning settings, and restrict that role to the people who own the control rather than general tenant administrators.
Encryption between middleware and scanner
Traffic carries full attachment content from the App Suite middleware to the ICAP server, so it is sensitive data in transit. Decide whether that hop uses TLS or runs only on a segregated cluster network, and whether the ICAP server authenticates the middleware. Check the ICAP and ClamAV deployment documentation for supported transport options, and confirm the network policies that restrict which pods can reach the scanner.
Detecting a stale signature database
A scanner with old signatures reports clean files it should have caught, so freshness is a security control in its own right. Define how often the signature database must update, which metric or health check reports the database version and last update time, and what alert fires when the age exceeds your threshold. Ask the vendor or project how update failures appear to the ICAP layer, since a stale database may not cause an error.
Quarantine and release authority
Decide where infected or suspicious files go, how long they are kept and who may release one. Releasing a detected file should require a second person, a documented business reason and a logged decision. Restrict access to quarantined content to the security team, because the file is malicious by definition and the quarantine store holds user data that may still need protection.
Scan logs without user content
Scan logs help investigations, but they can quietly become a second copy of sensitive material if they record file bodies, extracted text or full filenames. Specify which fields are logged, such as a file identifier, the user or context, the verdict, the signature name and a timestamp, and confirm that the logging configuration does not capture payloads. Set a retention period for these logs in line with your data retention policy and restrict who can read them.
Common scanning failures and how to fix them
This table lists the failures most likely to appear when ClamAV scanning is added to OX App Suite over ICAP, with the probable cause and a first check for each. Work down the rows in order, since an unreachable scanner or a missing hook hides every other symptom.
| Failure | Likely cause | First fix to check |
|---|---|---|
| Middleware cannot reach the scanner | Network policy blocks the middleware pods, or the ICAP service name does not resolve in the namespace | Run a connection test from a middleware pod to the ICAP service name and port, then compare the service and network policy rules in the same namespace |
| Large files time out | ICAP timeout, proxy timeout and maximum scan size are set independently and do not match | Align the middleware timeout, the ICAP server timeout and the size limit, then test with a file just under the limit and one just over it |
| Signatures are stale | The freshener job (freshclam) fails, is not scheduled or cannot reach its mirror | Check the job's last successful run and its logs, then confirm the signature database version reported by the scanner matches the expected date |
| Uploads succeed without a scan | The scan hook is not enabled for that content type or upload path | Upload a known test signature (EICAR test string) through each path you expect to be scanned, such as mail attachments, Drive and PIM attachments, and confirm it is rejected |
| Sync clients skip the expected path | Desktop or mobile sync uses a route that does not call the middleware scan hook, or synced Drive items are handled differently | Compare the client's sync traffic with a browser upload of the same file, and confirm in the vendor documentation which item types a synced Drive file falls under |
| False positives on encrypted archives | Signatures flag encrypted or password-protected archives that cannot be inspected | Confirm the policy for encrypted archives with your security team, decide between blocking and allowing with a warning, and document the decision before changing the rule |
| Blocked downloads leave no trail | Scanner verdicts are not forwarded to the middleware log or the log level is too low | Trigger one blocked upload, then search the scanner, ICAP and middleware logs for the file's identifier, and confirm each source writes a verdict entry |
Questions buyers ask before adding scanning to OX App Suite
How much effort does adding attachment scanning to OX App Suite take?
Effort depends mainly on how many content paths are in scope, how the scanning service is deployed, and how much of the existing cluster has to change. The work usually covers deploying the scanning components in the cluster, connecting the OX App Suite middleware to them, setting how attachments and Drive downloads are handled, and testing with clean and infected sample files. The biggest drivers are the Kubernetes and Helm baseline already in place (OX App Suite v8 requires Helm 3.17.0 or newer), the storage behind OX Drive and PIM attachments, the file types and sizes you need to test, and the number of environments that must be updated. Ask the partner to break effort down by these items instead of quoting one total, so you can see which parts your team could absorb.
Can our own platform team add malware scanning without outside help?
Yes, a team that already runs OX App Suite on Kubernetes can do this in-house if it has clear owners for three things: the middleware configuration, the scanning services, and the test cycle. The skills needed are Kubernetes operations, Helm, OX App Suite configuration and basic malware testing practice. The risk sits mostly in testing: checking how attachments and synced Drive items behave differently, measuring timeouts under load, and confirming what users see when the scanner does not respond. Teams new to OX App Suite often ask for an outside review of the configuration before go-live. DeployOpen can plan, implement and test this under a fixed-scope agreement, or review work your team has already done. Confirm the exact configuration keys against the documentation for the release you run.
What does our team need to provide for a scanning project?
Your team provides the decisions and access that only your organization can give. Plan for these inputs before the work starts:
- Cluster and namespace access for the environments in scope, plus a change window for each rollout stage.
- A scanner choice, or agreement to use the option the partner recommends after a review of your environment.
- Representative test data, including clean files, known test-signature files that scanners flag, and the file types and sizes your users send and download.
- A recorded security decision on fail-open or fail-closed behavior for each content path.
- Details of the storage behind OX Drive and PIM attachments, and a named owner for the mail and file platform who can approve configuration changes.
Missing any of these usually adds time to the test cycle, so ask the partner to list them in the scope document.
Should attachment scanning fail open or fail closed?
Fail-closed blocks the file when the scanner cannot give a verdict, and fail-open lets the file through. Fail-open keeps mail and downloads flowing during a scanner outage, but users can receive files that were never checked. Fail-closed protects users from unscanned content, but a scanner outage stops attachment access until the service returns. Most organizations decide this per path, because a mail attachment, a Drive download and a synced Drive item carry different risks and may have different user expectations. The decision should also cover timeouts, how long the scanner can stay unavailable before the security owner is alerted, and how blocked files are reported to users. Record the decision in writing with the security owner, and test both behaviors before go-live.
How long does a sizing and test cycle take for scanning?
The duration depends on scope, and no fixed figure applies to every organization. A narrow scope covering one content path in one environment is much shorter than a rollout that covers mail attachments, Drive downloads, several environments and load testing. The main inputs are the expected volume of attachments, the file types and sizes, the number of environments (for example, lab, staging and production), the time needed for change approval, and whether load tests are included. Ask the partner for a written schedule with milestones for sizing inputs, lab build, functional tests, load tests and staged rollout, and confirm which of those milestones depend on your team's approvals. A schedule that names the approvers usually holds up better than a single end date.
Do ClamAV signature updates need a maintenance plan?
Yes. ClamAV detection depends on signature databases that change over time, so the update process needs an owner, monitoring and a test step. Plan how signature updates reach the scanning pods, who receives an alert when an update fails, and how stale signatures are detected and escalated. Scanner upgrades should be tested alongside OX App Suite upgrades, because a change on either side can affect scanning behavior. Open-Xchange's support commitment gives a standard release 12 weeks of support, and an LTS release is supported until the next LTS release plus six months, so the upgrade calendar for OX App Suite should be planned with the scanner calendar in mind. Confirm the update mechanism and its settings against the ClamAV documentation for your deployment.
Do we need an ICAP server if the release offers another hook?
Not necessarily. The right choice depends on what the OX App Suite release you run exposes for scanning. Check the release documentation to see whether a native hook covers both attachments and Drive downloads, and whether it can call your scanning service. If a native hook covers every path you need, you may avoid running an extra component. If it does not, ICAP is a common protocol that lets an application send content to a scanning service and receive an allow or block decision, which gives you a standard interface to the scanner. Either way, confirm which content paths each option covers, how each behaves when the scanner is unavailable, and who maintains the component after go-live.
What should a fixed-scope quote for scanning include?
A fixed-scope quote should list what is in scope, what is excluded, and how each part will be verified. Ask for these items in writing:
- The OX App Suite release, deployment target and environments covered.
- The content paths included, such as mail attachments and Drive downloads, and any paths excluded.
- The scanner decision, the sizing inputs and the assumptions behind them.
- The test plan, sample set and the recorded fail-open or fail-closed decision.
- Rollout stages, handover documentation and a retest after changes.
- Any licensed modules or features that carry separate fees under the license agreement. The OX App Suite Operations Guide notes that some modules may have custom packaging or separate fees.
DeployOpen agrees scope, deliverables and timelines in writing before work starts, and ongoing support can be handled as a separate retainer.
How DeployOpen scopes and delivers scanning for OX App Suite
DeployOpen plans, builds, tests and documents attachment and Drive download scanning for OX App Suite inside your own infrastructure. The work starts with a written scope that states which download paths are covered, which Drive items are excluded, and how the ICAP and ClamAV services are sized and monitored.
How we scope
- Map every attachment and Drive download path your users rely on, including mobile and web clients.
- Confirm which synced Drive items skip scanning and record that decision in the written scope.
- Agree in writing the ICAP and ClamAV hosting location, sizing inputs and the monitoring you need.
How we build
- Deploy the ICAP server and ClamAV in your Kubernetes cluster, with the integration configured for your OX App Suite v8 release.
- Test clean, infected and oversized files against each download path and record the results.
- Configure failure behavior so you decide in advance how downloads act when the scanner is unavailable.
How we hand over
- Deliver runbooks for signature updates, scanner restarts, scaling and troubleshooting.
- Document the scan coverage, exclusions and known limits so your security and compliance teams can review them.
- Provide a retest of the agreed scenarios after handover so you can confirm the final configuration works as documented.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and continuous testing are available as a retainer.
- Ask for the retainer scope in writing so upgrades to OX App Suite and ClamAV are covered alongside your scanning service.

