How to set up Zimbra mail server on Cent. OSIn this tutorial, we will examine the process of installing Zimbra mail server in Cent. OS Linux environment. Zimbra is my personal favorite when it comes to open- source mail servers as it comes with a number of useful features such as built- in calendar support, email filtering rules, a modern interface for both users and admins, spam and malware scanners, etc. Besides server- side components, Zimbra also boasts of a full- featured web- based email client by which users can access emails, group calendars and document sharing in collaboration mode. Zimbra is available in two flavors: an open- source version and a commercial version.
The latter comes with paid support plans and additional proprietary components for Outlook calendar/contact synchronization. But even the open- source version alone provides pretty much all the features that an enterprise may need. Installing Zimbra is a straightforward process as we will see in this tutorial. We are going to use Cent. OS 7 (more specifically AWS Cent. OS 7 image) as the target platform to install Zimbra server. System Requirements for Zimbra Installation.
The official website recommends the following hardware specification for Zimbra open- source edition. Intel/AMD 2. 0 GHz 6. CPU. A minimum of 8. GB of RAM for a single server installation. GB disk space for software and logs, and additional disk space for mail storage and temporary files.
Preparing the DNS Records. Before we start doing anything with the mail server itself, it is essential that the DNS records for the mail server be in place.
This tutorial will guide you on how to perform a minimal installation of latest released version of CentOS 7.0, using the binary DVD ISO image. In this article we are going to show how to install free SSL/TLS certificates issued by Let's Encrypt Certificate Authority for Apache on CentOS/RHEL 7/6. Step by step guide to install Zimbra Mail Server ZCS 8.6.0 open source edition with single server installation on CentOS 7 latest version. Nel firewall bisogna aprire la porta TCP 21 per permettere il corretto funzionamento dell’FTP. Utilizzando il comando system-config-securitylevel-tui si accede alla.
![Install Zimbra 7 On Centos 6 Firewall Config Install Zimbra 7 On Centos 6 Firewall Config](http://tecadmin.net/wp-content/uploads/2013/11/http-response-headers-without-ats.png)
This is because the Zimbra installer will check the DNS records for your domain and will abort if the DNS is not resolvable. At the very minimum, you would need MX and A records for the mail server. For example. example. IN MX 1. 0 mail. IN A IP- Address- of- your- server. Configuring SELinux and Firewall. Before starting the installation, I have disabled SELinux.
Install Zimbra 7 On Centos 6 Firewalld
![Install Zimbra 7 On Centos 6 Firewall Install Zimbra 7 On Centos 6 Firewall](http://www.deepshiftlabs.com/sel_blog/wp-content/uploads/2012/09/63_grub.png)
Install Zimbra 7 On Centos 6 Firewall Disable
Tuning SELinux for Zimbra is beyond the scope of this article. Zimbra needs a number of ports opened in the firewall. I have used the following set of iptables rules as AWS Cent. OS 7 image comes pre- built with iptables, but feel free to use firewalld (the default firewall configuration tool for stock Cent. OS 7) to open all necessary Zimbra ports.
Always double check that your firewall rules are in compliance with your organization policies. P INPUT DROP. iptables - P OUTPUT ACCEPT. A INPUT - i lo - j ACCEPT. A INPUT - s IP- Address- of- your- server/3. ACCEPT. iptables - A INPUT - m state - -state ESTABLISHED,RELATED - j ACCEPT. A INPUT - p tcp - -dport 2. ACCEPT. iptables - A INPUT - p icmp - j ACCEPT.
Zimbra rules for external access ##. A INPUT - p tcp - -dport 2. ACCEPT. iptables - A INPUT - p tcp - -dport 8.
ACCEPT. iptables - A INPUT - p tcp - -dport 1. ACCEPT. iptables - A INPUT - p tcp - -dport 1. ACCEPT. iptables - A INPUT - p tcp - -dport 4.
ACCEPT. iptables - A INPUT - p tcp - -dport 4. ACCEPT. iptables - A INPUT - p tcp - -dport 5. ACCEPT. iptables - A INPUT - p tcp - -dport 9. ACCEPT. iptables - A INPUT - p tcp - -dport 9.
ACCEPT. iptables - A INPUT - p tcp - -dport 3. ACCEPT. iptables - A INPUT - p tcp - -dport 9. ACCEPT. iptables - A INPUT - p tcp - -dport 7. ACCEPT. Setting Hostnames and NTPNext, we will configure the hostname of the mail server.
This will set Cent. OS hostname to mail. You can check the status by using the following command. Static hostname: mail. In case you are using a cloud based VM (e. Amazon AWS), you also need to change the file /etc/cloud/cloud. Add the following line at the end of the file ##.
We also need to add the server's IP address and its fully qualified domain Name (FQDN) to /etc/hosts. IP- Address- of- your- server mail.
The NTP service must be installed and enabled on any server system where security and compliance is desired, and that includes Zimbra mail server. Accurate timestamp is also helpful for troubleshooting and testing with mail server logs. We will install and enable NTP as follows.
Installing Zimbra on Cent. OSBefore installing Zimbra, we need to do some cleanup and install required dependencies. First of all, be aware that Zimbra comes with its own customized version of Postfix as a mail transfer agent (MTA).
So if your Cent. OS system has stock Postfix pre- installed (which is the case for Cent. OS 7), you need to remove it. Otherwise, Zimbra installer will fail when it tries to bind its own version of Postfix to port 2. Postfix. The best method is to stop the default Postfix service and remove it altogether, so that port 2. Also if sendmail MTA is installed on your Cent.
OS, disable it as well. Next, install necessary dependencies with Yum. Now download the open- source edition of Zimbra from their site, and extract the tar file. GA/zcs- 8. 6. 0_GA_1. RHEL7_6. 4. 2. 01. GA_1. 15. 3. RHEL7_6. Start the installation using a installer script (installer.
GA_1. 15. 3. RHEL7_6. The installer script will first check for all required prerequisites.
If it complains about some required packages not being available, use Yum to install them. The installer will then prompt you to choose among available packages. You can install all available packages or choose the ones that you need. Do you agree with the terms of the software license agreement?
N] y. Checking for prerequisites.. FOUND: NPTL. FOUND: nmap- ncat- 6. FOUND: sudo- 1. 8. FOUND: libidn- 1. FOUND: gmp- 6. 0. FOUND: libaio- 0.
FOUND: libstdc++- 4. FOUND: unzip- 6. 0- 1. FOUND: perl- core- 5. Checking for suggested prerequisites.. FOUND: perl- 5. 1. FOUND: sysstat. FOUND: sqlite.
Prerequisite check complete. Checking for installable packages. Found zimbra- core. Found zimbra- ldap.
Found zimbra- logger. Found zimbra- mta.
Found zimbra- dnscache. Found zimbra- snmp. Found zimbra- store. Found zimbra- apache. Found zimbra- spell. Found zimbra- memcached.
Found zimbra- proxy. Proceed with domain name configuration and admin password setup. DNS ERROR resolving MX for mail.
It is suggested that the domain name have an MX record configured in DNS. Change domain name?
Yes] yes. Create domain: [mail. MX: mail. example.
IP- Address- of- your- server). Interface: 1. 27. Interface: : :1. Interface: IP- Address- of- your- server. Common Configuration. Enabled. 3) zimbra- logger: Enabled.
Enabled. 5) zimbra- dnscache: Enabled. Enabled. 7) zimbra- store: Enabled. Create Admin User: yes.
Admin user to create: admin@example. Admin Password UNSET. Finally, Zimbra will create a self- signed SSL certificate, and start services as necessary. Accessing Zimbra Admin Console. Now that Zimbra is installed and running, we will use the web admin console to login. As the server is configured to use a self- signed certificate, you might need to add that certificate as an exception on your web browser.
The Zimbra admin console can be reached at: URL: https: //mail. Password: password set during installation.
Creating Test Users on Zimbra Server. After logging in to the server as an admin, create users who will send and receive emails using the Zimbra server.
For this tutorial, we will create two users: alpha@example. Users can be created under 'Manage' section of the console.
After new users have been created, we can log in as one of these users at https: //mail. Again, as the server has a self- signed certificate, you might need to add the certificate as an exception in your browser. In the rest of the tutorial, I am going to test the Zimbra mail server using these users. Testing and Troubleshooting with Zimbra Mail Logs. When you test or troubleshoot the Zimbra mail server, the server logs are a useful source of information. While Zimbra logs can be inspected from the web- based Zimbra admin console, the server's mail log file (/var/log/maillog) contains more detailed information. I am old school and prefer checking the server log file directly.
In the following let me show how to inspect the server log in various test scenarios. Scenario #1: Zimbra user sends an email to another Zimbra user. In this test, we first log in as user alpha, and try sending a test mail to user beta. After sending the mail, we can check the server log to see what went on under the hood. The following is a snippet of the mail log in this scenario. IP- Address- of- your- server]. NOQUEUE: filter: RCPT from mail.
IP- Address- of- your- server]: < alpha@example. Sender address triggers FILTER smtp- amavis: [1. ESMTP helo=. mail postfix/qmgr[2.
C5. A5. 58. 27. 4AC: from=< alpha@example. EE3. 94. 58. 2F0.
Server World - Build Network Server.