Wednesday, May 27, 2015

[Quick Install]: How To Install ONLYOFFICE – An Online Collaboration Suite For SME

How To Install ONLYOFFICE – An Online Collaboration Suite For SME

OnlyOffice

About ONLYOFFICE

ONLYOFFICE, formerly known as Teamlab Office, is a free, open source, web-based collaboration platform for small and medium-size organizations that enables you to manage projects, customer relations and documents in one place. It is currently available in more than 20 languages.
ONLYOFFICE suite is available as two different flavours.
  • ONLYOFFICE Free Edition ;
  • ONLYOFFICE Enterprise Edition.
The features comparison of both editions are given in this link.
ONLYOFFICE suites comprises the following three servers:
  1. Document Server ;
  2. Community Server ;
  3. Mail Server.
Let us see the brief introduction and the respective features of each server.

1. Document Server:

ONLYOFFICE Document Server is a free collaborative online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
Document Server comprises following:
  • ONLYOFFICE Document Editor ;
  • ONLYOFFICE Spreadsheet Editor ;
  • ONLYOFFICE Presentation Editor ;
  • Collaborative editing ;
  • Hieroglyph support.

2. Community Server:

ONLYOFFICE Community Server is a free open source collaborative system developed to manage documents, projects, customer relationship and email correspondence, all in one place.
Community Server consists of the following features.
  • Cross platform solution: Linux, Windows ;
  • Document management ;
  • Integration with Google Drive, Box, Dropbox, OneDrive, OwnCloud ;
  • File sharing ;
  • Document embedding ;
  • Access rights management ;
  • Customizable CRM ;
  • Web-to-lead form ;
  • Invoicing system ;
  • Project Management ;
  • Gantt Chart ;
  • Milestones, task dependencies and subtasks ;
  • Time tracking ;
  • Automated reports ;
  • Blogs, forums, polls, wiki ;
  • Calendar ;
  • Email Aggregator ;
  • People module (employee database) ;
  • Instant Messenger ;
  • Support of more than 20 languages/

3. Mail Server:

ONLYOFFICE Mail Server is a full-featured mail server solution developed on the base of the iRedMail package, containing the following components: Postfix, Dovecot, SpamAssassin, ClamAV, OpenDKIM, and Fail2ban.
Integrated with ONLYOFFICE Community Server, Mail Server allows to:
  • connect your own domain name ;
  • create mailboxes ;
  • add aliases for each mailbox ;
  • create mailbox groups.

System Requirements

Here is the minimum list software and hardware requirements to deploy ONLYOFFICE.
Software requirements:
  • Ubuntu 12.04 (LTS) (64-bit) or later ;
  • Fedora 20 (64-bit) or later ;
  • CoreOS 647.0.0 (64-bit) or later ;
  • Docker version 1.4.1 or later.
Hardware requirements:
  • RAM: 4GB or more ;
  • Processor: 2 Core or better ;
  • HDD: at least 40GB of free disk space.

Install ONLYOFFICE

We can install ONLYOFFICE in two different methods.
  1. Install ONLYOFFICE Using Docker ;
  2. Install ONLYOFFICE Using Repository.

1. Install ONLYOFFICE Using Docker

Installing Prerequisites:

To deploy and run ONLYOFFICE Online Editors, you will need Docker v.1.4.1 or later installed on your machine.
Just to remind, Docker is an open-source project that automates the deployment of applications inside software containers.
To install Docker on Ubuntu and CentOS, refer the following link.
Also, the installation instructions for a lot of Linux distributions are available on the Docker official website.
Next, We have to install Docker compose.
First, install ‘pip; package using command:
sudo apt-get install python-pip
In Fedora:
sudo yum install python-pip
Now, install docker-compose package using command:
sudo pip install -U docker-compose
That’s it. To verify docker-compose installation, run:
docker-compose --version
Sample output:
docker-compose 1.2.0

Install ONLYOFFICE Free Edition:

