File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,11 @@ if [ -e /usr/sbin/dma ]; then
122
122
123
123
fi
124
124
export PHP_INI_SENDMAIL_PATH=" /usr/sbin/sendmail -t -i -f'$DMA_FROM '"
125
+ if [[ " $DMA_BLOCKING " == " 1" ]]; then
126
+ # run in foreground & block until the email really has been sent
127
+ # only documented here as it should not normally be used in production; it's mostly used for testing
128
+ export PHP_INI_SENDMAIL_PATH=" ${PHP_INI_SENDMAIL_PATH} -D"
129
+ fi
125
130
126
131
# generate DMA config based on DMA_CONF_... environment variables
127
132
php /usr/local/bin/generate_dma.php > /etc/dma/dma.conf
@@ -132,6 +137,7 @@ if [ -e /usr/sbin/dma ]; then
132
137
echo " DMA_AUTH_USERNAME and DMA_AUTH_PASSWORD are set, but DMA_CONF_SMARTHOST is empty - not attempting authentication" >&2
133
138
else
134
139
echo " $DMA_AUTH_USERNAME |$DMA_CONF_SMARTHOST :$DMA_AUTH_PASSWORD " > /etc/dma/auth.conf
140
+ echo " AUTHPATH /etc/dma/auth.conf" >> /etc/dma/dma.conf
135
141
fi
136
142
fi
137
143
You can’t perform that action at this time.
0 commit comments