chrsoo / docker-piler-mail

Piler email archiver as docker image (http://mailpiler.org)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-piler-mail

Piler email archiver as Docker image (http://mailpiler.org)

Configure New Installation:

git clone https://github.com/heri16/docker-piler-mail.git
cp docker-piler-mail/usr/local/etc/piler/piler.conf.dist docker-piler-mail/usr/local/etc/piler/piler.conf
sudo mv docker-piler-mail/usr/local/etc/piler/. /usr/local/etc/piler/
sudo restorecon -Rv /usr/local/etc/piler
ls -Z /usr/local/etc/piler
docker run -ti --rm -v /usr/local/etc/piler/:/usr/local/etc/piler:rw heri16/piler-mail
# display_install_intro
# gather_mysql_account
# make_new_key
# make_certificate

Usage in docker-compose.yml:

services:
  piler_indexer:
    build: ./docker-piler-mail
    expose:
      - "25"
      - "9306"
    volumes:
      - /usr/local/etc/piler/:/usr/local/etc/piler:ro
      - /var/piler/store/:/var/piler/store:rw,z
      - /var/piler/stat/:/var/piler/stat:rw,z
      - /var/piler/sphinx/:/var/piler/sphinx:rw,Z
      - /var/piler/imap/:/var/piler/imap:rw,Z
      - /var/piler/tmp/:/var/piler/tmp:rw,Z

Troubleshooting:

# Reindex sphinx indexes
docker exec -ti piler_indexer_1 /bin/bash -c "su piler -c 'indexer --all --config /usr/local/etc/piler/sphinx.conf'"

About

Piler email archiver as docker image (http://mailpiler.org)

License:MIT License


Languages

Language:Shell 100.0%