Skip to content
This repository has been archived by the owner on Nov 11, 2020. It is now read-only.

SMTP Server that relays all injected e-mail via Mailgun's API

License

Notifications You must be signed in to change notification settings

andrewmiskell/alpine-mailgun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mailgun-smtp-server

This is a docker image that makes use of midi-smtp-server project and the mailgun-ruby SDK to accept SMTP email via standard methods and relay those messages via the mailgun HTTP API rather than the mailgun smtp servers. It's a neat little tool that allows you to act as an SMTP server for legacy systems, but operate without using outgoing SMTP traffic (which may be blocked by your ISP).

Usage

docker run --name mail \
  -e MG_KEY=yourmailgunapikey \
  -e MG_DOMAIN=yourmailgundomain \
  -p 25:25
  andrewmiskell/mailgun-smtp-server
  • MG_SMTPD_SIMULATENOUS_CONNECTIONS can be passed to allow more than 4 simulatenous connections
  • MG_SMTPD_OPTIONS maps to opts parameter in midi-smtp-server's Smtpd class.
  • MG_SMTPD_PORT can be passed to bind to a port other than 25
  • MG_SMTPD_ADDRESS can be passed to bind the server to an address other than 0.0.0.0

License/Author/Credits

License: Apache v2 (see LICENSE file in this repository for details)

Credits:

About

SMTP Server that relays all injected e-mail via Mailgun's API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published