Piler Archival Server Installation at Jakson: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 8: | Line 8: | ||
sestatus | |||
vi /etc/sysconfig/selinux - disable | |||
reboot | |||
Install MariaDB | Install MariaDB | ||
yum search mariadb-devel mariadb-libs | |||
yum search mariadb-devel.x86_64 mariadb-libs.x86_64 | |||
yum install mariadb-devel.x86_64 mariadb-libs.x86_64 | |||
Remove Postfix | Remove Postfix | ||
yum -y remove postfix && yum -y update | |||
yum -y install epel-release gcc make wget libzip sysstat | |||
yum -y install tre tre-devel python python-devel MySQL-python openssl openssl-devel | |||
yum -y install http://sphinxsearch.com/files/sphinx-2.3.2-1.rhel7.x86_64.rpm | |||
yum install https://centos7.iuscommunity.org/ius-release.rpm OR yum install https://repo.ius.io/ius-release-el$(rpm -E '%{rhel}').rpm | |||
yum -y install httpd mod_ssl php72u php72u-cli php72u-common php72u-gd php72u-mbstring php72u-mysqlnd php72u-pdo php72u-ldap | |||
yum install mariadb-server | |||
systemctl restart mariadb && systemctl enable mariadb | |||
mysql_secure_installation - Set root password | |||
yum -y install tcp_wrappers tcp_wrappers-devel catdoc poppler poppler-utils unrtf tnef libpst | |||
cd && wget https://bitbucket.org/jsuto/piler/downloads/xlhtml-0.5.1-sj-mod.tar.gz && tar xfvz xlhtml* && cd xlhtml* && ./configure && make && make install | |||
cd | |||
groupadd piler | |||
useradd -g piler -m -s /bin/sh -d /var/piler piler | |||
usermod -L piler | |||
chmod 755 /var/piler | |||
cd && wget https://bitbucket.org/jsuto/piler/downloads/piler-1.3.5.tar.gz | |||
tar zxvf piler-* && cd piler-* | |||
./configure --localstatedir=/var --with-database=mysql | |||
make | |||
make install | |||
ldconfig | |||
make postinstall | |||
#Continue? Yes | |||
#Please enter mysql password for piler [set_new_password] | |||
#Please enter mysql root password | |||
#Please enter smtp relay [mailserver.domain.com] | |||
#Correct? Yes | |||
#Continue and modify? Yes | |||
#Continue? Yes | echo /usr/local/lib > /etc/ld.so.conf.d/piler.conf | ||
#Please enter mysql password for piler [set_new_password] | ldconfig -v | ||
#Please enter mysql root password | hostname | ||
#Please enter smtp relay [mailserver.domain.com] | vi /usr/local/etc/piler/piler.conf - hostid as hostname | ||
#Correct? Yes | /etc/init.d/rc.piler start | ||
#Continue and modify? Yes | su - piler | ||
indexer --config /usr/local/etc/piler/sphinx.conf --all | |||
reindex -a | |||
/etc/init.d/rc.searchd start | |||
sed -i '$ a /etc/init.d/rc.piler start' /etc/rc.d/rc.local | |||
sed -i '$ a /etc/init.d/rc.searchd start' /etc/rc.d/rc.local | |||
chmod 755 /etc/rc.d/rc.local | |||
sed -i 's|DirectoryIndex index.html|DirectoryIndex index.html index.php|' /etc/httpd/conf/httpd.conf | |||
sed -i 's|DocumentRoot "/var/www/html"|DocumentRoot "/var/piler/www"|' /etc/httpd/conf/httpd.conf | |||
sed -i 's|ErrorLog "logs/error_log"|ErrorLog "/var/log/httpd/mailarchiver-error.log"|' /etc/httpd/conf/httpd.conf | |||
sed -i '$ a <Directory "/var/piler/www">' /etc/httpd/conf/httpd.conf | |||
sed -i '$ a AllowOverride All' /etc/httpd/conf/httpd.conf | |||
sed -i '$ a Require all granted' /etc/httpd/conf/httpd.conf | |||
sed -i '$ a </Directory>' /etc/httpd/conf/httpd.conf | |||
sed -i '$ a Defaults requiretty' /etc/sudoers | |||
sed -i '$ a Defaults:%apache !requiretty' /etc/sudoers | |||
apachectl configtest | |||
systemctl restart httpd | |||
systemctl restart firewalld && systemctl enable firewalld | |||
firewall-cmd --permanent --zone=public --add-service=smtp | |||
firewall-cmd --permanent --zone=public --add-service=http | |||
firewall-cmd --permanent --zone=public --add-service=https | |||
firewall-cmd --reload | |||
cd /var/log//httpd/ | |||
less mailarchiver-error.log | |||
tail -f mailarchiver-error.log | |||
php -v | |||
cp /var/piler/www/config-site.php /usr/local/etc/piler/ | |||
http://Ip_address | http://Ip_address | ||
user admin@local | user admin@local | ||
default pass - pilerrocks | default pass - pilerrocks | ||
Latest revision as of 11:14, 6 August 2020
https://community.spiceworks.com/how_to/138923-how-to-install-mailpiler-on-centos-7
sestatus vi /etc/sysconfig/selinux - disable reboot
Install MariaDB
yum search mariadb-devel mariadb-libs yum search mariadb-devel.x86_64 mariadb-libs.x86_64 yum install mariadb-devel.x86_64 mariadb-libs.x86_64
Remove Postfix
yum -y remove postfix && yum -y update yum -y install epel-release gcc make wget libzip sysstat yum -y install tre tre-devel python python-devel MySQL-python openssl openssl-devel yum -y install http://sphinxsearch.com/files/sphinx-2.3.2-1.rhel7.x86_64.rpm yum install https://centos7.iuscommunity.org/ius-release.rpm OR yum install https://repo.ius.io/ius-release-el$(rpm -E '%{rhel}').rpm yum -y install httpd mod_ssl php72u php72u-cli php72u-common php72u-gd php72u-mbstring php72u-mysqlnd php72u-pdo php72u-ldap yum install mariadb-server systemctl restart mariadb && systemctl enable mariadb mysql_secure_installation - Set root password yum -y install tcp_wrappers tcp_wrappers-devel catdoc poppler poppler-utils unrtf tnef libpst cd && wget https://bitbucket.org/jsuto/piler/downloads/xlhtml-0.5.1-sj-mod.tar.gz && tar xfvz xlhtml* && cd xlhtml* && ./configure && make && make install cd groupadd piler useradd -g piler -m -s /bin/sh -d /var/piler piler usermod -L piler chmod 755 /var/piler cd && wget https://bitbucket.org/jsuto/piler/downloads/piler-1.3.5.tar.gz tar zxvf piler-* && cd piler-* ./configure --localstatedir=/var --with-database=mysql make make install ldconfig make postinstall #Continue? Yes #Please enter mysql password for piler [set_new_password] #Please enter mysql root password #Please enter smtp relay [mailserver.domain.com] #Correct? Yes #Continue and modify? Yes echo /usr/local/lib > /etc/ld.so.conf.d/piler.conf ldconfig -v hostname vi /usr/local/etc/piler/piler.conf - hostid as hostname /etc/init.d/rc.piler start su - piler indexer --config /usr/local/etc/piler/sphinx.conf --all reindex -a /etc/init.d/rc.searchd start sed -i '$ a /etc/init.d/rc.piler start' /etc/rc.d/rc.local sed -i '$ a /etc/init.d/rc.searchd start' /etc/rc.d/rc.local chmod 755 /etc/rc.d/rc.local sed -i 's|DirectoryIndex index.html|DirectoryIndex index.html index.php|' /etc/httpd/conf/httpd.conf sed -i 's|DocumentRoot "/var/www/html"|DocumentRoot "/var/piler/www"|' /etc/httpd/conf/httpd.conf sed -i 's|ErrorLog "logs/error_log"|ErrorLog "/var/log/httpd/mailarchiver-error.log"|' /etc/httpd/conf/httpd.conf sed -i '$ a <Directory "/var/piler/www">' /etc/httpd/conf/httpd.conf sed -i '$ a AllowOverride All' /etc/httpd/conf/httpd.conf sed -i '$ a Require all granted' /etc/httpd/conf/httpd.conf sed -i '$ a </Directory>' /etc/httpd/conf/httpd.conf sed -i '$ a Defaults requiretty' /etc/sudoers sed -i '$ a Defaults:%apache !requiretty' /etc/sudoers apachectl configtest systemctl restart httpd systemctl restart firewalld && systemctl enable firewalld firewall-cmd --permanent --zone=public --add-service=smtp firewall-cmd --permanent --zone=public --add-service=http firewall-cmd --permanent --zone=public --add-service=https firewall-cmd --reload cd /var/log//httpd/ less mailarchiver-error.log tail -f mailarchiver-error.log php -v cp /var/piler/www/config-site.php /usr/local/etc/piler/
http://Ip_address user admin@local default pass - pilerrocks
for LDAP user access /var/piler/www/config.php
$config['ENABLE_LDAP_AUTH'] = 1; $config['LDAP_HOST'] = 'zimbra.yourdomain.com'; $config['LDAP_MAIL_ATTR'] = 'mail'; $config['LDAP_ACCOUNT_OBJECTCLASS'] = 'zimbraAccount'; $config['LDAP_DISTRIBUTIONLIST_OBJECTCLASS'] = 'zimbraDistributionList'; $config['LDAP_DISTRIBUTIONLIST_ATTR'] = 'zimbraMailForwardingAddress'; $config['LDAP_HELPER_DN'] = 'uid=zimbra,cn=admins,cn=zimbra'; $config['LDAP_HELPER_PASSWORD'] = 'xxxxxxx';
Get password from zimbra Server by
su - zimbra zmlocalconfig -s zimbra_ldap_password --> zimbra_ldap_password = 8BNztQFG3
In Zimbra (suite your config )
in /opt/zimbra/common/conf/main.cf Add always_bcc = archive@piler.yourdomain.com restart zimbra Check logs