Sign inSign up

andreptb/smtp-server-for-it

By andreptb

Updated almost 10 years ago

A simple SMTP server for your integration testing needs.

Image
0

10K+

andreptb/smtp-server-for-it repository overview

smtp-server-for-it Build Status

A simple SMTP server for your integration testing needs. Based on Spring Boot and SubEtha SMT, it's perfect to use with browser automation tools such as SeleniumIDE, since received email messages can be instantly viewed with a HTTP request. This can be useful to test user registration flows that require activation through clicking links on email messages sent by the server. The project is released under GNU 3.

Docker Image

Supported tags and respective Dockerfile links:

Running:

docker run -d -p 25:25 -p 8080:8080 andreptb/smtp-server-for-it

Building and testing

The build process requires Maven.

  1. Building: '$ mvn package'
  2. Running: '$ java -jar target/smtp-server-for-it.jar'

Frequently asked questions

1. How can I access the messages sent to the server?

Through HTTP, there are a few access options (considering that the SMTP started on localhost and listens HTTP connections on 8080 port):

2. Can I use a different SMTP or HTTP port?
  • Running standalone jar:
java -jar build/libs/smtp-server-for-it.jar --smtp.port=(other smtp port) --server.port=(other http port)
  • With docker the command would be:
docker run -d -p (other smtp port):25 -p (other http port):8080 andreptb/smtp-server-for-it

Tag summary

Content type

Image

Digest

sha256:b18eff783

Size

75.1 MB

Last updated

almost 10 years ago

docker pull andreptb/smtp-server-for-it