Below is version 4 at combining bits I have gathered throughout the forums into a compact step-by-step guide for installing Zimbra 5.0.4 or later onto openSUSE 10.3.
THESE INSTRUCTIONS WILL NOT WORK FOR VERSIONS EARLIER THAN ZCS 5.0.4.
If you are installing Zimbra 4.5.x on openSUSE 10.2 or 10.3 then
click here
This guide has had only limited testing (using ZCS 5.0.4 and 5.0.5) so please reply to this thread if you see any issues or mistakes.
v2 - added advice about AppArmor and Firewall in step 8.
v3 - add --platform-override to running install script.
v4 - subtract and add steps to bring into line with 5.0.4 and later.
Cheers
bigmudcake
- Make sure the following packages are installed including associated dependencies otherwise the install will probably fail.
(Note: no need to install compat-openssl097g)
fetchmail, cURL, libidn, GMP, sudo, compat-libstdc++, libopenssl0_9_8
ITS REALLY IMPORTANT ALL PACKAGES MENTIONED ARE INSTALLED
- Remove any packages you do not need to run on your server, this makes your server simpler, faster and less likely to conflict with Zimbra.
Unless your a Linux Expert, remove AppArmor, Apache, MySQL, OpenLDAP, Amavis, Spamassassin, but make sure Postfix is installed.
- Make sure your DNS server is setup correctly with the hostname having A and MX records.
Also check the /etc/resolv.conf, /etc/host.conf, and /etc/nsswitch.conf files to make sure your DNS server is being accessed correctly.
Refer to this zimbra blog for help or other references on the web on how to setup a proper DNS server under openSUSE 10.3
- Make sure the hostname you wish to use is located in /etc/hosts file as a Fully Qualified Name (FQN).
- Download the openSUSE 10.2 zimbra package and unpack using tar xzvf zimbra_package.tgz
- Edit the file /etc/syslog-ng/syslog-ng.conf and add the following lines to the end of the file (if they don't already exist) :
Code:
# Zimbra logger
filter f_local0 { facility(local0); }; # zimbra
destination zmail { file("/var/log/zimbra.log" owner("zimbra") ); }; # zimbra
log { source(src); filter(f_mail); destination(zmail); }; # zimbra
destination local0 { file("/var/log/zimbra.log" owner("zimbra") ); }; # zimbra
log { source(src); filter(f_local0); destination(local0); }; # zimbra
filter f_auth { facility(auth); }; # zimbra
destination zmauth { file("/var/log/zimbra.log" owner("zimbra") ); }; # zimbra
log { source(src); filter(f_auth); destination(zmauth); }; # zimbra - Turn off any conflicting services you may be running.
i.e. for Postfix use the following commands:
service postfix stop
chkconfig postfix off
It is recommended you turn off AppArmor and Firewall unless your a Linux expert.
- Start the installation process for Zimbra by running the following command from the zcs folder.
Code:
./install.sh --platform-override
- When the installation process stops at "This platform is UNKNOWN, Install anyway? [N]," press Y and Enter to continue.
- When installation is complete, run the following command
chkconfig --del zimbra
- Edit the file /etc/init.d/zimbra and add the following lines below the existing comments at the top of the file.
Code:
### BEGIN INIT INFO
# Provides: zimbra
# Required-Start: $network $syslog
# Required-Stop:
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: Zimbra mail service
### END INIT INFO
- Run the following commands to get zimbra to startup correctly.
chkconfig --add zimbra ; chkconfig zimbra on
- Edit the file /etc/logrotate.d/zimbra and find the line in the file as:
Code:
killall -HUP syslogd 2> /dev/null || true
modify the line to:
Code:
killall -HUP syslog-ng 2> /dev/null || true
- Run the following commands to restart the zimbra server so post-installation changes can take effect.
su - zimbra
zmcontrol stop
zmcontrol start
exit
All should be complete and operational :-)