https://github.com/ordinary-dev/mta-sts
Microservice for generating a page with MTA-STS settings.
https://github.com/ordinary-dev/mta-sts
docker email k8s microservice mta-sts
Last synced: 11 months ago
JSON representation
Microservice for generating a page with MTA-STS settings.
- Host: GitHub
- URL: https://github.com/ordinary-dev/mta-sts
- Owner: ordinary-dev
- License: mit
- Created: 2023-01-25T16:50:47.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2025-04-13T13:27:04.000Z (12 months ago)
- Last Synced: 2025-04-13T14:31:00.597Z (12 months ago)
- Topics: docker, email, k8s, microservice, mta-sts
- Language: Go
- Homepage:
- Size: 28.3 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
# 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)
- `MTA_STS_MX` - list of mail servers separated by commas, for example: "mx1.domain.com,mx2.domain.com"
## Docker-compose example
```yml
services:
mta-sts:
image: ghcr.io/ordinary-dev/mta-sts
environment:
- MTA_STS_MX=mx.domain.com
```
## Learn more
- [Article on Dmarcian](https://dmarcian.com/mta-sts/)