For testing my application I need a small mail server that accepts smtp mail for user testbox and delivers it via imap.
The application is configured to use hostname mail.local.
Build the image with (mind the dot):
$ docker build -t uwegerdes/mail .
Run the mail container with:
$ docker run -d \
--hostname mail.local \
--name mail \
uwegerdes/mail
To see what is happening there you might want to:
$ docker exec -it mail gosu testbox alpine
$ docker exec -it mail tail -f /var/log/dovecot.log
$ docker exec -it mail bash
Alpine is a simple mail client, if you started test-forms-login from the uwegerdes/frontend-development you should find the mails for testbox (testpass).
Hit CTRL-C to stop the tail command and CTRL-D to exit the bash.
Content type
Image
Digest
Size
109.8 MB
Last updated
over 6 years ago
docker pull uwegerdes/mail