Zimbra on FreeBSD
|This article applies to the following ZCS versions.|
README FIRST (please, do)
Please, do not start random threads in zimbra/installation forums AND if so, please, post a link in the dedicated sticky thread AND/OR send me an email, contact me on ICQ/Skype (have a look at my forum profile for more info). Most problems can be resolved within minutes and I am subscribed only to the main thread. Keep in mind that zimbra on FreeBSD is still officially unsupported and that means you won't get (the same as Linux users would) help from zimbra team.
Most people (like myself) got tons of other activities (like family/work) so they don't have time to read excessive amount of data.
If you spot a mistake, please, let me know - I am neither psychic or omnipotent.
If anyone wonders, this is not a joke.
The Perforce cache gives users access to download and build/modify Zimbra source code for Open Source products. Building Zimbra Collaboration Suite from Zimbra's Perforce cache requires advanced knowledge of troubleshooting. It is not available for Network Edition components. Changes cannot be committed to the Perforce cache.
By fetching Zimbra from zimbra.imladris.sk, you agree to Zimbra's and SUN's licensing terms. I am not good at legal stuff, screw it.
Technical support for source building can be found in the Zimbra Developers forum.
Zimbra does not support FreeBSD out of the box and there are no plans for the future support (or so we all heard).
Current version and changelist can be found on Pmweb.
I tried to integrate FreeBSD into source tree as much as possible so the same patched version:
a) will build on FreeBSD-6+ (provided the fact you can acquire required stuff),
b) should compile on the officially supported systems (Linux, Mac) without modification,
c) should survive the normal upgrade procedure.
Please, always check GNR FreeBSD thread for the latest news!
Patch notes for latest GNR-6.0.x and HELIX-7.1.x
This is a complete rework of Zimbra source tree and it sometimes makes things better than the original. Some notable changes:
1) openssl, bdb, libtool, popt, expat, pcre, libxml2, tcmalloc are used from base system.
Rest is too Zimbra specific and would be of no other use on the system.
2) Most perl modules (117+ at the moment) are used from base system. Those left unchanged are:
Getopt::Easy - not in /usr/ports and it's not really used at all besides one tiny script (no idea why not using Getopt::Long like usual),
DBD::mysql - mysql specific includes/libs not part of base,
Net-LDAPapi - ldap/cyrus-sasl specific includes/libs not part of base,
Mail-SpamAssassin - requires different datadir.
3) FreeBSD specific includes in ZimbraBuild/defs/FreeBSD* and ZimbraBuild/defs/ThirdParty/*
4) package generation is handled by pkg_create so we install real FreeBSD specific packages.
5) complete rework of PRE-INSTALL/POST-INSTALL/DEINSTALL scripts in ZimbraBuild/rpmconf/Spec/Scripts/FreeBSD.
6) libexec/zmfixperms now fixes all needed permissions. It is called in every POST-INSTALL script.
su - zimbra zmlocalconfig -e zmmtaconfig_interval=6000 zmprov mcf zimbraLogRawLifetime 7d zmprov mcf zimbraLogSummaryLifetime 30d /opt/zimbra/libexec/zmlogprocess
sed -I "" -e s'|.* \* \* \* \* /opt/zimbra/libexec/zmstatuslog|\*/60 \* \* \* \* /opt/zimbra/libexec/zmstatuslog|' /var/cron/tabs/zimbra
1) create a Zimbra FreeBSD specific start-up script in /usr/local/etc/rc.d.
This is the part where opensource community unites to solve all the problems!
Please, always check GNR FreeBSD thread when in doubt!
1) /opt/zimbra symlinked elsewhere.
we all do hate /opt/zimbra directory as it spoils our nice FreeBSD tree. but, please, resist the temptation to symlink it elsewhere as that will render zimbra unusable and the installation will fail. if you need to move the it somewhere else, please, use nullfs:
zimbra# grep nullfs /etc/fstab /usr/home/zimbra.solko /opt/zimbra nullfs rw 0 0
mount_nullfs /usr/home/zimbra.solko /opt/zimbra
alternatively, switch to ZFS as you all should!
I will try to keep this project real. If you don't see the new version here, please write me a request.
New versions require the same steps as the old ones (and little bit of brain power). When in doubt you can always browse the small zimbra repository at zimbra.imladris.sk to see the list of available files.
GNR-606 FreeBSD-8_amd64 packages (clamav 0.96 included)
GNR-606 FreeBSD-8_i386 packages (clamav 0.96 included)
--Solko 16:59, 12 June 2011 (PDT)