maildev is a fake SMTP server + interface to read the mail. It is useful for web developers during development stage where they don’t want email sents to read email address.
To run maildev using docker, run
docker run -p 1080:80 -p 25:25 maildev/maildev
Now you will be able to access web interface to read emails on port 1080
http://your-server-ip:1080
Fake SMTP server will be listening on Port 25. No authentication required. It work like an Open relay SMTP server with no autentication.
If you keep it running, you will see some Spam mails in your inbox as spamers try to send email using your maildev fake SMTP server, that end up in your web interface instead of actual recipient they sending the mail to.
To test, you can sent a mail using swaks or telnet
swaks --to [email protected] --server MAILDEV_SERVER_IP_HERE