Mail Piler

Installation des prérequis

apt purge postfix apt install gnupg2 sysstat python3-mysqldb mariadb-server default-libmysqlclient-dev memcached libapache2-mod-php php-mysql libtre5 libtre-dev openssl libssl-dev libzip-dev libzip4 build-essential gcc libwrap0 libwrap0-dev

Installation de Manticore

wget https://repo.manticoresearch.com/manticore-repo.noarch.deb dpkg -i manticore-repo.noarch.deb apt update apt install manticore manticore-columnar-lib systemctl start manticore systemctl disable manticore

Création des accès/droits

groupadd piler useradd -g piler -m -s /bin/bash -d /var/piler piler usermod -L piler chmod 755 /var/piler
mysql -u root -p
CREATE OR REPLACE USER 'piler'@'localhost' IDENTIFIED BY 'superpassword'; quit;

Installation de Piler

wget https://bitbucket.org/jsuto/piler/downloads/piler-1.4.1.tar.gz tar xvzf piler-1.4.1.tar.gz
./configure --localstatedir=/var \ --with-database=mysql \ --enable-tcpwrappers \ --enable-memcached make make install ldconfig
nano /usr/local/etc/piler/manticore.conf.dist

et retirer network_timeout

make postinstall

Please enter the webserver groupname [apache] www-data Please enter smtp relay []

Faire un backup du keyfile: /usr/local/etc/piler/piler.key

nano /usr/local/etc/piler/piler.conf

modifier le hostid

touch /usr/local/etc/piler/MANTICORE

nano /usr/local/etc/piler/manticore.conf

define('RT', 1);

nano /var/piler/www/config.php

$config['SPHINX_MAIN_INDEX'] = 'piler1';

systemctl daemon-reload systemctl enable rc.piler.service systemctl enable rc.searchd.service systemctl start rc.piler.service systemctl start rc.searchd.service
nano /etc/apache2/sites-enabled/000-default.conf
DocumentRoot /var/www/piler <Directory /var/piler/www> Require all granted AllowOverride all </Directory