1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-19 18:17:22 +01:00

run network checks during setup and stop if there is a bad condition

* check that the PUBLIC_IP is not listed in zen.spamhaus.org
* check that the PRIMARY_HOSTNAME is not listed in dbl.spamhaus.org
* check that a connection to Google's MTA is working (i.e. we're not on a residential network that blocks outbound port 25)
This commit is contained in:
Joshua Tauberer
2014-07-26 11:26:59 -04:00
parent 3a7221a69a
commit 834a7b9096
2 changed files with 55 additions and 0 deletions

View File

@@ -177,6 +177,8 @@ if [ "$PRIMARY_HOSTNAME" = "auto-easy" ]; then
echo "Primary Hostname: $PRIMARY_HOSTNAME"
fi
# Run some network checks to make sure setup on this machine makes sense.
. setup/network-checks.sh
# Create the user named "user-data" and store all persistent user
# data (mailboxes, etc.) in that user's home directory.