Has Anyone implemented an OnlyOffice Document server in their network?
Question asked by William Allen - 9/13/2026 at 8:19 AM
Unanswered
I am thinking of building an OnlyOffice Community server for our clients to use. Has anyone done this and how did you secure it to prevent attacks?

This would be a great feature to have. The Document feature was built in with my IceWarp servers and a great feature. It would be nice to include the feature here but I am concerned with security. It seems the OnlyOffice Doc server is vulnerable.

Bill 
Derek Curtis Replied
Employee Post
We have done it ourselves, Bill. And a Collabora Online integration as well. Maybe I can have one of our IT guys chime in. 
Derek Curtis
CCO
SmarterTools Inc.
William Allen Replied
That would be great. 
Jereming Chen Replied
Employee Post
Hello William,

We have an OnlyOffice setup in-house as a docker container. I generally agree with limiting the exposure of the document server so we actually set limitations on who/what has access to the OnlyOffice Doc server. 

First off, you could have the server on a private network so that only local devices have access to it. Then have your SmarterMail be able to reach it from there. This would rely on your DNS having the private IP for the domain name. 
Another option, and the one we use, is to lock it down with a reverse proxy like Nginx or Caddy. An ACL here can lock the IPs that would have access to the OnlyOffice Doc server and setup SSL certs for you. Even with the backend instance being a Docker container.

I personally have a setup like this and deployed both of these as I see no reason myself to expose the doc server to the public, but your setup might vary there. 

Hope that helps.
Jereming Chen
Internal Network/System Administrator
SmarterTools Inc.
William Allen Replied
Thank you Jereming for your reply, 

Our clients are traveling all over the world. While using SmarterMail they would like to use the onlyoffice features securely. It is my understanding that we would need to have a public IP for this to work… is my understanding correct? Or, can the onlyoffice instance remain on an internal IP and still serve document editing remotely?

We are very worried about document server security, locking down access to only our SmarterMail users over an encrypted connection. Can this be done safely? There is a lot of articles out there about how vulnerable these systems are.

Bill


Zach Sylvester Replied
Employee Post
Hey Bill,

Thanks for the question.

The document server is not the system of record. It pulls a copy of the file for editing, then writes the result back to SmarterMail.

There are two connections involved:

Browser → Document Server

When a user opens a document, SmarterMail gives the browser a URL to the document server along with a short-lived access token. The browser loads the editor directly from the document server.

Because of that, the document server must be reachable by your users, either over the internet or through a VPN. I would recommend putting Nginx or Caddy in front of it for TLS and to limit what is publicly exposed.

Document Server → SmarterMail

The document server uses the short-lived token to retrieve and save the user's file. There is no permanent service account or shared credential stored on the document server.

You can also restrict ONLYOFFICE so it will only connect back to your SmarterMail server:

"ipfilter": {
  "rules": [
    { "address": "your.smartermail.server", "allowed": true },
    { "address": "*", "allowed": false }
  ],
  "useforrequest": false,
  "errorcode": 403
}

Leave useforrequest set to false, otherwise you may also restrict incoming users by IP, which would cause problems for traveling users.

In short: expose the editor to your users, restrict the document server so it can only communicate with SmarterMail, and let the short-lived user tokens handle authorization.

I would also keep the document server patched and, if possible, isolate it from the rest of your internal network.

Hope that helps.

Kind Regards,

Zach Sylvester

Software Developer
SmarterTools Inc.
William Allen Replied
Thanks, That is what I thought but couldn't fine any documentation.

Reply to Thread

Enter the verification text