Now, Install the whole ONLYOFFICE Free Edition at once using the following commands:
wget https://raw.githubusercontent.com/ONLYOFFICE/Docker-CommunityServer/master/docker-compose.yml
sudo docker-compose up -d
Sample output:
Creating sk_documentserver_1...
Pulling image onlyoffice/documentserver:latest...
Pulling repository onlyoffice/documentserver
ddf4d6a0999b: Pulling dependent layers
e9e06b06e14c: Downloading    20 MB
.
.
.
Docker will pull all three servers (Community, Document, and Mail) along with all dependencies. This will take a while depending upon your Internet connection speed.
After installing all Docker images, verify them using command:
sudo docker images
Sample output:
REPOSITORY                   TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
onlyoffice/communityserver   latest              c9658f59b752        11 days ago         1.183 GB
onlyoffice/documentserver    latest              ddf4d6a0999b        2 weeks ago         1.837 GB
onlyoffice/mailserver        latest              47ca4c54969c        5 weeks ago         1.22 GB
As you see above, the three Docker images have been downloaded.
Now, let us run a server, for example Document server, using command:
sudo docker run -i -t -d -p 80:80 onlyoffice/documentserver
Sample output:
2ea7863af76013b30855de36321dfe4850c9479cc15955f706b8bc35db302fd5
To view the list of running Docker images, run:
sudo docker ps
Sample Output:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2ea7863af760 onlyoffice/documentserver:latest "/bin/sh -c 'bash -C 6 minutes ago Up 6 minutes 0.0.0.0:80->80/tcp, 443/tcp gloomy_pasteur
That’s it.
Similarly, you can run all other Docker images(ONLYOFFICE Community/mail server etc) as shown above. Be mindful that you must run each server on different port.
For more details about working with Docker images, refer the following tutorial.

Access ONLYOFFICE Web console

