File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,6 +46,12 @@ write_dma_auth () {
4646 fi
4747}
4848
49+ setup_utils () {
50+ test -d /utils-export || return 0
51+ echo " Setting up /utils-export/"
52+ cp -Rpv /utils/* /utils-export/
53+ }
54+
4955: \
5056 ${DMA_SMARTHOST=${SMARTHOST-} } \
5157 ${DMA_PORT=${SMARTHOST_PORT-} } \
@@ -55,6 +61,8 @@ export DMA_SMARTHOST DMA_PORT DMA_AUTHPATH
5561# set default command
5662[ " ${1# -} " = " $1 " ] || set -- msmtpd " $@ "
5763
64+ [ " $1 " = " msmtpd" ] && setup_utils
65+
5866write_dma_conf
5967case " $1 " in
6068 dma|mailq|msmtpd|newaliases|sendmail) verify_dma_conf ;;
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ Environment=AUTH_PASS_FILE=/run/secrets/smtp-proxy-pass
1616Secret=smtp-proxy-pass
1717
1818Volume=smtp-proxy-queue:/var/spool/dma
19+ Volume=/usr/local/smtp-proxy-utils:/utils-export
1920
2021[Install]
2122WantedBy=multi-user.target
You can’t perform that action at this time.
0 commit comments