dummy smtp server with rest interface
269
run container docker run -d -p 8123:8123 -p 8025:8025 -e SMTP_PORT=8025 jarosite/mailman:latest
rest interface
curl -XDELETE docker:8123/mailman/emails/remove?to=sdfdsfsfds
@DELETE
@Path("remove")
public String deleteByRecipient(
@QueryParam("to") final String to)
curl docker:8123/mailman/emails curl docker:8123/mailman/emails?from=dsaas&size=2
@GET
@Produces(MediaType.APPLICATION_JSON)
public List<EmailMessage> filteredMessages(
@QueryParam("subject") final String subject,
@QueryParam("body") final String body,
@QueryParam("to") final String to,
@QueryParam("from") final String from,
@QueryParam("messageId") final String messageId,
@QueryParam("offset") Integer offset,
@QueryParam("size") Integer size,
@QueryParam("order") String order)
curl docker:8123/mailman/emails/count
@GET
@Path("count")
@Produces(MediaType.APPLICATION_JSON)
public Map<String, Integer> filteredMessagesCount(
@QueryParam("subject") final String subject,
@QueryParam("body") final String body,
@QueryParam("to") final String to,
@QueryParam("from") final String from)
curl docker:8123/mailman/emails/last
@GET
@Path("last")
@Produces(MediaType.APPLICATION_JSON)
web interface http://localhost:8123/index.html
smtp port 8025
Content type
Image
Digest
sha256:caced6393…
Size
305.1 MB
Last updated
almost 11 years ago
docker pull jarosite/mailman