Simple SMTP server, which POSTs every email to an endpoint
397
This module or docker image will:
Build docker image:
docker build -t carlosbaraza/smtp2json:latest .
Run image exposing port 8080 as 25 (requires root access) and setting the ENV variable POST_URI to the URI of your service:
sudo docker run -p 25:8080 -e POST_URI='https://yourservice.com/emails' carlosbaraza/smtp2json:latest
sudo docker run -p 25:8080 -e POST_URI='https://mockbin.org/bin/71c8cf5c-f6fb-4f39-a7e8-b50c8fb7410d' carlosbaraza/smtp2json:latesttelnet localhost 25HELO localhost
MAIL FROM: <[email protected]>
RCPT TO: <[email protected]>
DATA
Subject: Test subject
To: Carlos
From: Foo
This is the body for the email.
With multiple paragraphs.
.
QUIT
docker build -t carlosbaraza/smtp2json:latest .
docker push carlosbaraza/smtp2json:latest
privileged: true
export port 8080 as 25 (Default SMTP port)
set env variable POST_URI with the URI to the API endpoint
SUBDOMAIN.YOURDOMAIN.COM. MX 0 smtp2json-12345678.12345678.svc.dockerapp.io
Send test email to [email protected]
Check logs to confirm it worked
Content type
Image
Digest
Size
250.4 MB
Last updated
over 9 years ago
docker pull carlosbaraza/smtp2json