To open your ONLYOFFICE Document server, enter localhost (http://127.0.0.1 or http://IP-address) in the address bar of your browser. You should see the following screen.
ONLYOFFICE™ - Mozilla Firefox_001
Congratulations!! now, you can start using the Document server. From now you can use the ONLYOFFICE online editors to create, edit, view, and delete word documents, excel sheets, and presentation files etc.
ONLYOFFICE Online Editors can be easily integrated into your website or cloud application via API provided. Thus you get a chance to provide users with the most advanced online document editors for text docs, spreadsheets and presentations.
Why ONLYOFFICE beats all the existing online processors?
  • In the eye of users: it combines the formatting quality of MS Office & online collaboration of Google Docs (real-time co-editing and commenting).
  • In the eye of tech enthusiasts: it’s built with the use of HTML5 element, Canvas.
To view a Sample document, click on the on the Sample Document link in the web console. This will open a new tab.
Here is the sample demo.docx file.
ONLYOFFICE™ - Mozilla Firefox_002
To upload a new document, click “Choose file” button and select the files on your PC.
ONLYOFFICE™ - Mozilla Firefox_003
Now, you can view or edit the uploaded document. Let us view the uploaded to see how it looks in the online editor.
The document will open in a new tab.
ONLYOFFICE™ - Mozilla Firefox_004
To edit the document, click the Edit button in the web console, make the changes and click the save button.
Also, you can integrate the Document server with collaborative system. For more details about installing ONLYOFFICE Community Server integrated with Document and Mail Servers, refer the official documentation page.

2. Install ONLYOFFICE Using Repository in Ubuntu

Let me show you how to install ONLYOFFICE in Ubuntu 14.04 LTS server.
To install ONLYOFFICE from the repository, first of all you need to download ONLYOFFICE GPG signing key:
sudo wget http://download.onlyoffice.com/repo/onlyoffice.key 
And add it to the system:
sudo apt-key add onlyoffice.key
Then add ONLYOFFICE repository to the list stored in the /etc/apt/sources.list file. Open this file using any available text editor (e.g. nano):
sudo nano /etc/apt/sources.list
Add the following record:
deb http://download.onlyoffice.com/repo/debian squeeze main
Update the package cache:
sudo apt-get update
Now to install ONLYOFFICE from the repository execute the following command:
sudo apt-get install onlyoffice
During installation, you’ll be asked to setup MySQL root user password.
sk@server: ~_002
Re-enter the password:
sk@server: ~_003
Enter password for ONLYOFFICE database:
sk@server: ~_004
That’s it. ONLYOFFICE has been installed.

Access ONLYOFFICE Web console

Open your web browser and navigate to http://IP-Address/.
The ONLYOFFICE initialization process will start. It will just take few minutes.
ONLYOFFICE™ - Mozilla Firefox_005
After few minutes, a registration window will open. Enter a valid email id, select language, Timezone, and setup a password to access the ONLYOFFICE web console.
Portal Setup - Go through these easy steps to start your web office easily - Mozilla Firefox_007
This is how ONLYOFFICE Dashboard looks.
Menu_009
From you can Create, edit, save and share documents. Connect your Google Drive, Dropbox and Box accounts and have all documents in one place.
Please note that you must activate your email entered while registering to get access to all the portal features.
Also, you can setup the CRM, Mail server, create, manage projects and peoples etc.
ONLYOFFICE Document portal:
My Documents - Documents - Mozilla Firefox_010
ONLYOFFICE Projects page:
Projects - Projects - Mozilla Firefox_011
ONLYOFFICE CRM:
All Contacts - CRM - Mozilla Firefox_012
ONLYOFFICE mail:
Inbox - Mail - ONLYOFFICE™ - Mozilla Firefox_013
ONLYOFFICE People:
People - People - Mozilla Firefox_015
ONLYOFFICE Community page:
Blogs - Community - Mozilla Firefox_016
If you have any problems or questions about ONLYOFFICE, please contact the support team at dev.onlyoffice.org.
Reference:

[Quick Install]: How To Install iRedMail Mail Server In Linux

How To Install iRedMail Mail Server In Linux

iredmail

About iRedmail

iRedMail is a free, full featured and full-fledged open source mail server solution for Linux and BSD. Using iRedMail, anyone, even a novice Linux user, can easily deploy mail server in less than fifteen minutes. If you have fast internet connection, then you can deploy it under 2 minutes. In this how-to, let me show you how to install and configure mail server using iRedMail. Before diving into the installation part, let us have a small walk through into the iRedMail features.

Features

Concerning about the iRedMail features, we can list the following.
  • Zero cost, fully fledged and full-featured;
  • Works on Major Linux/BSD Distributions, including Red Hat, CentOS, Ubuntu, Debian, FreeBSD, and OpenBSD ;
  • Calendar service (CalDAV) and Contact service (CardDAV) ;
  • Fast Deployment, Low Maintenance, and Unlimited Accounts ;
  • Stores Mail Accounts in one of supported 4 backends: OpenLDAP, MySQL, MariaDB, and PostgreSQL ;
  • Service Restrictions ;
  • Sender and Recipient Throttling ;
  • Anti-Spam and Anti-Virus ;
  • WebMail: AJAX, Global LDAP Address Book, Vacation, Filter ;
  • Your mail server setup is reproducible ;
  • Control over your own data. You have all personal data on your hard disk, it is not on somebody else’s storage medium ;
  • All components are free and open source softwares, and you get the bug fixes and updates of the used packages from the Linux/BSD distribution venders you trust, not iRedMail project;
  • Works on both non-virtualized and virtualized boxes, e.g. VMware, Xen, KVM, OpenVZ, VirtualBox, with i386 and x86_64/amd64 support ;
  • And many.

Installation

Prerequisites

1. Set a proper FQDN hostname on your server.

For RHEL/CentOS/Scientific Linux 6, hostname is defined in /etc/sysconfig/network:
HOSTNAME=mx.example.com
For RHEL/CentOS/Scientific Linux 7, hostname is defined in /etc/hostname.
server.unixmen.local
  • /etc/hosts: hostname <=> IP address mapping. Warning: List the FQDN hostname as first item.
127.0.0.1   server.unixmen.local server localhost localhost.localdomain
Verify the FQDN hostname. If it wasn’t changed, please reboot server to make it work.
hostname -f
Sample output:
server.unixmen.local
On Debian/Ubuntu Linux, hostname is set in two files: /etc/hostname and /etc/hosts.
  • /etc/hostname: short hostname, not FQDN.
server
  • /etc/hosts: static table lookup for hostnames. Warning: Please list the FQDN hostname as first item.
127.0.0.1   server.unixmen.local server localhost localhost.localdomain
Verify the FQDN hostname. If it wasn’t changed after updating above two files, please reboot server to make it work.
hostname -f
Sample output:
server.unixmen.local

2. Disable SELinux

iRedMail doesn’t work with SELinux, so please disable it. To disable SELinux, edit:
vi  /etc/selinux/config
Set SELINUX value as disabled.
SELINUX=disabled
After server reboot, SELinux will be completely disabled.
If you prefer to let SELinux prints warnings instead of enforcing, you can set below value instead:
SELINUX=permissive
Disable it immediately without rebooting your server.
# setenforce 0

Install iRedMail

In this tutorial, let me show you how to install iRedMail server in Ubuntu. The procedure is same for all Linux distros. I tested this mail server in Ubuntu 14.04 64bit edition, and it’s worked like a charm.
Here is my testing environment:
  • Operating System : Ubuntu 14.04 LTS Server
  • IP Address            : 192.168.1.101/24
  • LDAP suffix           : dc=unixmen, dc=local
  • Domain name        : unixmen.local
  • Hostname              : server.unixmen.local
Download the latest version for your preferred Linux distribution from the official download page.
As of writing this, the latest version was 0.9.1.
wget https://bitbucket.org/zhb/iredmail/downloads/iRedMail-0.9.1.tar.bz2
Extract the zip archive using command:
tar jxvf iRedMail-0.9.1.tar.bz2
Now go to iRedMail directory and run the installation script:
cd iRedMail-0.9.1/
sudo bash iRedMail.sh
After a few seconds, the welcome page will appear. select Yes to continue.
sk@server: ~-iRedMail-0.9.1_001
Specify the Mailbox location for users. The default is /var/vmail.
sk@server: ~-iRedMail-0.9.1_002
Select the web server of your choice. The default is nginx.
sk@server: ~-iRedMail-0.9.1_003
Select your preferred backend to store mail accounts. It is strongly recommended to choose the one you are familiar with for easy maintenance.
In this case, I chose openLDAP as my backend to store mail accounts.
sk@server: ~-iRedMail-0.9.1_005
Enter your LDAP suffix details.
sk@server: ~-iRedMail-0.9.1_006
Specify the password for LDAP rootdn password. Blank passwords are not allowed.
sk@server: ~-iRedMail-0.9.1_008
Specify MySQL Administrator password. Again, empty password is not allowed.
sk@server: ~-iRedMail-0.9.1_009
Enter the first virtual domain name for your mail server. It can not be same as your server hostname.
sk@server: ~-iRedMail-0.9.1_010
Specify the password for your mail administrator user.
sk@server: ~-iRedMail-0.9.1_011
Select the optional components and press next.
sk@server: ~-iRedMail-0.9.1_012
Now, the installer will begin to download and install all the necessary packages. Type y to begin the installation. It will take a while depending upon your internet speed.
sk@server: ~-iRedMail-0.9.1_013
After few minutes, installer will ask you to update firewall rules. Press y and enter to accept.
sk@server: ~-iRedMail-0.9.1_015
After installation completed, reboot your system to enable all mail services.
sk@server: ~-iRedMail-0.9.1_016
Please note down the administration username and password. The default administration username is“postmaster@your_domain_name.com” and password is the one which you have given at the installation time.

Post Installation

After rebooting your system, move the ‘config’ file to a safe location. This file contains sensitive information (username/password).
This will be created in your home directory, for example: /home/sk/iRedMail-0.9.1/config
Also, refer the file iRedMail.tips in the iRedMail installation directory(In my case it’s /home/sk/iRedMail-0.9.1/iRedMail.tips)
It contains:
  • URLs, usernames and passwords of web-based applications
  • Location of mail service related software configuration files.
  • Some other important and sensitive information

Administration

iRedMail administration made easy with a cool web interface.
You can access the iRedMail web consoles using the following two URLs:
  • Web administration console: https://IP-Address/iredadmin
  • Roundcube webmail: https://IP-Address/mail

Access iRedMail administration console:

Open up your web browser and navigate to “https://IP-Address/iredadmin” and enter the administration username and password which we have defined during the installation.
The username will probably be postmaster@your_domain.com. In my case, it’s postmaster@sk.local.
Login To Manage Your Mail Domains & Accounts - Mozilla Firefox_017
The admin panel will look like below.
Dashboard - Mozilla Firefox_018
From here you can add additional domain, admin accounts and user accounts as well.

Creating users:

Let us create a sample user.
From the iRedAdmin console, and click Add->User. Enter the user name, password, display name , and mailbox quota etc. Finally, click Add to create new user.
Add user under domain: sk.local - Mozilla Firefox_019
You can add as many users you want. After creating sufficient users, check whether you can send/receive mails between users.

iRedMail Webmail

Using iRedMail Webmail, users can send/receive mails.
Access your mail by pointing out the browser with “https://IP-Address/mail”.
Enter user details and click login. For example, here I login as user called ‘senthil@sk.local’.
Here, sk.local is my first virtual domain name.
Roundcube Webmail :: Welcome to Roundcube Webmail - Mozilla Firefox_021
This is how the user’s mailbox looks.
Roundcube Webmail :: Inbox - Mozilla Firefox_022

Test Mail server

Let us compose a new mail from senthil@sk.local to kumar@sk.local. I already have created the user kumar@sk.local.
Log as user senthil.
Click on “Compose” and enter the recipient mail id and subject matter etc. Click “Send Message”.
Roundcube Webmail :: Compose - Mozilla Firefox_023
Now, log out and log in as user ‘kumar’ to check for the new mails.
Roundcube Webmail :: Inbox - Mozilla Firefox_025
If you got the mail, then congratulations! Mail server is working!!

Adding Multiple Virtual domains

You can create multiple virtual domains if you want.
Login to your iRedAdmin console (https://IP-Address/iredadmin).
Click Add->Domain.
Enter the domain details and click Add.
Add domain - Mozilla Firefox_026
Now, create users under this new domain and send/receive mails using the new domain.

Manage iRedMail using iRedAdmin-Pro

iRedmail is completely free and open source. iRedAdmin is the free web console to manage your mail server. You can get all mail services without iRedAdmin-pro. However, if you want a web-based full featured admin panel to manage iRedMail, iRedAdmin-pro is a good choice. iRedAdmin-Pro is an additional web-based admin panel to help you manage iRedMail server, to make your life easier. You can add unlimited accounts with either iRedAdmin-Pro or other tools like SQL/LDAP command line tools or web applications like phpLDAPadmin/phpMyAdmin/phpPgAdmin.
For online demo, visit the following link.
Or,
You can login to demos with below admin accounts:
  • Global Admin: postmaster@example.com, Password: iredmail
  • Normal Admin: postmaster@test.com, Password: iredmail
You can purchase iRedAdmin-pro from here.

Conclusion

iRedmail is one of the best mail server solution for the users and organizations who wants to deploy mail server automatically. It takes only few minutes to up and run a mail server. The system administrator need not to be an expert, iRedMail will automatically install all required components automatically with less user’s interaction. I suggest you to install iRedMail in a fresh system. If you are running other mail services in the same server, the installation will not work. Give it a try, you won’t be disappointed.
Reference: