{"id":5567,"date":"2016-01-13T09:42:36","date_gmt":"2016-01-13T01:42:36","guid":{"rendered":"http:\/\/rmohan.com\/?p=5567"},"modified":"2016-01-13T09:42:36","modified_gmt":"2016-01-13T01:42:36","slug":"zimbra-8-6-on-linux-centos-7-0","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=5567","title":{"rendered":"Zimbra 8.6 on Linux CentOS 7.0"},"content":{"rendered":"<p>Configure DNS Entries on your local DNS server<br \/>\nSetup DNS A Record<br \/>\nEnsure you have a Reverse lookup zone<br \/>\nSetup MX Record<\/p>\n<p>Configure Host Settings<br \/>\nLogin as root user<br \/>\nsu root<\/p>\n<p>Install pre-requisites<br \/>\nyum install wget make nc sudo sysstat libtool-ltdl glibc perl-core ntp unzip libaio<\/p>\n<p>Set hostname<br \/>\nhostname mail.yourdomain.com<\/p>\n<p>Edit hostname file<br \/>\nnano \/etc\/hostname<br \/>\nmail.yourdomain.com<\/p>\n<p>Add Hosts Entries<br \/>\nnano \/etc\/hosts<\/p>\n<p>By default, this is what\u2019s present:<br \/>\n127.0.0.1\u00a0\u00a0 localhost localhost.localdomain localhost4 localhost4.localdomain4<br \/>\n::1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0localhost localhost.localdomain localhost6 localhost6.localdomain6<\/p>\n<p>Comment out (required for disabling ipv6)<br \/>\n#::1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0localhost localhost.localdomain localhost6 localhost6.localdomain6<\/p>\n<p>Add the following:<br \/>\n&lt;server IP&gt; \u00a0 mail.yourdomain.com MAIL<br \/>\n&lt;local DNS IP&gt; mail.yourdomain.com<\/p>\n<p>Press \u201cCtl+X\u201d to exit<br \/>\nSelect \u201cY\u201d to save changes<br \/>\nPress \u201cEnter\u201d to get back to CL<\/p>\n<p>&nbsp;<\/p>\n<p>Disable other services and firewall<br \/>\nservice postfix stop<br \/>\nchkconfig postfix off<br \/>\nservice ip6tables stop<br \/>\nchkconfig ip6tables off<\/p>\n<p>&nbsp;<\/p>\n<p>Disable SELINUX<br \/>\nEnter this at command line:<br \/>\nsetenforce 0<\/p>\n<p>Update selinux config file<br \/>\nnano \/etc\/selinux\/config<br \/>\nselinux=permissive<\/p>\n<p>Press \u201cCtl+X\u201d to exit<br \/>\nSelect \u201cY\u201d to save changes<br \/>\nPress \u201cEnter\u201d to get back to CL<\/p>\n<p>&nbsp;<\/p>\n<p>Completely disable the ipv6 module<br \/>\nTo completely disable IPv6 in your system, all you have to do is save the following line in a file inside\/etc\/modprobe.d\/.<br \/>\ncd \/etc\/modprobe.d\/<br \/>\nnano disable-ipv6<\/p>\n<p>Add this to the new file:<br \/>\nipv6 \/bin\/true<\/p>\n<p>Press \u201cCtl+X\u201d to exit<br \/>\nSelect \u201cY\u201d to save changes<br \/>\nPress \u201cEnter\u201d to get back to CL<\/p>\n<p>&nbsp;<\/p>\n<p>Configure iptables to allow email server traffic<br \/>\nnano \/etc\/sysconfig\/iptables<\/p>\n<p>Add the following<\/p>\n<p>-A INPUT -m state \u2013state NEW -m tcp -p tcp \u2013dport 25 -j ACCEPT<br \/>\n-A INPUT -m state \u2013state NEW -m tcp -p tcp \u2013dport 80 -j ACCEPT<br \/>\n-A INPUT -m state \u2013state NEW -m tcp -p tcp \u2013dport 110 -j ACCEPT<br \/>\n-A INPUT -m state \u2013state NEW -m tcp -p tcp \u2013dport 143 -j ACCEPT<br \/>\n-A INPUT -m state \u2013state NEW -m tcp -p tcp \u2013dport 443 -j ACCEPT<br \/>\n-A INPUT -m state \u2013state NEW -m tcp -p tcp \u2013dport 389 -j ACCEPT<br \/>\n-A INPUT -m state \u2013state NEW -m tcp -p tcp \u2013dport 465 -j ACCEPT<br \/>\n-A INPUT -m state \u2013state NEW -m tcp -p tcp \u2013dport 993 -j ACCEPT<br \/>\n-A INPUT -m state \u2013state NEW -m tcp -p tcp \u2013dport 995 -j ACCEPT<br \/>\n-A INPUT -m state \u2013state NEW -m tcp -p tcp \u2013dport 7071 -j ACCEPT<br \/>\n-A INPUT -m state \u2013state NEW -m tcp -p tcp \u2013dport 7025 -j ACCEPT<\/p>\n<p>Press \u201cCtl+X\u201d to exit<br \/>\nSelect \u201cY\u201d to save changes<br \/>\nPress \u201cEnter\u201d to get back to CL<\/p>\n<p>&nbsp;<\/p>\n<p>Download Zimbra Installation<br \/>\nLatest Version 8.6.0 GA Release<br \/>\nhttp:\/\/www.zimbra.com\/downloads\/zimbra-collaboration-open-source<\/p>\n<p>&nbsp;<\/p>\n<p>Move Zimbra Download File To New VM<br \/>\nI downloaded the package to my local Windows workstation. From a Windows machine, an additional tool is required.\u00a0 There are a few options but I downloaded and used WinSCP v 5.5.2. It works.<\/p>\n<p>Copy downloaded Zimbra .tgz file (in this case zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz) from local workstation to \/tmp\/ directory on new VM. Simple click, drag and drop copies the file.<\/p>\n<p>&nbsp;<\/p>\n<p>Decompress and Install Zimbra<br \/>\nFrom the CL, decompress the file by running the following command:<br \/>\ntar xzf zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz<\/p>\n<p>&nbsp;<\/p>\n<p>Navigate to the newly created\/renamed directory:<br \/>\ncd zcs-8.6.0_GA_1153.RHEL7_64.20141215151110<\/p>\n<p>su root<br \/>\n.\/install.sh<\/p>\n<p>To uninstall (which you will need to do if you run into issues with the installation)<br \/>\n.\/install.sh -u<\/p>\n<p>&nbsp;<\/p>\n<p>Change admin password to a more complex password \u00a0(this is the admin console login)<br \/>\n\u201cr\u201d to return to previous screen<br \/>\n\u201ca\u201d to apply the changes<br \/>\nYes to save config to file<br \/>\nEnter to save to default config file<br \/>\nYes to modify system<\/p>\n<p>Save config in file: [\/opt\/zimbra\/config.23168]<br \/>\nMoving \/tmp\/zmsetup01072015-114839.log to \/opt\/zimbra\/log<\/p>\n<p>When complete, change user to zimbra<br \/>\nsu \u2013 zimbra<\/p>\n<p>Check status of Zimbra<br \/>\nzmcontrol status<\/p>\n<p>&nbsp;<\/p>\n<p>Verify Mail Server is Operational<br \/>\nOpen a browser and navigate to https:\/\/mail.yourdomain.com\u00a0(webmail console)<\/p>\n<p>Login using admin and password<\/p>\n<p>&nbsp;<\/p>\n<p>Open a browser and navigate to https:\/\/mail.yourdomain.com:7071 (admin console)<br \/>\nLogin using admin and password<\/p>\n<p>&nbsp;<\/p>\n<p>Once logged into your admin panel, continue configuration<br \/>\nConfigure-&gt;Global Settings-&gt;MTA<\/p>\n<p>Add hostname of your server (in this case, mail)<\/p>\n<p>Added New Domain yourdomain.com<\/p>\n<p>Setup admin@yourdomain.com with Global Admin rights<\/p>\n<p>Deleted domain created at setup mail.yourdomain.com<\/p>\n<p>Create user accounts<\/p>\n<p>Create distribution lists<\/p>\n<p>Create aliases<\/p>\n<p>&nbsp;<\/p>\n<p>Production<\/p>\n<p>To put this server into production, you will need to:<br \/>\n1. Contact your ISP and request a PTR record or reverse DNS.<br \/>\n2. Acquire a certificate from a trusted source.<br \/>\n3. Setup an MX record with your domain registrar<\/p>\n<p>&nbsp;<\/p>\n<p>Customizations<br \/>\nRebranding is limited with the OSS license. Ensure your read and understand the licensing agreement.<\/p>\n<p>Favicon Locations<br \/>\n\/opt\/zimbra\/jetty-distribution-9.1.5.v20140505\/webapps\/zimbraAdmin\/img\/logo\/favicon.ico<br \/>\n\/opt\/zimbra\/jetty-distribution-9.1.5.v20140505\/webapps\/zimbra\/img\/logo\/favicon.ico<\/p>\n<p>&nbsp;<\/p>\n<p>Changing the Page Title<\/p>\n<p>As zimbra user (su \u2013 zimbra):<br \/>\nvi \/opt\/zimbra\/jetty\/webapps\/zimbra\/WEB-INF\/classes\/messages\/ZmMsg.properties<br \/>\n[change value for zimbraTitle = &lt;new value&gt;]<br \/>\nvi \/opt\/zimbra\/jetty\/webapps\/zimbra\/WEB-INF\/classes\/messages\/ZhMsg.properties<br \/>\n[change value for zimbraTitle = &lt;new value&gt;]<\/p>\n<p>The first is for the advanced client and the second is for the basic client.<br \/>\nYou will need to restart jetty and clear your browser cache\/restart browser to see change take effect<\/p>\n<p>As zimbra user,<br \/>\nzmmailboxdctl restart<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Configure DNS Entries on your local DNS server Setup DNS A Record Ensure you have a Reverse lookup zone Setup MX Record<\/p>\n<p>Configure Host Settings Login as root user su root<\/p>\n<p>Install pre-requisites yum install wget make nc sudo sysstat libtool-ltdl glibc perl-core ntp unzip libaio<\/p>\n<p>Set hostname hostname mail.yourdomain.com<\/p>\n<p>Edit hostname file nano \/etc\/hostname [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5567"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5567"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5567\/revisions"}],"predecessor-version":[{"id":5568,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5567\/revisions\/5568"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}