Dovecot Installation
Jump to navigation
Jump to search
Internal
Custom Dovecot v1.0.15 Docker Image
Dovecot v1.0.15 Installation
Build the oldest version with the hope that it can handle old storage structure. Downloaded the source code from https://www.dovecot.org/releases/1.0/dovecot-1.0.15.tar.gz and built it following the instructions:
./configure --enable-static make
Installation steps:
- Unzip dovecot.zip in /opt
chown 1205:1205 /opt/dovecot
- Create user/group dovecot/dovecot 1205/1205 with home in /opt/dovecot
groupadd -g 1205 dovecot useradd -m -d /opt/dovecot/home/dovecot -g 1205 -u 1205 dovecot su - dovecot mkdir -p /opt/dovecot/home/dovecot
- The uid/gid/password of the main (and only) IMAP user are built into conf/passwd and conf/userdb, and they're also referred from the conf file (first_valid_uid/last_valid_uid). No OS-level user needs to be created, just we need to make sure there's no uid/gid conflict.
- Update /opt/dovecot/conf/userdb with the user's home. As root:
mkdir -p /opt/dovecot/home/ovidiu chown -R 58285:58285 /opt/dovecot/home/ovidiu
then update /opt/dovecot/conf/userdb.
- Start/stop:
cd /opt/dovecot ./start-dovecot|./stop-dovecot
- Restore Maildir, link it from /opt/dovecot/home/ovidiu and
chown -R 58285:58285 /opt/dovecot/home/ovidiu/Maildir