From 18f1c85bcfedd3877b65d3f3de74016bb6831585 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Sun, 3 Dec 2017 13:41:38 +0100 Subject: [PATCH] Added message about required DNS records. fix #168 --- run.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/run.py b/run.py index 385da45..80c586f 100755 --- a/run.py +++ b/run.py @@ -43,7 +43,7 @@ def main(input_args): if args.debug: utils.ENV["debug"] = True - utils.printcolor("Welcome to Modoboa installer!", utils.GREEN) + utils.printcolor("Welcome to Modoboa installer!\n", utils.GREEN) utils.check_config_file(args.configfile, args.interactive) if args.stop_after_configfile_check: return @@ -55,6 +55,15 @@ def main(input_args): config.set("general", "domain", args.domain) config.set("dovecot", "domain", args.domain) config.set("modoboa", "version", args.version) + utils.printcolor( + "Warning:\n" + "Before you start the installation, please make sure the following " + "DNS records exist for domain '{}':\n" + " mail IN A \n" + " IN MX {}.\n".format( + args.domain, config.get("general", "hostname")), + utils.CYAN + ) utils.printcolor( "Your mail server will be installed with the following components:", utils.BLUE)