October 18, 2013

Install MailPiler 0.1.24 on CentOS 6.4 x64

Here are the instructions for installing the open source email archiving software MailPiler. MailPiler is similar to the popular email archiving software, MailArchiva, but offers more features than the free version at the same price. Smile

Let’s get started…..

1. Do a base install of the CentOS 6.4 x64 minimal iso. Be sure to give it a name and a static IP address.

2. We need a few more repositories than what comes with CentOS.

rpm -Uvh http://mirror.cogentco.com/pub/linux/epel/6/x86_64/epel-release-6-8.noarch.rpm && rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

3. Install the Apache Web Server: yum install httpd && chkconfig httpd on && service httpd start

4. Install the MySQL database engine: yum install mysql-serverchkc && chkconfig mysqld on && service mysqld start && mysql_secure_installation

5. Install a few other dependencies: yum install mysql-devel openssl-devel tre-devel php php-mysql php-gd memcached catdoc libpst libzip sysstat poppler-utils unrtf wget tcp_wrappers

6. Make sure we can install from source: yum install gcc make

7. Install xlhtml with sj mod: wget https://bitbucket.org/jsuto/piler/downloads/xlhtml-0.5.1-sj-mod.tar.gz && tar xfvz xlhtml* && cd xlhtml*  && ./configure && make && make install

8. Install the Sphinx search engine (Do not start the service or enable to autostart…yet): yum install sphinx

9. Create a user and group to run piler: groupadd piler && useradd -g piler -s /bin/sh -d /var/piler piler && usermod -L piler && make && make install && make postinstall

10. Download and install piler: cd ~ && wget https://bitbucket.org/jsuto/piler/downloads/piler-0.1.24.tar.gz && tar xfvz piler* && cd piler* && ./configure --localstatedir=/var --with-database=mysql --enable-starttls && make && make install & make postinstall


11. Register the piler library: echo /usr/local/lib > /etc/ld.so.conf.d/piler.conf && ldconfig

12. Create the Apache Virtual Host for piler: vi /etc/httpd/conf.d/piler.conf


13. Edit piler’s config file to use the MySQL settings provided in step 10: vi /usr/local/etc/piler.conf


14. Setup the piler startup script: cd ~/piler* /init.d && cp rc.piler /etc/init.d/piler && chmod +x /etc/init.d/piler &&  sed -i '4i # chkconfig: 235 98 40' /etc/init.d/piler && chkconfig –add piler && chkconfig piler on

15. Setup piler’s custom sphinx startup script: mv /etc/init.d/searchd /etc/init.d/searchd.old && cp ~/piler*/init.d/rc.searchd /etc/init.d/searchd && chmod +x /etc/init.d/searchd && sed -i '4i # chkconfig: 235 97 42' /etc/init.d/searchd && chkconfig –add searchd && chkconfig searchd on && service searchd start

16. Stop and disable postfix before starting piler: service postfix stop && chkconfig postfix off

17. Start piler and restart Apache: service piler start && service httpd restart

18. Open ports in the firewall to allow access to piler’s web interface: yum install system-config-firewall-tui && system-config-firewall-tui

No comments:

Post a Comment