poste.io2

Updating poste.io to newer image

Our mantra is that update should be seamless experience. Basically the only thing you need to do is download new image and start container in way you are used to.

PRO version
$ docker stop container-name
$ cp -a /data/mailserver-dir /data/mailserver-dir.backup # backup data
$ docker login -u "<username>" -p "<password>" https://poste.io
$ docker pull poste.io/mailserver # download new image
$ docker rename container-name container-name-backup # do image backup
$ docker run \
    -p 25:25 \
    -p 80:80 \
    -p 110:110 \
    -p 143:143 \
    -p 443:443 \
    -p 587:587 \
    -p 993:993 \
    -p 995:995 \
    -v /etc/localtime:/etc/localtime:ro \
    -v /data/mailserver-dir:/data \
    --name container-name \
    -t poste.io/mailserver
Free version
$ docker stop container-name
$ cp -a /data/mailserver-dir /data/mailserver-dir.backup # backup data
$ docker pull analogic/poste.io # download new image
$ docker rename container-name container-name-backup # do image backup
$ docker run \
    -p 25:25 \
    -p 80:80 \
    -p 110:110 \
    -p 143:143 \
    -p 443:443 \
    -p 587:587 \
    -p 993:993 \
    -p 995:995 \
    -v /etc/localtime:/etc/localtime:ro \
    -v /data/mailserver-dir:/data \
    --name container-name \
    -t analogic/poste.io

All other changes and /data directory updates are handled automatically during container start.

Upgrade poste.io from 1.x to 2.x

  1. stop mailserver container
  2. backup your data directory
  3. delete/rename data/queue and data/log folder (they are in incompatible format)
  4. pull latest image and start new container