User Tools

Site Tools


linux:debian:mailpiler

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:debian:mailpiler [2015/04/19 22:38]
ozan
linux:debian:mailpiler [2015/05/04 05:51] (current)
Line 1: Line 1:
 +===== mailpiler - Debian Setup =====
 +
 +[[http://​www.mailpiler.org|What is mailpiler?​]]
 +<wrap hi>Piler is an open source email archiving solution with all the necessary features for your enterprise.</​wrap>​
 +
 +mailpiler v1.1.1\\
 +Debian v7.8\\
 +
 +This document is improved version of the following content\\
 +http://​potlatchtech.blogspot.com.tr/​2013/​12/​piler-on-debian-wheezy.html
 +
 +<file bash>
 +#become root at first
 +su
 +</​file>​
 +
 +<file bash>
 +apt-get install openssl libssl-dev apache2 php5 php5-gd mysql-server php5-mysql libmysqlclient-dev php5-ldap memcached php5-memcache sphinxsearch libtre-dev libzip2 libzip-dev sysstat gcc libwrap0 libwrap0-dev latex2rtf latex2html catdoc libpoppler19 poppler-utils unrtf make unrtf catdoc tnef libtre5
 +</​file>​
 +
 +<file bash>​nano /​etc/​default/​sphinxsearch</​file>​
 +Edit the section to make sure it says START="​no"​
 +
 +<file bash>
 +mkdir /​var/​www/​piler
 +a2enmod rewrite
 +nano /​etc/​apache2/​sites-enabled/​000-default</​file>​
 +Modify all lines that are AllowOverride to All at the end.
 +Modify DocumentRoot to location of piler web directory. (/​var/​www/​piler)
 +<file bash>​service apache2 restart</​file>​
 +
 +<file bash>
 +groupadd piler
 +useradd -g piler -s /bin/sh -d /var/piler piler
 +usermod -L piler
 +</​file>​
 +
 +<file bash>
 +cd ~/Downloads
 +wget https://​bitbucket.org/​jsuto/​piler/​downloads/​piler-1.1.1.tar.gz
 +tar xzf piler-1.1.1.tar.gz
 +cd piler-1.1.1
 +</​file>​
 +
 +<file bash>
 +./configure --localstatedir=/​var --with-database=mysql --enable-starttls --enable-tcpwrappers
 +make
 +make install
 +make postinstall
 +/​var/​www/​piler
 +www-data
 +[enter]
 +[enter]
 +root (could use default if willing to adjust more mysql permissions)
 +[password]
 +[password]
 +/​etc/​sphinxsearch/​sphinx.conf
 +[enter]
 +[enter]
 +y
 +y
 +</​file>​
 +
 +<file bash>
 +nano /​usr/​local/​etc/​piler.conf # Update the config file according to your needs.
 +
 +nano /​var/​www/​piler/​config-site.php # Update the config file according to your needs
 +</​file>​
 +edit site specific information\\
 +SITE_NAME\\
 +SITE_URL\\
 +DIR_BASE\\
 +PILER_HOST (Set to IP address of server)\\
 +SMTP_DOMAIN\\
 +SMTP_FROMADDR\\
 +ADMIN_EMAIL\\
 +(My DB info was already accurate.)
 +
 +Change listening port to 587 at piler.conf file
 +Then forward all incoming requests from 25 to 587 with iptables. After reboot, rules will be lost so you should make it persistent.
 +[[https://​wiki.debian.org/​iptables]]
 +<file bash>
 +iptables -t nat -A PREROUTING -p tcp --dport 25 -j REDIRECT --to-ports 587
 +</​file>​
 +
 +<file bash>
 +# to make piler start daemon a service
 +update-rc.d rc.piler defaults
 +# to make piler search daemon a service
 +update-rc.d rc.searchd defaults
 +
 +ldconfig
 +
 +# start the daemons
 +service rc.piler start
 +service rc.searchd start
 +</​file>​
 +
 +If you want to see how I configured the php settings of mail piler (basically for LDAP/Active Directory) you can check out this page\\
 +[[linux:​debian:​mailpiler:​web-configuration]]
 +
 +Visit your domain.com and use the following username and password
 +
 +admin@local\\
 +pilerrocks
 +{{tag>​mailpiler mail_piler piler email_archive piler_mail setup linux debian}}
 +~~DISCUSSION~~
  
linux/debian/mailpiler.txt ยท Last modified: 2015/05/04 05:51 (external edit)