Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gambol99/docker-postfix
An email service container
https://github.com/gambol99/docker-postfix
Last synced: 11 days ago
JSON representation
An email service container
- Host: GitHub
- URL: https://github.com/gambol99/docker-postfix
- Owner: gambol99
- Created: 2015-07-17T15:30:41.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-07T08:29:37.000Z (over 9 years ago)
- Last Synced: 2024-04-17T15:10:30.716Z (9 months ago)
- Language: Shell
- Size: 170 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### *Postfix in a Service* ###
A Postfix container with TLS support
#### **TLS**
You need to generate the certificates for postfix to use. At present i'm using kubernetes secrets to pass the certs into the container
```shell
# Generating a self-signed certificate
[jest@starfury docker-postfix]$ openssl req -new -x509 -days 3650 -nodes -out postfix-cert -keyout postfix-key# You have to base64 encode them and place them in kubernetes
[jest@starfury docker-postfix]$ head postfix-certs.yml
apiVersion: v1
kind: Secret
metadata:
name: mail-certs
data:
postfix-cert: |
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURoekNDQW0rZ0F3SUJBZ0lKQUxXSHlCQkVO
TEZpTUEwR0NTcUdTSWIzRFFFQkN3VUFNRm94Q3pBSkJnTlYKQkFZVEFrZENNUTh3RFFZRFZRUUlE
QVpNYjI1a2IyNHhEekFOQmdOVkJBY01Ca3h2Ym1SdmJqRWNNQm9HQTFVRQpDZ3dUUkdWbVlYVnNk
Q0JEYjIxd1lXNTVJRXgwWkRFTE1Ba0dBMVVFQ3d3Q1NWUXdIaGNOTVRVd056RTRNVFEwCk9UUTRX
...
postfix-key: |
LS0tLS1CRUdJTiBQUklWQVRFIEtFWS0tLS0tCk1JSUV2UUlCQURBTkJna3Foa2lHOXcwQkFRRUZB
QVNDQktjd2dnU2pBZ0VBQW9JQkFRQ2ZzWXRrWnNmWGJvL1AKR2R3L3ZzcTdZWVJVSVR0VG9Mai9X
```#### **Enviroment Variables**
> * TLS_ENABLED: wheather or not to enable TLS support for postfix service, default true
> * TLS_CERT_FILE: the location of the certificate to use for TLS, defaults: /etc/secrets/certs/postfix-cert
> * TLS_KEY_FILE: the location of the key file for TLS, defaults: /etc/secrets/certs/postfix-key
> * TLS_SASL_PASSWD: the location of the SASL file for authentication, defaults: /etc/secrets/sasl/postfix-sasl
> * RELAY_HOST: the host / address of a relay host to forward email
> * MYHOSTNAME: the hostname of the mail service, defaults to 'mail'
> * MYDOMAIN: the domain of the mail service, defaults to 'exmaple.com'