Git Product home page Git Product logo

postfix-sender's Introduction

Postfix sender for Docker

Simple Postfix SMTP docker image with SASL and DKIM authentication.
It also includes syslog to enable logging to stdout.

Usage

docker run \
  -p 25:25 \
  -e MYHOSTNAME="mail.example.com" \
  -e MYDOMAIN="example.com" \
  -e INET_INTERFACE="all" \
  -e MYNETWORKS="172.16.0.0/12" \
  -e RELAYHOST="[172.16.0.1]" \
  -e TZ="Asia/Tokyo" \
  -e SASL_USER="test:foobar" \
  -e DKIM_KEY="dkim private key include LF" \
  actindi/postfix-sender:latest

OpenDKIM

Create a private key on other host.

opendkim-genkey -b 2048 -d example.com

Set private key to DKIM_KEY, and public key set to DNS.

Environment variable

  • MYHOSTNAME: Postfix main.cf 'myhostname' setting. And SASL realm.
  • MYDOMAIN: Postfix main.cf 'mydomain' setting. And OpenDKIM 'Domain' setting.
  • INET_INTERFACE: Postfix main.cf 'inet_interface' setting.
  • MYNETWORKS: Postfix main.cf 'mynetworks' setting.
  • RELAYHOST: Postfix main.cf 'relayhost' setting.
  • TZ?: time zone. default is UTC.
  • SASL_USER?: If use SASL authentication, set 'user:password' format. Only one user.
  • DKIM_KEY?: If use DKIM authentication, set RSA key.

postfix-sender's People

Contributors

ai-yamamoto-kazuyasu avatar satoshi-ohsawa avatar

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.