Skip to content

Microservice for generating a page with MTA-STS settings.

License

Notifications You must be signed in to change notification settings

pikkemans/mta-sts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple MTA-STS setup

This is an overly complicated way to set up MTA-STS. Or maybe not?

I wrote this server to make it easy to set up multiple mail servers.

Configuration

You need to set up dns records correctly, otherwise this server will be useless. This container needs to be launched at: mta-sts.your-domain.com. As a result, a file for configuring mta-sts will be available at /.well-known/mta-sts.txt. All configuration is done through environment variables.

Environment variables

  • PORT - the port used by the server, 8080 by default
  • MTA_STS_MODE - one of the following values: enforce, testing or none (enforce by default)
  • MTA_STS_MAX_AGE - the maximum lifetime of the policy in seconds, default - 604800 (7 days)
  • MTS_STS_MX - list of mail servers separated by commas, for example: "mx1.domain.com,mx2.domain.com"

Docker-compose example

services:
  mta-sts:
    image: ghcr.io/ordinary-dev/mta-sts
    environment:
      - MTA_STS_MX=mx.domain.com

Learn more

About

Microservice for generating a page with MTA-STS settings.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 73.0%
  • Dockerfile 22.9%
  • Makefile 4.1%