linux:mailpiler
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| linux:mailpiler [2022/09/09 19:44] – créée root | linux:mailpiler [2023/03/27 13:08] (Version actuelle) – [Installation de Piler] root | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ====== Mail Piler ====== | ====== Mail Piler ====== | ||
| - | <code bash> | ||
| - | apt install libtre5 | ||
| - | wget https:// | ||
| - | wget http:// | ||
| - | dpkg -i libzip5_1.5.1-0ubuntu1_amd64.deb | + | ===== Installation des prérequis ===== |
| - | dpkg -i piler_1.3.12-focal-eb2b22b2_amd64.deb | + | |
| - | cp / | + | <code bash>apt purge postfix |
| - | nano /etc/piler/piler.conf | + | apt install gnupg2 sysstat python3-mysqldb mariadb-server default-libmysqlclient-dev memcached libapache2-mod-php php-mysql libtre5 libtre-dev openssl libssl-dev |
| - | hostid=piler.yourdomain.com | ||
| - | listen_addr=0.0.0.0 | ||
| - | listen_port=2525 | ||
| - | mysqldb=piler | ||
| - | mysqlpwd=verystrongpassword | ||
| - | mysqluser=piler | ||
| + | ===== Installation de Manticore ===== | ||
| + | <code bash> | ||
| + | dpkg -i manticore-repo.noarch.deb | ||
| + | apt update | ||
| + | apt install manticore manticore-columnar-lib | ||
| + | systemctl start manticore | ||
| + | systemctl disable manticore | ||
| + | </ | ||
| - | mysql -u root -p | ||
| - | create database piler character set ' | ||
| - | grant all privileges on piler.* to piler@localhost identified by ' | ||
| - | flush privileges; | ||
| - | quit; | ||
| - | mysql -u piler -p piler < /usr/ | + | ===== Création des accès/droits ===== |
| - | wget http:// | + | |
| - | tar xvzf sphinx-3.4.1-efbcc65-linux-amd64.tar.gz | + | useradd |
| - | cp /sphinx-3.4.1/bin/* /usr/bin | + | usermod |
| + | chmod 755 /var/piler</code> | ||
| + | - <code bash> | ||
| + | quit;</ | ||
| - | crontab -e -u piler | + | ===== Installation de Piler ===== |
| - | /// A VERIFIER | + | <code bash> |
| - | 5,35 * * * * /usr/local/ | + | tar xvzf piler-1.4.1.tar.gz</code> |
| - | 30 2 * * * / | + | |
| - | 40 3 * * * / | + | |
| - | */15 * * * * / | + | |
| - | */15 * * * * / | + | |
| - | */5 * * * * / | + | |
| - | */5 * * * * / | + | |
| - | 3 * * * * / | + | |
| - | 2 0 * * * / | + | |
| - | /var/piler/www/ | + | <code bash> |
| + | --with-database=mysql \ | ||
| + | --enable-tcpwrappers \ | ||
| + | --enable-memcached | ||
| + | make | ||
| + | make install | ||
| + | ldconfig< | ||
| - | / | + | <code bash> |
| + | et retirer network_timeout | ||
| + | |||
| + | |||
| + | <code bash> | ||
| + | | ||
| + | | ||
| + | |||
| + | Faire un backup du keyfile: / | ||
| + | |||
| + | <code bash> | ||
| + | | ||
| + | |||
| + | touch / | ||
| + | |||
| + | <code bash> | ||
| + | define(' | ||
| + | |||
| + | <code bash> | ||
| + | | ||
| + | |||
| + | <code bash> | ||
| + | systemctl enable rc.piler.service | ||
| + | systemctl enable rc.searchd.service | ||
| + | systemctl start rc.piler.service | ||
| + | systemctl start rc.searchd.service</ | ||
| + | |||
| + | <code bash> | ||
| + | |||
| + | |||
| + | < | ||
| + | Require all granted | ||
| + | AllowOverride all | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | a2enmod rewrite | ||
| + | systemctl restart apache2 | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | nano /usr/local/ | ||
| + | $config[' | ||
| + | |||
| + | <code bash> | ||
| + | archive_address=archive@mail-arch.makeitsimple.be | ||
| + | rtindex=1 | ||
| + | sphxdb=piler1 | ||
| + | sphxhost=127.0.0.1 | ||
| + | sphxport=9306 | ||
| + | </ | ||
| + | |||
| + | Config MYSQL Recommandée: | ||
| + | < | ||
| + | innodb_buffer_pool_size = 256M | ||
| + | innodb_flush_log_at_trx_commit=1 | ||
| + | innodb_log_buffer_size=64M | ||
| + | innodb_log_file_size=64M | ||
| + | innodb_read_io_threads=4 | ||
| + | innodb_write_io_threads=4 | ||
| + | innodb_log_files_in_group=2 | ||
| + | |||
| + | innodb_file_per_table</ | ||
| + | |||
| + | Import piler: | ||
| + | <code bash> | ||
| + | mkdir / | ||
| + | ln -s / | ||
| + | ln -s / | ||
| + | / | ||
| + | </ | ||
linux/mailpiler.1662752675.txt.gz · Dernière modification : de root
