All Projects → Tecnativa → docker-postfix-relay

Tecnativa / docker-postfix-relay

Licence: Apache-2.0 license
SMTP server and SMTP relay host

Programming Languages

shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to docker-postfix-relay

docker-smtp-relay
Docker image running a SMTP relay with postfix
Stars: ✭ 57 (+200%)
Mutual labels:  postfix, smtp-relay
webadmin
SophiMail Webadmin and Dashboard
Stars: ✭ 48 (+152.63%)
Mutual labels:  postfix
Free Email Forwarding
The best free email forwarding for custom domains. Visit our website to get started (SMTP server)
Stars: ✭ 2,024 (+10552.63%)
Mutual labels:  postfix
mailserver
Simple and full-featured mail server using Docker
Stars: ✭ 88 (+363.16%)
Mutual labels:  postfix
Docker Postfix
Simple SMTP relay docker image.
Stars: ✭ 162 (+752.63%)
Mutual labels:  postfix
SaorTech-cloud-services
A range of scripts to provision and configure open source cloud services.
Stars: ✭ 23 (+21.05%)
Mutual labels:  postfix
Onionmx
Onion delivery, so delicious
Stars: ✭ 138 (+626.32%)
Mutual labels:  postfix
vscode-postfix-ts
Postfix notation for TypeScript/Javascript - extension for VS Code
Stars: ✭ 112 (+489.47%)
Mutual labels:  postfix
Hermes-Secure-Email-Gateway
Hermes Secure Email Gateway is a Free Open Source Ubuntu 18.04 or 20.04 Server based Email Gateway that provides Spam, Virus and Malware protection, full in-transit and at-rest email encryption as well as email archiving. It features the latest email authentication techniques such as SPF, DKIM and DMARC.
Stars: ✭ 35 (+84.21%)
Mutual labels:  postfix
magento2-server-configuration
Magento 2 server configuration -PHP7, Nginx, Postfix
Stars: ✭ 68 (+257.89%)
Mutual labels:  postfix
ControlCenter
Mirrored from GitLab! Monitoring and automation for Open Source email servers, starting with Postfix. Please do not submit issues or PRs here - join us at: https://gitlab.com/lightmeter
Stars: ✭ 88 (+363.16%)
Mutual labels:  postfix
Docker Postfix
Simple SMTP server / postfix null relay host for your Docker and Kubernetes containers. Based on Alpine Linux.
Stars: ✭ 163 (+757.89%)
Mutual labels:  postfix
mailfull-go
A management tool for virtual domain email for Postfix and Dovecot written in Go
Stars: ✭ 20 (+5.26%)
Mutual labels:  postfix
Modoboa Installer
An installer for Modoboa
Stars: ✭ 161 (+747.37%)
Mutual labels:  postfix
bacula-utils
A collect of tools to use with bacula
Stars: ✭ 36 (+89.47%)
Mutual labels:  postfix
Modoboa
Mail hosting made simple
Stars: ✭ 1,998 (+10415.79%)
Mutual labels:  postfix
smtprelay
Simple Golang SMTP relay/proxy server
Stars: ✭ 270 (+1321.05%)
Mutual labels:  smtp-relay
ldap-mail-schema
a collection of LDAP mail schemas
Stars: ✭ 36 (+89.47%)
Mutual labels:  postfix
postfixadmin-cookbook
Chef cookbook to install and configure PostfixAdmin.
Stars: ✭ 13 (-31.58%)
Mutual labels:  postfix
Apex-Code-Conventions
Apex conventions and best practices for Salesforce Developers
Stars: ✭ 28 (+47.37%)
Mutual labels:  postfix

Dockerized SMTP relay

Docker Automated build

What?

SMTP relay with local queue.

Why?

Sending emails through a controlled network (possibly localhost or LAN) is faster and more controlled than sending them directly through the Internet.

This container retains email queue in a volume under /var/spool/postfix, so in case your network fails or your real SMTP server is down for maintenance or whatever, queue will be sent when network connection is restored.

This way your app can send emails faster, forget about possible temporary network failures, and concentrate on its business.

How?

Configure through these environment variables:

  • MAILNAME: The default host for cron job mails.
  • MAIL_RELAY_HOST: The real SMTP server (e.g. smtp.mailgun.org).
  • MAIL_RELAY_PORT: The port in MAIL_RELAY_HOST. Depending on the port, a specific security configuration will be used.
  • MAIL_RELAY_USER: The user to authenticate in MAIL_RELAY_HOST.
  • MAIL_RELAY_PASS: The password to authenticate in MAIL_RELAY_HOST.
  • MAIL_CANONICAL_DOMAINS: A space-separated list of domains that are considered canonical.
  • MAIL_NON_CANONICAL_DEFAULT: A domain that should be found in the list of MAIL_CANONICAL_DOMAINS, which will be used as the replacement domain when a non-canonical message comes in. Leave it empty to skip that replacement system.
  • MAIL_CANONICAL_PREFIX: Defaults to noreply+, and it is what will be prefixed to replaced non-canonical sender addresses.
  • MESSAGE_SIZE_LIMIT in bytes, defaults to 50MiB. Most generous servers offer a limit of 25iMB (Gmail, Mailgun...), so by defaulting to 50MiB, basically we are forcing the remote server to fail in case of a big email, instead of making the local relay to fail. Change at will if you prefer a different behavior.
  • ROUTE_CUSTOM space separated list of subnets in the CIDR standard notation (e.g 192.168.0.0/16).

Examples

SMTP relay via Gmail

docker container run \
    -e MAIL_RELAY_HOST='smtp.gmail.com' \
    -e MAIL_RELAY_PORT='587' \
    -e MAIL_RELAY_USER='[email protected]' \
    -e MAIL_RELAY_PASS='your_gmail_pass' \
    tecnativa/postfix-relay

FAQ

What Is A Canonical Domain

It means "domains that are allowed to send from here".

Suppose your app allows users to define their own emails, and that one is used to send emails to other users from the system.

If you only own the example.com and example.net domains, but somebody configures his email as [email protected]. If you send this email as it came, SPAM filters will block it.

By defining MAIL_CANONICAL_DOMAINS=example.com example.net and MAIL_NON_CANONICAL_DEFAULT=example.com, the mail would be modified as if it came from [email protected], and SPAM filters will be happy with that.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].