Add an Email Account to OnlyOffice Deployment
In this article
To add an email account to your OnlyOffice deployment, you connect your mail server (or a third-party email provider) through the Mail app in OnlyOffice. This lets you send and receive email directly inside the OnlyOffice interface, alongside your documents and projects. You'll need your email address, password, and the incoming/outgoing server details (IMAP/POP3 and SMTP) from your email provider. If you're using a custom domain with your own mail server, you'll also need the server hostname and port numbers.
What You'll Need
- Your full email address and password.
- Incoming mail server details: hostname (e.g., imap.example.com), port (usually 993 for SSL), and protocol (IMAP or POP3).
- Outgoing mail server details: hostname (e.g., smtp.example.com), port (usually 465 or 587), and encryption method (SSL/TLS or STARTTLS).
- If you use two-factor authentication, you'll need an app-specific password from your email provider.
- Admin access to your OnlyOffice deployment if you need to enable the Mail app or configure server-wide settings.
Step-by-Step
- Log in to OnlyOffice with your user account. If you're the administrator, ensure the Mail app is enabled in the Admin Portal (look for "Mail" under the Apps section). If it's not there, contact your system administrator.
- Open the Mail app from the main toolbar (the envelope icon). If this is your first time, you'll see a welcome screen with a "Add Email Account" or "Connect" button.
- Click "Add Email Account" or the plus icon in the left sidebar. A dialog box will appear.
- Enter your email address in the first field. Then click "Continue" or "Next" (the exact wording may vary slightly by version).
- Enter your email password in the password field. If your provider uses two-factor authentication, enter the app-specific password here instead of your regular password.
- Choose the account type – either IMAP or POP3. IMAP is recommended because it syncs folders and keeps messages on the server, so you can access them from multiple devices. POP3 downloads messages to the local device only.
- Fill in the incoming server settings: server hostname (e.g., imap.gmail.com for Gmail), port (usually 993 for IMAP with SSL, or 143 for STARTTLS), and encryption method (SSL/TLS or STARTTLS). If you're unsure, check your email provider's help page.
- Fill in the outgoing server settings: server hostname (e.g., smtp.gmail.com), port (usually 465 for SSL or 587 for STARTTLS), and encryption method. Some providers require authentication for SMTP – make sure the "Use authentication" checkbox is ticked.
- Click "Connect" or "Add Account" to finish. OnlyOffice will test the connection. If successful, your inbox will load.
- If the connection fails, double-check the server names, ports, and encryption. Also verify that your email provider allows third-party app access (some block it by default).
Once added, you can manage multiple accounts by clicking the gear icon in the Mail app and selecting "Accounts" to add, edit, or remove accounts.
Common Mistakes
- Using the wrong server hostname – For example, using "imap.gmail.com" for a Google Workspace account is correct, but for a custom domain it might be "mail.yourdomain.com". Always check your provider's documentation.
- Incorrect port numbers – Many users mix up SSL and STARTTLS ports. For example, IMAP over SSL is 993, but IMAP with STARTTLS is 143. Using the wrong port will cause a timeout.
- Forgetting to enable "Less secure app access" or generate an app password – Gmail, Yahoo, and Outlook.com often block standard password logins. You must enable two-factor authentication and create an app-specific password, or enable the provider's "allow less secure apps" option (if still available).
- Using POP3 when you need IMAP – POP3 will not sync folders like Sent or Drafts across devices. If you need full sync, use IMAP.
- Entering the email address with spaces or typos – A simple typo in the email or server name will prevent connection.
Tips
- Use IMAP for the best experience, especially if you access email from multiple devices.
- Keep your server details handy – Save them in a note or password manager before you start.
- If you have a custom domain , your mail server may be hosted by your domain registrar or a separate provider.
- For corporate or self-hosted mail servers, you may need to ask your IT administrator for the correct server names and ports, as they may differ from standard defaults.
- After adding the account, test sending an email to yourself to confirm both incoming and outgoing work.
Troubleshooting
If the connection fails, try these steps in order:
- Check your internet connection – Ensure you can reach your email provider's website from the same network.
- Verify the server hostname – Use a tool like
nslookuporpingto see if the hostname resolves. If not, you have the wrong hostname. - Test the port manually – On a computer, open a terminal and run
telnet imap.example.com 993(replace with your server and port). If you get a connection refused or timeout, the port is blocked or wrong. - Check if your email provider blocks third-party apps – Gmail, Outlook.com, and Yahoo often have security settings that block logins from "less secure apps." Log into your email provider's webmail, go to security settings, and enable app access or generate an app password.
- Try a different encryption method – Some servers support both SSL and STARTTLS. If one fails, try the other (e.g., change from SSL to STARTTLS and adjust the port accordingly).
- Check the OnlyOffice logs – If you have admin access, look at the Mail app logs (usually in the OnlyOffice installation directory) for detailed error messages. Search for "mail" in the logs.
- Restart the OnlyOffice Mail service – In the Admin Portal, under "Mail" settings, you may find a "Restart" button. This can clear temporary glitches.
- If nothing works, remove the account and add it again from scratch. Sometimes a typo is hidden in the settings.
Frequently Asked Questions
Can I add multiple email accounts to OnlyOffice?
Yes, you can add multiple accounts. Go to the Mail app, click the gear icon, select "Accounts," and then "Add Account." Each account appears as a separate folder in the left sidebar.
Does OnlyOffice support Gmail, Yahoo, or Outlook?
Yes, as long as you use the correct server settings and allow third-party access. For Gmail, you need an app password if you have two-factor authentication enabled. Yahoo and Outlook also have similar security measures.
What is the difference between IMAP and POP3 in OnlyOffice?
IMAP keeps emails on the server and syncs folders across devices. POP3 downloads emails to the local device and typically removes them from the server. IMAP is recommended for most users.
Can I use OnlyOffice Mail with a self-hosted email server like Postfix or Dovecot?
Yes, you can. You'll need to enter the server hostname, port, and encryption method for your mail server. Make sure your server allows external connections and that you have the correct credentials.
Why does my email account keep asking for a password?
This usually happens when the password changes, or when the server rejects the stored credentials. Update the password in the Mail app settings. Also, if you recently enabled two-factor authentication, you'll need to generate a new app password.
Can I set up OnlyOffice Mail to use my company's Exchange server?
OnlyOffice Mail supports IMAP and SMTP, not the proprietary Exchange ActiveSync protocol. If your company uses Exchange, you may need to enable IMAP access on the Exchange server or use a different client.