支持pop3协议,支持SMTLS协议

This commit is contained in:
jinnrry committed 2023-11-15 14:55:46 +08:00
1 parent 875228b886
commit 4f8c97f6dc
23 files changed
+1067 -128

No files matched your search

+6 -1
View File
@@ -13,6 +13,7 @@ var IsInit bool
type Config struct {
LogLevel string `json:"logLevel"` // 日志级别
Domain string `json:"domain"`
Domains []string `json:"domains"` //多域名设置,把所有收信域名都填进去
WebDomain string `json:"webDomain"`
DkimPrivateKeyPath string `json:"dkimPrivateKeyPath"`
SSLType string `json:"sslType"` // 0表示自动生成证书,1表示用户上传证书
@@ -38,7 +39,7 @@ type Config struct {
//go:embed tables/*
var tableConfig embed.FS
const Version = "2.2.7"
const Version = "2.3.1"
const DBTypeMySQL = "mysql"
const DBTypeSQLite = "sqlite"
@@ -71,6 +72,10 @@ func Init() {
return
}
if len(Instance.Domains) == 0 && Instance.Domain != "" {
Instance.Domains = []string{Instance.Domain}
}
// 读取表设置
Instance.Tables = map[string]string{}
Instance.TablesInitData = map[string]string{}