Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
9a5f55b144
|
|||
|
6edd8cebfb
|
|||
|
44c2bfdd88
|
|||
|
ca9ff3cba6
|
|||
|
6cd2b001d6
|
|||
|
295cc587b3
|
|||
|
bc912f9127
|
|||
|
5b0b6b0589
|
|||
|
cb5b774f5d
|
|||
|
c6faeaed2e
|
|||
|
4164c340df
|
|||
|
a8e7e83881
|
|||
|
173f80b50d
|
10
Dockerfile
10
Dockerfile
@@ -3,7 +3,13 @@ FROM alpine:3.22.2
|
|||||||
LABEL Maintainer="Wolfgang Hottgenroth <woho@hottis.de>"
|
LABEL Maintainer="Wolfgang Hottgenroth <woho@hottis.de>"
|
||||||
LABEL ImageName=""
|
LABEL ImageName=""
|
||||||
|
|
||||||
RUN apk add --no-cache exim
|
RUN \
|
||||||
|
apk add --no-cache exim && \
|
||||||
|
mkdir -p /var/log/exim && \
|
||||||
|
chown exim:mail /var/log/exim && \
|
||||||
|
ln -sf /dev/stdout /var/log/exim/mainlog && \
|
||||||
|
ln -sf /dev/stdout /var/log/exim/rejectlog && \
|
||||||
|
ln -sf /dev/stdout /var/log/exim/paniclog
|
||||||
|
|
||||||
COPY exim.conf /etc/exim
|
COPY exim.conf /etc/exim
|
||||||
RUN chmod 644 /etc/exim/exim.conf
|
RUN chmod 644 /etc/exim/exim.conf
|
||||||
@@ -12,6 +18,6 @@ WORKDIR /etc/exim
|
|||||||
|
|
||||||
EXPOSE 25
|
EXPOSE 25
|
||||||
|
|
||||||
CMD [ "/usr/sbin/exim", "-bd", "-q15m", "-v" ]
|
CMD [ "/usr/sbin/exim", "-bdf", "-q15m" ]
|
||||||
|
|
||||||
|
|
||||||
@@ -32,6 +32,14 @@ spec:
|
|||||||
- name: smtp
|
- name: smtp
|
||||||
containerPort: 25
|
containerPort: 25
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
readinessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: 25
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 5
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 3
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: exim-config
|
- name: exim-config
|
||||||
mountPath: /etc/exim/db
|
mountPath: /etc/exim/db
|
||||||
@@ -66,6 +74,7 @@ metadata:
|
|||||||
name: exim-forwarder
|
name: exim-forwarder
|
||||||
spec:
|
spec:
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
|
externalTrafficPolicy: Local
|
||||||
selector:
|
selector:
|
||||||
app: exim-forwarder
|
app: exim-forwarder
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@@ -6,7 +6,10 @@ tls_advertise_hosts = *
|
|||||||
tls_certificate = /etc/exim/ssl/server.crt
|
tls_certificate = /etc/exim/ssl/server.crt
|
||||||
tls_privatekey = /etc/exim/ssl/server.key
|
tls_privatekey = /etc/exim/ssl/server.key
|
||||||
|
|
||||||
log_file_path = syslog
|
log_file_path = /var/log/exim/%slog
|
||||||
|
log_selector = -all
|
||||||
|
message_logs = true
|
||||||
|
|
||||||
|
|
||||||
# acl_smtp_connect = acl_connect
|
# acl_smtp_connect = acl_connect
|
||||||
acl_smtp_helo = acl_helo
|
acl_smtp_helo = acl_helo
|
||||||
|
|||||||
Reference in New Issue
Block a user