Skip to content
Uplusware edited this page Dec 28, 2021 · 102 revisions
  • Install and configure MariaDB and memcached and their development libraries.
    • Ubuntu16-x86_64bit
      • sudo apt-get install mariadb-server libmariadb-client-lgpl-dev libmariadbclient-dev memcached libmemcached-dev
    • CentOS8-x86_64bit
      • dnf install @mariadb
      • systemctl enable --now mariadb
      • mysql_secure_installation
      • dnf --enablerepo=powertools install libmemcached-devel
      • yum install mariadb-connector-c-devel.x86_64

Install by binary

Download install package from http://uplusware.net/.

Run tar -xzf erisemail_***.gz
Run cd erisemail_filename
Edit the file of erisemail-utf8.conf. set domain, database and others.

  • install erisemail:
    sudo ./install.sh sudo eriseutil --install
    Start or Stop the service
  • Run /etc/init.d/erisemail start
  • Run /etc/init.d/erisemail stop

Install by source code

  • sudo apt-get install gcc g++ make openjdk-8-jdk unzip

  • Enter the directory the source code of erisemail

  • Download and build libtasn1

    • Download libasn1 from https://www.gnu.org/software/libtasn1/
    • Extract and rename or ln -s it to libtasn1,the default path is '${ERISEMAIL_SOURCE}/libtasn1'.
    • cd libtasn1
    • ./configure --enable-shared=no
    • make
    • sudo make install
  • Download and build libmemcached

  • Download and build OpenSSL

    • Download openssl from https://www.openssl.org/source/ into the erisemail source code tree.
      • eg.: wget https://www.openssl.org/source/openssl-1.0.2j.tar.gz
    • Extract and rename or ln -s it to openssl,the default path is '${ERISEMAIL_SOURCE}/openssl'.
    • cd openssl
    • ./config
    • make
    • make test
    • make install
  • Download and install Hadoop(If want to support HDFS feature)

    • Download Hadoop http://hadoop.apache.org/releases.html if want HDFS based, the default path is '{ERISEMAIL_SOURCE}/Hadoop'.
    • cd src/
    • vim Makefile
      edit the dir of OPENSSL_DIR, HADOOP_DIR, LIBJVM_DIR and mariadb in the Makefile to your own set.
      eg. LIBJVM_DIR= /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/
      -I/usr/include/mariadb/
  • Build erisemail

    • make
    • make LDAP if want to support LDAP
    • make HDFS=1 if want HDFS based.
    • make DIST=1 if want clusting
  • cd ../script

  • edit the file of erisemail-utf8.conf. set domain, database.
    vim erisemail-utf8.conf
    cd ../

  • Run bash build_release_install.sh in installation package

  • Run /usr/bin/eriseutil --install
    start or stop erisemail:

  • Run/etc/init.d/erisemail start

  • Run/etc/init.d/erisemail stop

  • Please refer Online Manual in the installation package

  • edit hostname to your mail domain.
    vim /etc/hostname or #hostname mail_domain can resolve the error 'Helo command rejected: need fully-qualified hostname';