We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 662f5db commit 497d4a3Copy full SHA for 497d4a3
2 files changed
entrypoint.sh
@@ -46,8 +46,10 @@ write_dma_auth () {
46
fi
47
}
48
49
-: ${DMA_SMARTHOST=${SMARTHOST:-}}
50
-export DMA_SMARTHOST
+: \
+ ${DMA_SMARTHOST=${SMARTHOST-}} \
51
+ ${DMA_PORT=${SMARTHOST_PORT-}}
52
+export DMA_SMARTHOST DMA_PORT
53
54
write_dma_conf
55
case "$1" in
units/smtp-proxy.container
@@ -0,0 +1,21 @@
1
+[Unit]
2
+Description=SMTP Proxy
3
+
4
+[Container]
5
+Image=ghcr.io/computator/smtp-proxy
6
+AutoUpdate=registry
7
+ContainerName=smtp-proxy
8
9
+PublishPort=127.0.0.1:25:25
10
11
+Environment=SMARTHOST=smtp.example.com
12
+Environment=SMARTHOST_PORT=587
13
+Environment=AUTH_USER=smartuser
14
+Environment=AUTH_PASS_FILE=/run/secrets/smtp-proxy-pass
15
16
+Secret=smtp-proxy-pass
17
18
+Volume=smtp-proxy-queue:/var/spool/dma
19
20
+[Install]
21
+WantedBy=multi-user.target
0 commit comments