GithubHelp home page GithubHelp logo

geokrety / bootstrap-email-smtp-server Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 2.0 30 KB

SMTP server that process incoming E-Mails through Bootstrap Email to finally transfer the mail to some relay host.

License: MIT License

Dockerfile 5.20% Elixir 12.20% Ruby 82.60%
hacktoberfest

bootstrap-email-smtp-server's Introduction

Bootstrap Email Logo


Bootstrap Email Mail Gateway Service

This is a cookbook recipe that makes use of midi-smtp-server and Bootstrap Email to process incoming E-Mails through Bootstrap Email to finally transfer the mail to some relay host.

Settings

The service may be adjusted by some ENV variables:

BOOTSTRAP_EMAIL_RELAY_HOST

The relay host to forward the mail. It must be provided.

BOOTSTRAP_EMAIL_RELAY_PORT="465"

The relay host port.

BOOTSTRAP_EMAIL_RELAY_USERNAME=""

The relay host username.

BOOTSTRAP_EMAIL_RELAY_PASSWORD=""

The relay host password.

BOOTSTRAP_EMAIL_RELAY_TLS="false"

Set to true if relay host require STARTTLS.

BOOTSTRAP_EMAIL_RELAY_SSL="false"

Set to true if relay host require SSL.

BOOTSTRAP_EMAIL_RELAY_ENABLE_STARTTLS="false"
BOOTSTRAP_EMAIL_RELAY_ENABLE_STARTTLS_AUTO="false"
BOOTSTRAP_EMAIL_RELAY_OPENSSL_VERIFY_MODE="none"

Valid values: https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL.html

  • CLIENT_ONCE
  • FAIL_IF_NO_PEER_CERT
  • NONE
  • PEER
BOOTSTRAP_EMAIL_GW_HOSTS="0.0.0.0"

The ip-address(es) the mail gateway is listen on.

BOOTSTRAP_EMAIL_GW_PORTS="25"

The port(s) the mail gateway is listen on.

BOOTSTRAP_EMAIL_GW_MAX_PROCESSINGS="4"

The number of simultaneously processes.

BOOTSTRAP_EMAIL_GW_MAX_CONNECTIONS="100"

The number of simultaneously connections.

BOOTSTRAP_EMAIL_GW_INTERNATIONALIZATION=""

Enable internationalization smtp extension.

BOOTSTRAP_EMAIL_GW_DEBUG=""

Enable SMTP session debug logs.

Usage

export BOOTSTRAP_EMAIL_RELAY_HOST="some.smtp.server"
export BOOTSTRAP_EMAIL_GW_DEBUG="true"
ruby service/bootstrap-email-smtp-server.rb

Usage with Docker

docker build --tag bootstrap-email-smtp-server .
docker run -it --name bootstrap-email-smtp-server --publish 25:25 \
  --env BOOTSTRAP_EMAIL_RELAY_HOST="some.smtp.server." \
  --env BOOTSTRAP_EMAIL_GW_DEBUG=1 bootstrap-email-smtp-server

Author & Credits

Author: Kumy

Based on Slack recipe from Tom Freudenberg, 4commerce technologies AG, released under the MIT license

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.