Giter Club home page Giter Club logo

iredmail-docker's Introduction

iRedMail Docker Container

iRedMail allows to deploy an OPEN SOURCE, FULLY FLEDGED, FULL-FEATURED mail server in several minutes, for free. If several minutes is long time then this docker container can reduce help you and deploy your mail server in seconds.

Current version of container uses MySQL for accounts saving. In the future the LDAP can be used, so pull requests are welcome. Container contains all components (Postfix, Dovecot, Fail2ban, ClamAV, Roundcube, and SoGo) and MySQL server. The hostname of the mail server can be set using the normal docker methods (docker run -h <host> or setting 'hostname' in a docker compose file). In order to customize the container several environmental variables are allowed:

  • MYSQL_ROOT_PASSWORD - Root password for MySQL server installation
  • POSTMASTER_PASSWORD - Initial password for postmaster@DOMAIN. Password can be generated according to wiki. ({PLAIN}password)
  • TZ - Container timezone that is propagated to other components
  • SOGO_WORKERS - Number of SOGo workers which can affect SOGo interface performance.

Container is prepared to handle data as persistent using mounted folders for data. Folders prepared for initialization are:PATH/

  • /var/lib/mysql
  • /var/vmail
  • /var/lib/clamav

With all information prepared, let's test your new iRedMail server:

docker run --privileged -p 80:80 -p 443:443 \
           -h HOSTNAME.DOMAIN \
           -e "MYSQL_ROOT_PASSWORD=password" \
           -e "SOGO_WORKERS=1" \
           -e "TZ=Europe/Prague" \
           -e "POSTMASTER_PASSWORD={PLAIN}password" \
           -e "IREDAPD_PLUGINS=['reject_null_sender', 'reject_sender_login_mismatch', 'greylisting', 'throttle', 'amavisd_wblist', 'sql_alias_access_policy']" \
           -v PATH/mysql:/var/lib/mysql \
           -v PATH/vmail:/var/vmail \
           -v PATH/clamav:/var/lib/clamav \
           --name=iredmail lejmr/iredmail:mysql-latest

How to upgrade from 0.9.7 to 0.9.8

iRedMail v0.9.8 changes structure of its persistent store, for easier email alias management:

In order to apply changes upgrade process is as follows:

  • Stop and remove current container docker rm -f iredmail
  • Update image docker pull lejmr/iredmail:mysql-0.9.8
  • Start iRedmail from newer image
  • Initiate upgrade docker exec -ti iredmail /sbin/update-iredmail
  • Restart container docker restart iredmail

How to upgrade from 0.9.6 to 0.9.7

iRedMail v0.9.7 changes structure of its persistent store, for easier email alias management:

In order to apply changes upgrade process is as follows:

  • Stop and remove current container docker rm -f iredmail
  • Update image docker pull lejmr/iredmail:mysql-0.9.7
  • Start iRedmail from newer image
  • Initiate upgrade docker exec -ti iredmail /sbin/update-iredmail

How to upgrade from 0.9.5-1 to 0.9.6

iRedMail v0.9.6 changes structure of its persistent store, so as changes format of SoGo cache:

In order to apply changes upgrade process is as follows:

  • Stop and remove current container docker rm -f iredmail
  • Update image docker pull lejmr/iredmail:mysql-0.9.6
  • Start iRedmail from newer image
  • Initiate upgrade docker exec -ti iredmail /sbin/update-iredmail

iredmail-docker's People

Contributors

emestee avatar lejmr avatar nazar-pc avatar twelsby avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.