in quickstart, check outgoing smtp connectivity by dialing gmail.com mx host

if connection cannot be made, warn about it and point to configuring a
smarthost and the config options.

suggested by arnt & friend
This commit is contained in:
Mechiel Lukkien
2024-03-27 09:35:16 +01:00
parent d4958732c8
commit 0262f4621e
4 changed files with 48 additions and 6 deletions

View File

@ -7,7 +7,7 @@ apk add unbound curl
(rm -r /tmp/mox 2>/dev/null || exit 0) # clean slate
mkdir /tmp/mox
cd /tmp/mox
mox quickstart moxtest1@mox1.example "$MOX_UID" > output.txt
mox quickstart -skipdial moxtest1@mox1.example "$MOX_UID" > output.txt
cp config/mox.conf config/mox.conf.orig
sed -i -e 's/letsencrypt:/pebble:/g' -e 's/: letsencrypt/: pebble/g' -e 's,DirectoryURL: https://acme-v02.api.letsencrypt.org/directory,DirectoryURL: https://acmepebble.example:14000/dir,' -e 's/SMTP:$/SMTP:\n\t\t\tFirstTimeSenderDelay: 1s/' config/mox.conf