Build the image:
docker-compose build
Initialize the database:
docker-compose run --rm imapd setup
Start an IMAP server that listens on port 5143:
docker-compose up
To add a user with the email [email protected]
and a password of abc123
:
docker-compose exec imapd dbmail-users -a testuser -w abc123 -s [email protected]