4 Commits
0.3.2 ... 0.3.3

Author SHA1 Message Date
f08937111e Merge branch 'master' of gitea.hottis.de:wn/exim-docker
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2025-02-28 21:03:46 +01:00
dbb79dd567 fix Dockerfile 2025-02-28 21:03:38 +01:00
e1d0f95a72 adjust docu
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2025-02-28 20:15:24 +01:00
a2b000a05b adjust example
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2025-02-28 20:12:13 +01:00
3 changed files with 9 additions and 2 deletions

View File

@ -11,6 +11,9 @@ ENV SMARTHOST_USER=""
ENV SMARTHOST_PASS=""
# ip addresses or networks to allow for relaying, separate multiple ones by semicolon
ENV RELAYNETS="127.0.0.1/32"
# whitelist of recipient domains, colon-separated, if empty all no restrictions
ENV WHITELISTED_RECIPIENTS=""
RUN apk add --no-cache exim m4

View File

@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: smtp
namespace: system
labels:
app: smtp
annotations:
@ -18,7 +19,7 @@ spec:
spec:
containers:
- name: smtp
image: quay.io/wollud1969/exim-docker:0.2.1
image: quay.io/wollud1969/exim-docker:0.3.2
envFrom:
- secretRef:
name: smtp-secrets
@ -30,6 +31,7 @@ apiVersion: v1
kind: Service
metadata:
name: smtp
namespace: system
spec:
type: ClusterIP
selector:

View File

@ -12,6 +12,7 @@ Four environment variables are used to configure the container:
* `SMARTHOST_PASS`: Password for smarthost.
* `LOCALMAILNAME`: The domain name which shall be used as the domain part of the sender address in every outgoing mail. If not required, skip it.
* `RELAYNETS`: Networks exim in this container accepts for relaying. Separate multiple networks by semicolon.
* `WHITELISTED_RECIPIENT`: Colon-separated list of whitelisted recipient domains, if empty no recipient restrictions will be applied
## Deployment
@ -24,7 +25,7 @@ Typically, don't expose the smtp port of this container to the default network o
```
#!/bin/bash
IMAGE=quay.io/wollud1969/exim-docker:0.2.2
IMAGE=quay.io/wollud1969/exim-docker:0.3.2
MAILER_NETWORK=mailer-network
docker network create $MAILER_NETWORK || echo "mailer-network already exists"
@ -38,6 +39,7 @@ docker run \
-e SMARTHOST=smarthost.example.com \
-e LOCALMAILNAME=krohne.com \
-e RELAYNETS=$RELAYNETS \
-e WHITELISTED_RECIPIENT="example-recipients.com" \
--network $MAILER_NETWORK \
--name mailer \
--restart always \