Skip to content

Instantly share code, notes, and snippets.

@jniltinho
Last active October 14, 2017 17:48
Show Gist options
  • Select an option

  • Save jniltinho/89577e625f68e19dfb86 to your computer and use it in GitHub Desktop.

Select an option

Save jniltinho/89577e625f68e19dfb86 to your computer and use it in GitHub Desktop.
Install Zimbra 8.6.0
#!/bin/bash
## Install Zimbra 8.6
## Ubuntu 14.04 64Bits, 4GB RAM, 100GB HD
## For best performance use SSD.
## http://www.linuxpro.com.br/2015/06/instalacao-do-zimbra-8-6-0-no-ubuntu.html
## Download Zimbra: https://www.zimbra.com/downloads/zimbra-collaboration-open-source/
## http://serverfault.com/questions/707997/zimbra-8-6-sends-some-mail-into-black-hole
## Run as root
apt-get update
apt-get upgrade
apt-get install -y libperl5.18 sysstat sqlite3 pax libhttp-date-perl
apt-get install -y libgetopt-mixed-perl libgmp10 unzip
apt-get install -y libmime-explode-perl file lvm2 libaio1
echo '
alias mailq="/opt/zimbra/postfix/sbin/mailq"
alias postsuper="/opt/zimbra/postfix/sbin/postsuper"
alias postcat="/opt/zimbra/postfix/sbin/postcat"
alias tmail="tail -f /var/log/mail.log"
' >> /root/.bashrc
source /root/.bashrc
cd /tmp/
wget --no-check-certificate -c https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116.tgz
wget --no-check-certificate -c https://files.zimbra.com/downloads/8.6.0_GA/zcs-patch-8.6.0_GA_1194.tgz
tar -xvf zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116.tgz
cd zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116
./install.sh
cd ../
sleep 60
tar -xvf zcs-patch-8.6.0_GA_1194.tgz
cd zcs-patch-8.6.0_GA_1194
./installPatch.sh
cd ../
rm -rf zcs-patch-8.6.0_GA_1194 zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116
exit
## Reboot your Server run command (init 6 or reboot)
## Run command below after reboot
HOSTNAME=$(su - zimbra -c "zmhostname")
su - zimbra -c "zmprov ms $HOSTNAME zimbraMtaLmtpHostLookup native"
su - zimbra -c "postfix reload"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment