eaudeweb / edw.docker.mailtrap

Catch all mail and display it in roundcube interface.
20 stars 19 forks source link

Mailtrap Docker Image

Catch all mail and display it in roundcube interface.

Usage

Start Mailtrap

$ docker run -d --name=mailtrap -p 80:80 eaudeweb/mailtrap

Send email

$ docker run -it --link mailtrap alpine:3.6 sh

  $ telnet mailtrap 25
  ehlo example.com
  mail from: me@example.com
  rcpt to: you@example.com
  data
  Subject: Hello from me
  Hello You,

  This is a test.

  Cheers,
  Me
  .
  quit

See email via Mailtrap Web UI:

Default login:

Customisations:

Set environment variables

and recreate the container.

Testing the image locally

sudo docker build -t eaudeweb/mailtrap:test .
sudo docker-compose up