Sign inSign up

uwegerdes/mail

By uwegerdes

•Updated over 6 years ago

single account mail server for testing

Image
0

1.2K

uwegerdes/mail repository overview

⁠Docker uwegerdes/mail

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

Build the image with (mind the dot):

$ docker build -t uwegerdes/mail .

⁠Usage

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.

Tag summary

Content type

Image

Digest

Size

109.8 MB

Last updated

over 6 years ago

docker pull uwegerdes/mail