BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr
Check the hostname tag file
lotk1f72acefe798
diff --git a/core/internal/service/settings/billionmail_hostname.go b/core/internal/service/settings/billionmail_hostname.goindex bc2c470f..84deeef4 100644--- a/core/internal/service/settings/billionmail_hostname.go+++ b/core/internal/service/settings/billionmail_hostname.go@@ -4,6 +4,9 @@ import (v1 "billionmail-core/api/domains/v1""billionmail-core/internal/service/domains""billionmail-core/internal/service/public"+ "context"+ "github.com/gogf/gf/v2/frame/g"+ "github.com/gogf/gf/v2/os/gfile""os""strings")@@ -13,6 +16,16 @@ func CheckHostname() {hostname := public.MustGetDockerEnv("BILLIONMAIL_HOSTNAME", "")flagFile := public.AbsPath("../core/data/billionmail_hostname.txt")+ // ----------------------------------------------------------------------+ ctx := context.Background()+ if gfile.Exists(flagFile) {+ content := gfile.GetContents(flagFile)+ g.Log().Error(ctx, "flagFile content 111111111: ", content)+ } else {+ g.Log().Error(ctx, "flagFile not exists 111111111")+ }+ // ----------------------------------------------------------------------+if hostname == "" || hostname == "mail.example.com" {_ = os.Remove(flagFile)return