diff --git a/main.go b/main.go index 55f1b6c..9cf7acf 100644 --- a/main.go +++ b/main.go @@ -512,7 +512,9 @@ are printed. c.Usage() } - _, errs := mox.ParseConfig(context.Background(), mox.ConfigStaticPath, true, false, false) + mox.FilesImmediate = true + + _, errs := mox.ParseConfig(context.Background(), mox.ConfigStaticPath, true, true, false) if len(errs) > 1 { log.Printf("multiple errors:") for _, err := range errs { diff --git a/quickstart.go b/quickstart.go index 49f2e6a..fa9f2f8 100644 --- a/quickstart.go +++ b/quickstart.go @@ -645,8 +645,8 @@ too many authentication failures). xwritefile("config/domains.conf", []byte(dconfstr), 0660) // Verify config. - skipCheckTLSKeyCerts := existingWebserver - mc, errs := mox.ParseConfig(context.Background(), "config/mox.conf", true, skipCheckTLSKeyCerts, false) + loadTLSKeyCerts := !existingWebserver + mc, errs := mox.ParseConfig(context.Background(), "config/mox.conf", true, loadTLSKeyCerts, false) if len(errs) > 0 { if len(errs) > 1 { log.Printf("checking generated config, multiple errors:")