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

6
doc.go
View File

@ -20,7 +20,7 @@ any parameters. Followed by the help and usage information for each command.
mox [-config config/mox.conf] [-pedantic] ...
mox serve
mox quickstart [-existing-webserver] [-hostname host] user@domain [user | uid]
mox quickstart [-skipdial] [-existing-webserver] [-hostname host] user@domain [user | uid]
mox stop
mox setaccountpassword account
mox setadminpassword
@ -146,11 +146,13 @@ traffic to your existing backend applications. Look for "WebHandlers:" in the
output of "mox config describe-domains" and see the output of "mox example
webhandlers".
usage: mox quickstart [-existing-webserver] [-hostname host] user@domain [user | uid]
usage: mox quickstart [-skipdial] [-existing-webserver] [-hostname host] user@domain [user | uid]
-existing-webserver
use if a webserver is already running, so mox won't listen on port 80 and 443; you'll have to provide tls certificates/keys, and configure the existing webserver as reverse proxy, forwarding requests to mox.
-hostname string
hostname mox will run on, by default the hostname of the machine quickstart runs on; if specified, the IPs for the hostname are configured for the public listener
-skipdial
skip check for outgoing smtp (port 25) connectivity
# mox stop