this docker image uses dovecot to provide a basic imap server. This image depends on a running mysql image to store the unser login informations.
git clone https://github.com/guitarmarx/dovecot-image.git
cd perdition-image
docker build -t dovecot .
docker run -d \
-p 143:143 \
-e DB_HOST=<database-server> \
-e DB_USER=dovecot \
-e DB_PASS=dovecot \
-e DB_NAME=dovecot \
-v <your-path>:/var/vmail/mailboxes \
--name dovecot
Parameter | Function | Default Value |
---|---|---|
DB_HOST | database host | - |
DB_NAME | database name | dovecot |
DB_USER | database user | dovecot |
DB_PASS | database password | dovecot |
- Generate a SHA-512 Password with the following command inside the dovecot container:
doveadm pw -s SHA512-CRYPT -p <password>
- Add the user to the database with the following sql statement:
Insert into users (user,password,active) VALUES('[email protected]','<password-hash>','Y');