linux:mailpiler
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| linux:mailpiler [2022/12/19 13:32] – root | linux:mailpiler [2023/03/27 13:08] (Version actuelle) – [Installation de Piler] root | ||
|---|---|---|---|
| Ligne 2: | Ligne 2: | ||
| ===== Installation des prérequis ===== | ===== Installation des prérequis ===== | ||
| + | |||
| + | <code bash>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 | ||
| + | |||
| + | |||
| + | ===== Installation de Manticore ===== | ||
| <code bash> | <code bash> | ||
| Ligne 11: | Ligne 17: | ||
| </ | </ | ||
| - | ===== Installation de Manticore ===== | ||
| - | apt install libtre5 | ||
| - | wget https:// | ||
| - | wget http:// | ||
| - | dpkg -i libzip5_1.5.1-0ubuntu1_amd64.deb | + | ===== Création des accès/ |
| - | dpkg -i piler_1.3.12-focal-eb2b22b2_amd64.deb | + | |
| - | cp /etc/piler/piler.conf.dist | + | - <code bash> |
| - | nano /etc/piler/piler.conf | + | useradd -g piler -m -s /bin/bash -d /var/ |
| + | usermod -L piler | ||
| + | chmod 755 /var/piler</code> | ||
| - | hostid=piler.yourdomain.com | + | - <code bash> |
| - | listen_addr=0.0.0.0 | + | quit;</ |
| - | listen_port=2525 | + | |
| - | mysqldb=piler | + | |
| - | mysqlpwd=verystrongpassword | + | |
| - | mysqluser=piler | + | |
| + | ===== Installation de Piler ===== | ||
| + | <code bash> | ||
| + | tar xvzf piler-1.4.1.tar.gz</ | ||
| - | mysql -u root -p | + | <code bash> |
| - | create | + | --with-database=mysql \ |
| - | grant all privileges on piler.* to piler@localhost identified by ' | + | --enable-tcpwrappers \ |
| - | flush privileges; | + | --enable-memcached |
| - | quit; | + | make |
| + | make install | ||
| + | ldconfig</ | ||
| - | mysql -u piler -p piler < /usr/share/piler/db-mysql.sql | + | <code bash> |
| + | et retirer network_timeout | ||
| - | wget http:// | ||
| - | tar xvzf sphinx-3.4.1-efbcc65-linux-amd64.tar.gz | ||
| - | cp / | ||
| + | <code bash> | ||
| + | | ||
| + | | ||
| - | crontab -e -u piler | + | Faire un backup du keyfile: / |
| - | /// A VERIFIER | + | <code bash> |
| - | 5,35 * * * * / | + | modifier le hostid |
| - | 30 2 * * * / | + | |
| - | 40 3 * * * / | + | |
| - | */15 * * * * / | + | |
| - | */15 * * * * / | + | |
| - | */5 * * * * / | + | |
| - | */5 * * * * / | + | |
| - | 3 * * * * / | + | |
| - | 2 0 * * * / | + | |
| - | /var/piler/www/ | + | touch /usr/local/etc/piler/MANTICORE |
| - | / | + | <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.1671456742.txt.gz · Dernière modification : de root
