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
smtp relay-related functions
lotkcb65cac05a67
diff --git a/core/api/relay/relay.go b/core/api/relay/relay.goindex 57b352b5..0b312ad6 100644--- a/core/api/relay/relay.go+++ b/core/api/relay/relay.go@@ -15,4 +15,6 @@ type IRelayV1 interface {ListRelayConfigs(ctx context.Context, req *v1.ListRelayConfigsReq) (res *v1.ListRelayConfigsRes, err error)UpdateRelayConfig(ctx context.Context, req *v1.UpdateRelayConfigReq) (res *v1.UpdateRelayConfigRes, err error)DeleteRelayConfig(ctx context.Context, req *v1.DeleteRelayConfigReq) (res *v1.DeleteRelayConfigRes, err error)+ GetUnboundDomains(ctx context.Context, req *v1.GetUnboundDomainsReq) (res *v1.GetUnboundDomainsRes, err error)+ TestSmtpConnection(ctx context.Context, req *v1.TestSmtpConnectionReq) (res *v1.TestSmtpConnectionRes, err error)}diff --git a/core/api/relay/v1/relay.go b/core/api/relay/v1/relay.goindex 25cb6e9c..cf5af7c1 100644--- a/core/api/relay/v1/relay.go+++ b/core/api/relay/v1/relay.go@@ -7,18 +7,29 @@ import (// BmRelaytype BmRelay struct {- Id int `json:"id"`- Remark string `json:"remark"` // Remark, e.g., "AWS SES Japan Region"- SenderDomain string `json:"sender_domain"` // Sender domain, e.g., "example.com" (add "@" when writing to config)- RelayHost string `json:"relay_host"` // Relay server address,- RelayPort string `json:"relay_port"` // Relay server port, e.g., "587"- AuthUser string `json:"auth_user"` // SMTP authentication username- AuthPassword string `json:"auth_password"` // SMTP authentication password (consider encrypted storage)- IP string `json:"ip"` // IP for reminding users to update SPF record (optional) +ip4:23.158.104.237- Host string `json:"host"` // Host for reminding users to update SPF record (optional) include:lootk.cn- Active int `json:"active"` // Whether this relay configuration is active: 1-enabled, 0-disabled- CreateTime int `json:"create_time"` // Creation time- UpdateTime int `json:"update_time"` // Update time+ Id int `json:"id"`+ Remark string `json:"remark"` // Remark, e.g., "AWS SES Japan Region"+ Rtype string `json:"rtype"` // type: gmail, sendgrid, custom, aws, mailgun, local+ SenderDomain string `json:"sender_domain"` // Sender domain, e.g., "example.com" (add "@" when writing to config)+ RelayHost string `json:"relay_host"` // Relay server address,+ RelayPort string `json:"relay_port"` // Relay server port, e.g., "587"+ AuthUser string `json:"auth_user"` // SMTP authentication username+ AuthPassword string `json:"auth_password"` // SMTP authentication password (consider encrypted storage)+ Ip string `json:"ip"` // IP for reminding users to update SPF record (optional)+ Host string `json:"host"` // Host for reminding users to update SPF record (optional)+ Active int `json:"active"` // Whether this relay configuration is active: 1-enabled, 0-disabled+ CreateTime int `json:"create_time"` // Creation time+ UpdateTime int `json:"update_time"` // Update time+ AuthMethod string `json:"auth_method"` // Authentication method: LOGIN, PLAIN, CRAM-MD5, NONE+ TlsProtocol string `json:"tls_protocol"` // TLS protocol: STARTTLS, SSL/TLS, NONE+ SkipTlsVerify int `json:"skip_tls_verify"` // Whether to skip TLS verification: 1-skip, 0-do not skip+ HeloName string `json:"helo_name"` // HELO hostname+ SmtpName string `json:"smtp_name"` // Unique name of the SMTP server+ HeaderJson string `json:"header_json"` // Custom email headers in JSON format+ MaxConcurrency int `json:"max_concurrency"` // Maximum concurrent connections+ //MaxRetries int `json:"max_retries"` // Maximum retry attempts+ //MaxIdleTime string `json:"max_idle_time"` // Maximum idle connection time+ //MaxWaitTime string `json:"max_wait_time"` // Maximum wait time}type DNSRecord struct {@@ -26,9 +37,19 @@ type DNSRecord struct {Host string `json:"host"`Value string `json:"value"`}++// SmtpStatus SMTP connection status+type SmtpStatus struct {+ Status bool `json:"status"` // Whether the connection is successful+ Msg string `json:"msg"` // Status description+ //LastTime int64 `json:"lastTime"` // Last test time (Unix timestamp)+}++// BmRelayWithSPFtype BmRelayWithSPF struct {*BmRelay- SPFRecord DNSRecord `json:"spf_record"`+ SPFRecord DNSRecord `json:"spf_record"`+ SmtpStatus SmtpStatus `json:"smtp_status"`}// CreateRelayConfigReq Request to add a relay configuration@@ -36,6 +57,7 @@ type CreateRelayConfigReq struct {g.Meta `path:"/relay/add" method:"post" tags:"Relay Configs" summary:"Create a new relay configuration"`Authorization string `json:"authorization" in:"header" dc:"Authorization" v:"required"`Remark string `json:"remark" v:"max-length:255" dc:"Remark, e.g., AWS SES Japan Region"`+ Rtype string `json:"rtype" v:"max-length:30" dc:"Relay type: gmail, sendgrid, custom, aws, mailgun, local"`SenderDomain string `json:"sender_domain" v:"required|max-length:255" dc:"Sender domain, e.g., example.com"`RelayHost string `json:"relay_host" v:"required|max-length:255" dc:"Relay server address"`RelayPort string `json:"relay_port" v:"required|max-length:10" dc:"Relay server port, e.g., 587"`@@ -44,6 +66,17 @@ type CreateRelayConfigReq struct {IP string `json:"ip" v:"max-length:255" dc:"IP for reminding users to update SPF record, e.g., +ip4:23.158.104.237"`Host string `json:"host" v:"max-length:255" dc:"Host for reminding users to update SPF record, e.g., include:lootk.cn"`Active int `json:"active" d:"1" v:"in:0,1" dc:"Whether enabled: 1-enabled, 0-disabled (default is 1)"`+ // 新增高级选项+ AuthMethod string `json:"auth_method" v:"max-length:20" dc:"Authentication method: LOGIN, PLAIN, CRAM-MD5, NONE"`+ TlsProtocol string `json:"tls_protocol" v:"max-length:20" dc:"TLS protocol: STARTTLS, SSL/TLS, 关闭"`+ SkipTlsVerify int `json:"skip_tls_verify" v:"in:0,1" dc:"是否跳过TLS验证: 1-跳过, 0-不跳过"`+ HeloName string `json:"helo_name" v:"max-length:255" dc:"HELO主机名"`+ SmtpName string `json:"smtp_name" v:"max-length:50" dc:"SMTP服务器唯一名称"`+ HeaderJson string `json:"header_json" dc:"自定义邮件头,JSON格式"`+ MaxConcurrency int `json:"max_concurrency" dc:"最大并发连接数"`+ MaxRetries int `json:"max_retries" dc:"最大重试次数"`+ MaxIdleTime string `json:"max_idle_time" v:"max-length:10" dc:"最大空闲连接时间,如15s"`+ MaxWaitTime string `json:"max_wait_time" v:"max-length:10" dc:"最大等待时间,如5s"`}type CreateRelayConfigRes struct {@@ -55,10 +88,8 @@ type CreateRelayConfigRes struct {type ListRelayConfigsReq struct {g.Meta `path:"/relay/list" method:"get" tags:"Relay Configs" summary:"Get the list of relay configurations"`Authorization string `json:"authorization" in:"header" dc:"Authorization" v:"required"`- //Active int `json:"active,omitempty" v:"in:0,1" dc:"Filter by status: 1-enabled, 0-disabled"`- Page int `json:"page" v:"required|min:1" dc:"Page number"`- PageSize int `json:"page_size" v:"required|min:1" dc:"Page size"`- Keyword string `json:"keyword" dc:"search"` // Search by remark, relay server address, or sender domain+ Keyword string `json:"keyword" dc:"search"`+ Rtype string `json:"rtype" dc:"中继类型筛选: gmail, sendgrid, custom, aws, mailgun, local"`}type ListRelayConfigsRes struct {@@ -74,6 +105,7 @@ type UpdateRelayConfigReq struct {g.Meta `path:"/relay/edit" method:"post" tags:"Relay Configs" summary:"Update a relay configuration"`Authorization string `json:"authorization" in:"header" dc:"Authorization" v:"required"`ID int `json:"id" v:"required|min:1" dc:"The ID of the configuration to update"`+ Rtype string `json:"rtype,omitempty" v:"max-length:30" dc:"中继类型: gmail, sendgrid, custom, aws, mailgun, local"`Remark string `json:"remark,omitempty" v:"max-length:255" dc:"Remark, e.g., AWS SES Japan Region"`SenderDomain string `json:"sender_domain,omitempty" v:"max-length:255" dc:"Sender domain, e.g., example.com"`RelayHost string `json:"relay_host,omitempty" v:"max-length:255" dc:"Relay server address"`@@ -83,6 +115,17 @@ type UpdateRelayConfigReq struct {IP string `json:"ip,omitempty" v:"max-length:255" dc:"IP for reminding users to update SPF record, e.g., +ip4:23.158.104.237"`Host string `json:"host,omitempty" v:"max-length:255" dc:"Host for reminding users to update SPF record, e.g., include:lootk.cn"`Active int `json:"active,omitempty" v:"in:0,1" dc:"Whether enabled: 1-enabled, 0-disabled"` // Can be set to 0 as a toggle+ // Advanced options+ AuthMethod string `json:"auth_method,omitempty" v:"max-length:20" dc:"Authentication method: LOGIN, PLAIN, CRAM-MD5, NONE"`+ TlsProtocol string `json:"tls_protocol,omitempty" v:"max-length:20" dc:"TLS protocol: STARTTLS, SSL/TLS, NONE"`+ SkipTlsVerify int `json:"skip_tls_verify,omitempty" v:"in:0,1" dc:"Whether to skip TLS verification: 1-skip, 0-do not skip"`+ HeloName string `json:"helo_name,omitempty" v:"max-length:255" dc:"HELO hostname"`+ SmtpName string `json:"smtp_name,omitempty" v:"max-length:50" dc:"Unique name of the SMTP server"`+ HeaderJson string `json:"header_json,omitempty" dc:"Custom email headers in JSON format"`+ MaxConcurrency int `json:"max_concurrency,omitempty" dc:"Maximum concurrent connections"`+ MaxRetries int `json:"max_retries,omitempty" dc:"Maximum retry attempts"`+ MaxIdleTime string `json:"max_idle_time,omitempty" v:"max-length:10" dc:"Maximum idle connection time, e.g., 15s"`+ MaxWaitTime string `json:"max_wait_time,omitempty" v:"max-length:10" dc:"Maximum wait time, e.g., 5s"`}type UpdateRelayConfigRes struct {@@ -100,3 +143,44 @@ type DeleteRelayConfigReq struct {type DeleteRelayConfigRes struct {api_v1.StandardRes}++// DomainInfo Represents domain information+type DomainInfo struct {+ Domain string `json:"domain"`+ IsBound bool `json:"is_bound"`+}++type GetUnboundDomainsReq struct {+ g.Meta `path:"/relay/get_unbound_domains" method:"get" tags:"Relay Configs" summary:"Get domains without bound relay services"`+ Authorization string `json:"authorization" in:"header" dc:"Authorization" v:"required"`+}++type GetUnboundDomainsRes struct {+ api_v1.StandardRes+ Data []*DomainInfo `json:"data" dc:"List of domain info"`+}++// TestSmtpConnectionReq Test SMTP connection request+type TestSmtpConnectionReq struct {+ g.Meta `path:"/relay/test_connection" method:"post" tags:"Relay Configs" summary:"Test if the SMTP relay connection is normal"`+ Authorization string `json:"authorization" in:"header" dc:"Authorization" v:"required"`+ SenderDomain string `json:"sender_domain" v:"required|max-length:255" dc:"Sender domain, e.g., example.com"`+ RelayHost string `json:"relay_host" v:"required|max-length:255" dc:"Relay server address"`+ RelayPort string `json:"relay_port" v:"required|max-length:10" dc:"Relay server port, e.g., 587"`+ AuthUser string `json:"auth_user" v:"max-length:255" dc:"SMTP authentication username"`+ AuthPassword string `json:"auth_password" v:"max-length:255" dc:"SMTP authentication password"`+ HeloName string `json:"helo_name" v:"max-length:255" dc:"HELO hostname"`+}++// TestSmtpConnectionRes Test SMTP connection response+type TestSmtpConnectionRes struct {+ api_v1.StandardRes+ Data struct {+ ServerInfo string `json:"server_info" dc:"Server information"`+ TlsStatus string `json:"tls_status" dc:"TLS status"`+ AuthStatus string `json:"auth_status" dc:"Authentication status"`+ ConnectionTime int64 `json:"connection_time" dc:"Connection establishment time (milliseconds)"`+ SupportedAuth string `json:"supported_auth" dc:"Authentication methods supported by the server"`+ RecommendConfig bool `json:"recommend_config" dc:"Whether this configuration is recommended"`+ } `json:"data"`+}diff --git a/core/internal/controller/batch_mail/batch_mail_v1_list_tasks.go b/core/internal/controller/batch_mail/batch_mail_v1_list_tasks.goindex 4ee0d987..def49f3b 100644--- a/core/internal/controller/batch_mail/batch_mail_v1_list_tasks.go+++ b/core/internal/controller/batch_mail/batch_mail_v1_list_tasks.go@@ -1,16 +1,12 @@package batch_mailimport (+ "billionmail-core/api/batch_mail/v1""billionmail-core/internal/service/batch_mail"- "billionmail-core/internal/service/email_template""billionmail-core/internal/service/public""context""github.com/gogf/gf/v2/errors/gerror""github.com/gogf/gf/v2/frame/g"- "github.com/gogf/gf/v2/util/gconv"- "strings"-- "billionmail-core/api/batch_mail/v1")func (c *ControllerV1) ListTasks(ctx context.Context, req *v1.ListTasksReq) (res *v1.ListTasksRes, err error) {@@ -30,24 +26,24 @@ func (c *ControllerV1) ListTasks(ctx context.Context, req *v1.ListTasksReq) (resEmailTask: *task,}- template, err := email_template.GetTemplate(ctx, task.TemplateId)- if err == nil {- detail.TemplateName = template.TempName- }-- groupIds := strings.Split(task.Etypes, ",")-- groups := make([]*v1.GroupInfo, 0)- for _, groupId := range groupIds {- groupIdInt := gconv.Int(groupId)-- groupInfo, err := batch_mail.GetGroupInfo(ctx, groupIdInt)- if err != nil {- continue- }- groups = append(groups, groupInfo)- }- detail.Groups = groups+ //template, err := email_template.GetTemplate(ctx, task.TemplateId)+ //if err == nil {+ // detail.TemplateName = template.TempName+ //}+ //+ //groupIds := strings.Split(task.Etypes, ",")+ //+ //groups := make([]*v1.GroupInfo, 0)+ //for _, groupId := range groupIds {+ // groupIdInt := gconv.Int(groupId)+ //+ // groupInfo, err := batch_mail.GetGroupInfo(ctx, groupIdInt)+ // if err != nil {+ // continue+ // }+ // groups = append(groups, groupInfo)+ //}+ //detail.Groups = groups// Get actual sent countsentCount, _ := batch_mail.GetSentCount(ctx, task.Id)diff --git a/core/internal/controller/relay/relay.go b/core/internal/controller/relay/relay.goindex 6e6b4068..8dddbf42 100644--- a/core/internal/controller/relay/relay.go+++ b/core/internal/controller/relay/relay.go@@ -13,12 +13,15 @@ import ("context""crypto/rand""encoding/hex"+ "encoding/json""fmt""github.com/gogf/gf/v2/crypto/gaes""github.com/gogf/gf/v2/errors/gerror""github.com/gogf/gf/v2/frame/g""github.com/gogf/gf/v2/os/gfile"+"path"+ "regexp""strings")@@ -27,6 +30,8 @@ const (postfixConfigDir = "/opt/Billion-Mail/conf/postfix"senderRelayFile = "/conf/sender_relay"saslPasswdFile = "/conf/sasl_passwd"+ senderTransportFile = "/conf/sender_transport_relay"+ headerChecks = "/conf/header_checks"mainCfFile = "main.cf"postfixContainerName = "billionmail-postfix-billionmail-1")@@ -101,7 +106,7 @@ func EncryptPassword(ctx context.Context, plainText string) (string, error) {encrypted, err := gaes.Encrypt([]byte(plainText), keyBytes)if err != nil {- g.Log().Errorf(ctx, "Password encryption failed: %v", err)+ //g.Log().Errorf(ctx, "Password encryption failed: %v", err)return "", gerror.Wrap(err, public.LangCtx(ctx, "Password encryption failed"))}@@ -115,7 +120,7 @@ func DecryptPassword(ctx context.Context, encryptedHex string) (string, error) {encryptedBytes, err := hex.DecodeString(encryptedHex)if err != nil {- g.Log().Errorf(ctx, "Decryption failed, invalid hex format: %v", err)+ //g.Log().Errorf(ctx, "Decryption failed, invalid hex format: %v", err)return "", gerror.Wrap(err, public.LangCtx(ctx, "Password format is incorrect"))}@@ -136,7 +141,7 @@ func DecryptPassword(ctx context.Context, encryptedHex string) (string, error) {decrypted, err := gaes.Decrypt(encryptedBytes, keyBytes)if err != nil {- g.Log().Errorf(ctx, "Password decryption failed: %v", err)+ //g.Log().Errorf(ctx, "Password decryption failed: %v", err)return "", gerror.Wrap(err, public.LangCtx(ctx, "Password decryption failed"))}@@ -206,10 +211,7 @@ func GenerateSPFRecord(ip string, host string, domain string) string {// Add host if provided and not duplicatedif host != "" {- var hostPart string-- hostPart = fmt.Sprintf("include:%s", host)-+ hostPart := fmt.Sprintf("include:%s", host)if !existingParts[hostPart] {newSpfParts = append(newSpfParts, hostPart)}@@ -226,29 +228,64 @@ func GenerateSPFRecord(ip string, host string, domain string) string {// SyncRelayConfigsToPostfixfunc SyncRelayConfigsToPostfix(ctx context.Context) error {- // 1. Ensure the configuration directory exists+ // 1. Retrieve all active relay configurations+ var activeConfigs []*entity.BmRelay+ err := g.DB().Model("bm_relay").Where("active", 1).Scan(&activeConfigs)+ if err != nil {+ //g.Log().Errorf(ctx, "Failed to query active relay configurations: %v", err)+ return gerror.Wrap(err, public.LangCtx(ctx, "Failed to query relay configurations"))+ }+ // Check the total number of configurations (including inactive ones)+ totalCount, err := g.DB().Model("bm_relay").Count()+ if err != nil {+ //g.Log().Errorf(ctx, "Failed to query total relay configuration count: %v", err)+ return gerror.Wrap(err, public.LangCtx(ctx, "Failed to query total relay configuration count"))+ }+ // 2. Generate configuration files+ if err := generateRelayConfigFiles(ctx, activeConfigs); err != nil {+ return err+ }+ // 3. Update master.cf+ if err := updatePostfixMasterCf(ctx, activeConfigs); err != nil {+ return err+ }+ // 4. Update markers in main.cf; if no configurations exist, disable relay functionality+ mainCfPath := path.Join(postfixConfigDir, mainCfFile)+ if err := ensurePostfixRelayConfig(mainCfPath, totalCount > 0); err != nil {+ return err+ }+ // 5. Execute Postfix commands+ return reloadPostfixConfigs(ctx)+}++// generateRelayConfigFiles Generates relay configuration files+func generateRelayConfigFiles(ctx context.Context, configs []*entity.BmRelay) error {+ // Ensure the configuration directory existssenderRelayPath := path.Join(postfixConfigDir, senderRelayFile)saslPasswdPath := path.Join(postfixConfigDir, saslPasswdFile)mainCfPath := path.Join(postfixConfigDir, mainCfFile)+ senderTransportPath := path.Join(postfixConfigDir, senderTransportFile)+ headerChecksPath := path.Join(postfixConfigDir, headerChecks)if !gfile.Exists(postfixConfigDir) {return gerror.Newf(public.LangCtx(ctx, "Postfix configuration directory does not exist : %s", postfixConfigDir))}- // 2. Query all enabled relay configurations- var activeConfigs []*entity.BmRelay- err := g.DB().Model("bm_relay").Where("active", 1).Scan(&activeConfigs)- if err != nil {- return gerror.Wrap(err, public.LangCtx(ctx, "Failed to query relay configurations"))- }- // 3. Generate sender_relay file content+ // Generate configuration file contentvar senderRelayContent strings.Buildervar saslPasswdContent strings.Builder-- if len(activeConfigs) == 0 {+ var senderTransportContent strings.Builder+ var headerChecksContent strings.Builder+ // Add basic rules for header_checks+ headerChecksContent.WriteString("# Custom email header addition rules\n")+ headerChecksContent.WriteString("# Format: /^Subject:/ PREPEND X-Custom: value\n\n")+ if len(configs) == 0 {senderRelayContent.WriteString("# No active relay configurations\n")saslPasswdContent.WriteString("# No active relay configurations\n")+ senderTransportContent.WriteString("# No active relay configurations\n")} else {- for _, config := range activeConfigs {+ for _, config := range configs {+ // Process sender_relay content+ // Ensure SenderDomain starts with @senderDomain := config.SenderDomainif !strings.HasPrefix(senderDomain, "@") {senderDomain = "@" + senderDomain@@ -257,17 +294,46 @@ func SyncRelayConfigsToPostfix(ctx context.Context) error {senderRelayContent.WriteString(fmt.Sprintf("%s [%s]:%s\n",senderDomain, config.RelayHost, config.RelayPort))// Process sasl_passwd content+ // Decrypt passworddecryptedPass, err := DecryptPassword(ctx, config.AuthPassword)if err != nil {-+ g.Log().Warningf(ctx, "Decryption of password for configuration ID %d failed, skipping this configuration: %v", config.Id, err)continue}saslPasswdContent.WriteString(fmt.Sprintf("[%s]:%s %s:%s\n",config.RelayHost, config.RelayPort, config.AuthUser, decryptedPass))+ // Create sender_transport configuration+ smtpName := "smtp"+ if config.SmtpName != "" {+ smtpName = fmt.Sprintf("smtp_%s", config.SmtpName)+ }++ senderTransportContent.WriteString(fmt.Sprintf("%s %s:[%s]:%s\n",+ strings.TrimPrefix(senderDomain, "@"), smtpName, config.RelayHost, config.RelayPort))+ // Add custom headers for each domain+ if config.HeaderJson != "" {+ headerChecksContent.WriteString(fmt.Sprintf("# Adding custom headers for %s\n", senderDomain))+ headerChecksContent.WriteString(fmt.Sprintf("/^From:.*%s/ PREPEND X-Relay-Provider: %s\n",+ strings.TrimPrefix(senderDomain, "@"), config.SmtpName))+ // Parse HeaderJson and add custom headers+ if config.HeaderJson != "" && config.HeaderJson != "{}" {+ var headers map[string]string+ if err := json.Unmarshal([]byte(config.HeaderJson), &headers); err == nil {+ for header, value := range headers {+ headerChecksContent.WriteString(fmt.Sprintf("/^From:.*%s/ PREPEND %s: %s\n",+ strings.TrimPrefix(senderDomain, "@"), header, value))+ }+ } else {+ g.Log().Warning(ctx, "Failed to parse HeaderJson:", err)+ }+ }+ headerChecksContent.WriteString("\n")+ }}}- // 4. Write configuration files++ // 写入配置文件if err := gfile.PutContents(senderRelayPath, senderRelayContent.String()); err != nil {return gerror.Newf("Failed to write sender_relay file: %v", err)}@@ -275,64 +341,230 @@ func SyncRelayConfigsToPostfix(ctx context.Context) error {if err := gfile.PutContents(saslPasswdPath, saslPasswdContent.String()); err != nil {return gerror.Newf("Failed to write sasl_passwd file: %v", err)}- // 5. Decide whether to enable relay functionality based on active configurations- if err := ensurePostfixRelayConfig(mainCfPath, len(activeConfigs) > 0); err != nil {++ if err := gfile.PutContents(senderTransportPath, senderTransportContent.String()); err != nil {+ return gerror.Newf("Failed to write sender_transport file: %v", err)+ }++ if err := gfile.PutContents(headerChecksPath, headerChecksContent.String()); err != nil {+ return gerror.Newf("Failed to write header_checks file: %v", err)+ }++ if err := ensurePostfixRelayConfig(mainCfPath, len(configs) > 0); err != nil {return err}- // 6. Execute Postfix commands- dk, dockerErr := docker.NewDockerAPI()- if dockerErr != nil {- g.Log().Error(ctx, "Failed to connect to Docker API:", dockerErr)- return gerror.Wrap(dockerErr, public.LangCtx(ctx, "Failed to connect to Docker service"))++ return nil+}++// updatePostfixMasterCf Updates the Postfix master configuration file+func updatePostfixMasterCf(ctx context.Context, configs []*entity.BmRelay) error {+ masterCfPath := path.Join(postfixConfigDir, "master.cf")+ if !gfile.Exists(masterCfPath) {+ g.Log().Warning(ctx, "master.cf file not found, skipping configuration update")+ return nil}- defer dk.Close()+ // Read existing content+ masterContent := gfile.GetContents(masterCfPath)++ beginMarker := "# BEGIN BILLIONMAIL RELAY CONFIG - DO NOT EDIT THIS MARKER"+ endMarker := "# END BILLIONMAIL RELAY CONFIG - DO NOT EDIT THIS MARKER"++ var customConfigBlock strings.Builder+ customConfigBlock.WriteString(beginMarker + "\n")++ // If there are active configurations, create service lines for each configuration+ if len(configs) > 0 {+ for _, config := range configs {+ // Generate SMTP service name+ smtpName := "smtp"+ if config.SmtpName != "" {+ smtpName = fmt.Sprintf("smtp_%s", config.SmtpName)+ } else {+ // Generate a unique name based on the domain+ domain := regexp.MustCompile(`[^a-zA-Z0-9]+`).ReplaceAllString(config.SenderDomain, "_")+ smtpName = fmt.Sprintf("smtp_%s", domain)+ }++ // Configure HELO name+ heloName := config.HeloName+ if heloName == "" {+ heloName = config.Host+ if heloName == "" {+ heloName = config.SenderDomain+ }+ }++ serviceLine := fmt.Sprintf("%s unix - - n - - smtp", smtpName)++ var params []string++ if heloName != "" {+ params = append(params, fmt.Sprintf("-o smtp_helo_name=%s", heloName))+ }++ // TLS parameters - configure based on settings+ if config.TlsProtocol != "" {+ switch config.TlsProtocol {+ case "STARTTLS":+ params = append(params, "-o smtp_use_tls=yes")+ params = append(params, "-o smtp_tls_security_level=may")+ case "SSL/TLS":+ params = append(params, "-o smtp_use_tls=yes")+ params = append(params, "-o smtp_tls_wrappermode=yes")+ case "NONE":+ params = append(params, "-o smtp_use_tls=no")+ }+ } else {++ params = append(params, "-o smtp_use_tls=yes")+ params = append(params, "-o smtp_tls_security_level=may")+ }++ // TLS+ if config.SkipTlsVerify == 1 {+ params = append(params, "-o smtp_tls_verify_cert_match=no")+ }++ // Authentication setting+ if config.AuthMethod != "" {+ switch config.AuthMethod {+ case "LOGIN":+ params = append(params, "-o smtp_sasl_mechanism_filter=login")+ case "PLAIN":+ params = append(params, "-o smtp_sasl_mechanism_filter=plain")+ case "CRAM-MD5":+ params = append(params, "-o smtp_sasl_mechanism_filter=cram-md5")+ case "NONE":+ params = append(params, "-o smtp_sasl_auth_enable=no")+ }+ }++ // Connection and concurrency settings+ maxConcurrency := 10+ if config.MaxConcurrency > 0 {+ maxConcurrency = config.MaxConcurrency+ params = append(params, fmt.Sprintf("-o smtp_destination_concurrency_limit=%d", maxConcurrency))+ }++ //maxRetries := 2+ //if config.MaxRetries > 0 {+ // maxRetries = config.MaxRetries+ //+ //}++ if config.MaxWaitTime != "" {+ params = append(params, fmt.Sprintf("-o smtp_connect_timeout=%s", config.MaxWaitTime))+ }++ if config.MaxIdleTime != "" {+ params = append(params, fmt.Sprintf("-o smtp_connection_cache_time_limit=%s", config.MaxIdleTime))+ }++ if len(params) > 0 {++ serviceLine += "\n " + strings.Join(params, "\n ")+ }++ customConfigBlock.WriteString(serviceLine + "\n")+ }+ } else {++ customConfigBlock.WriteString("# No active relay configurations\n")+ }++ customConfigBlock.WriteString(endMarker + "\n")++ beginIndex := strings.Index(masterContent, beginMarker)+ endIndex := strings.Index(masterContent, endMarker)+ hasConfigBlock := beginIndex != -1 && endIndex != -1 && beginIndex < endIndex++ var newContent string+ if hasConfigBlock {++ blockEnd := endIndex + len(endMarker)+ if blockEnd < len(masterContent) && masterContent[blockEnd] == '\n' {+ blockEnd+++ }+ newContent = masterContent[:beginIndex] + customConfigBlock.String()+ if blockEnd < len(masterContent) {+ newContent += masterContent[blockEnd:]+ }+ } else {++ if !strings.HasSuffix(masterContent, "\n") {+ masterContent += "\n"+ }+ newContent = masterContent + customConfigBlock.String()+ }++ if err := gfile.PutContents(masterCfPath, newContent); err != nil {+ return gerror.Newf("Failed to write to master.cf file: %v", err)+ }++ return nil+}++// reloadPostfixConfigs Reloads Postfix configurations+func reloadPostfixConfigs(ctx context.Context) error {+ // Connect to the Docker API+ dk, err := docker.NewDockerAPI()+ if err != nil {+ g.Log().Error(ctx, "Failed to connect to Docker API:", err)+ return gerror.Wrap(err, public.LangCtx(ctx, "Failed to connect to Docker service"))+ }+ defer dk.Close()+ // List of commands to runcmdsToRun := [][]string{{"postmap", "/etc/postfix/conf/sender_relay"},{"postmap", "/etc/postfix/conf/sasl_passwd"},+ {"postmap", "/etc/postfix/conf/sender_transport_relay"},+ {"postmap", "/etc/postfix/conf/header_checks"},{"postfix", "reload"},}-+ // Execute commandsfor _, cmd := range cmdsToRun {cmdStr := strings.Join(cmd, " ")g.Log().Infof(ctx, "Executing command in container %s: %s", postfixContainerName, cmdStr)result, err := dk.ExecCommandByName(ctx, postfixContainerName, cmd, "root")if err != nil {- g.Log().Errorf(ctx, "Failed to execute command: %v, Command: %s", err, cmdStr)+ //g.Log().Errorf(ctx, "Failed to execute command: %v, Command: %s", err, cmdStr)return gerror.Newf("Failed to execute command: %v, Command: %s", err, cmdStr)}if result == nil {- g.Log().Errorf(ctx, "Command execution result is empty: %s", cmdStr)+ //g.Log().Errorf(ctx, "Command execution result is empty: %s", cmdStr)return gerror.Newf("Command execution result is empty: %s", cmdStr)}if result.ExitCode != 0 {- g.Log().Errorf(ctx, "Command execution returned non-zero status: %d, Output: %s, Command: %s",- result.ExitCode, result.Output, cmdStr)+ //g.Log().Errorf(ctx, "Command execution returned non-zero status: %d, Output: %s, Command: %s", result.ExitCode, result.Output, cmdStr)return gerror.Newf("Command execution failed, Exit code: %d, Output: %s, Command: %s",result.ExitCode, result.Output, cmdStr)}g.Log().Infof(ctx, "Command executed successfully: %s, Output: %s", cmdStr, result.Output)}- g.Log().Info(ctx, "Relay configurations synchronized to Postfix successfully")+return nil}-// ensurePostfixRelayConfig Ensures that the Postfix main.cf configuration file contains necessary relay configurations+// ensurePostfixRelayConfigfunc ensurePostfixRelayConfig(mainCfPath string, enableRelay bool) error {content := gfile.GetContents(mainCfPath)- // Define the start and end markers for the configuration block+beginMarker := "# BEGIN RELAY SERVICE CONFIGURATION - DO NOT EDIT THIS MARKER"endMarker := "# END RELAY SERVICE CONFIGURATION - DO NOT EDIT THIS MARKER"- // Construct the complete configuration blockconfigBlock := fmt.Sprintf(`%ssmtp_sasl_auth_enable = yessmtp_sasl_security_options = noanonymoussender_dependent_relayhost_maps = hash:/etc/postfix/conf/sender_relaysmtp_sasl_password_maps = hash:/etc/postfix/conf/sasl_passwd+sender_dependent_default_transport_maps = hash:/etc/postfix/conf/sender_transport_relay+smtp_sasl_mechanism_filter = login, plain, cram-md5+smtp_header_checks = regexp:/etc/postfix/conf/header_checks%s`, beginMarker, endMarker)// Find the existing configuration blockdiff --git a/core/internal/controller/relay/relay_v1_create_relay_config.go b/core/internal/controller/relay/relay_v1_create_relay_config.goindex 8fe77a83..726b655c 100644--- a/core/internal/controller/relay/relay_v1_create_relay_config.go+++ b/core/internal/controller/relay/relay_v1_create_relay_config.go@@ -1,17 +1,16 @@package relayimport (- "context"-- "billionmail-core/api/relay/v1"+ v1 "billionmail-core/api/relay/v1""billionmail-core/internal/service/public"+ "context""github.com/gogf/gf/v2/errors/gerror""github.com/gogf/gf/v2/frame/g""time")-// CreateRelayConfig Creates a relay configurationfunc (c *ControllerV1) CreateRelayConfig(ctx context.Context, req *v1.CreateRelayConfigReq) (res *v1.CreateRelayConfigRes, err error) {+res = &v1.CreateRelayConfigRes{}// Check if the domain already existscount, err := g.DB().Model("bm_relay").Where("sender_domain", req.SenderDomain).Count()@@ -20,7 +19,7 @@ func (c *ControllerV1) CreateRelayConfig(ctx context.Context, req *v1.CreateRelareturn res, nil}if count > 0 {- res.SetError(gerror.New(public.LangCtx(ctx, "Relay configuration for this sender domain already exists: {}", req.SenderDomain)))+ res.SetError(gerror.New(public.LangCtx(ctx, "Sender domain already exists")))return res, nil}// Encrypt the password@@ -29,39 +28,110 @@ func (c *ControllerV1) CreateRelayConfig(ctx context.Context, req *v1.CreateRelares.SetError(err)return res, nil}- // Prepare data- now := time.Now().Unix()- _, err = g.DB().Model("bm_relay").Insert(g.Map{- "remark": req.Remark,- "sender_domain": req.SenderDomain,- "relay_host": req.RelayHost,- "relay_port": req.RelayPort,- "auth_user": req.AuthUser,- "auth_password": encryptedPass,- "ip": req.IP,- "host": req.Host,- "create_time": now,- "update_time": now,- "active": req.Active,- })+ now := time.Now()+ unixTime := int(now.Unix())++ data := g.Map{}++ data["sender_domain"] = req.SenderDomain+ data["relay_host"] = req.RelayHost+ data["relay_port"] = req.RelayPort+ data["auth_user"] = req.AuthUser+ data["auth_password"] = encryptedPass+ data["ip"] = req.IP+ data["host"] = req.Host+ data["remark"] = req.Remark+ data["create_time"] = unixTime+ data["update_time"] = unixTime+ data["rtype"] = req.Rtype++ if req.Active == 0 {+ data["active"] = 0+ } else {+ data["active"] = 1+ }++ // Authentication method: Default is NONE+ //if req.AuthMethod == "" {+ // data["auth_method"] = "NONE"+ //} else {+ // data["auth_method"] = req.AuthMethod+ //}+ // TLS protocol: Default is STARTTLS+ //if req.TlsProtocol == "" {+ // data["tls_protocol"] = "STARTTLS"+ //} else {+ // data["tls_protocol"] = req.TlsProtocol+ //}+ // Whether to skip TLS verification: Default is to skip (1)+ //if req.SkipTlsVerify == 0 {+ // data["skip_tls_verify"] = 0+ //} else {+ // data["skip_tls_verify"] = 1+ //}+ // HELO hostname: Default is mail.SenderDomain+ if req.HeloName == "" {+ data["helo_name"] = "mail." + req.SenderDomain+ } else {+ data["helo_name"] = req.HeloName+ }+ // SMTP service name: Can be empty, will be auto-generated+ data["smtp_name"] = req.SmtpName+ // Email header JSON: Can be empty+ data["header_json"] = req.HeaderJson+ // Maximum concurrent connections: Use default configuration if not set+ if req.MaxConcurrency <= 0 {+ data["max_concurrency"] = 0+ } else {+ data["max_concurrency"] = req.MaxConcurrency+ }+ // Maximum retry attempts+ if req.MaxRetries <= 0 {+ data["max_retries"] = 0+ } else {+ data["max_retries"] = req.MaxRetries+ }+ // Maximum idle time:+ if req.MaxIdleTime == "" {+ data["max_idle_time"] = ""+ } else {+ data["max_idle_time"] = req.MaxIdleTime+ }++ // Maximum wait time:+ if req.MaxWaitTime == "" {+ data["max_wait_time"] = ""+ } else {+ data["max_wait_time"] = req.MaxWaitTime+ }++ _, err = g.DB().Insert(ctx, "bm_relay", data)if err != nil {- res.SetError(gerror.New(public.LangCtx(ctx, "Failed to create relay configuration: {}", err.Error())))+ res.SetError(gerror.New(public.LangCtx(ctx, "Failed to insert relay configuration: {}", err.Error())))return res, nil}- // Sync configuration to Postfix++ spfRecord := GenerateSPFRecord(req.IP, req.Host, req.SenderDomain)+if err := SyncRelayConfigsToPostfix(ctx); err != nil {- // g.Log().Error(ctx, "Failed to sync relay configuration to Postfix:", err)res.SetError(gerror.New(public.LangCtx(ctx, "Created successfully but failed to sync configuration: {}", err.Error())))return res, nil}- // Generate SPF record suggestion- spfRecord := GenerateSPFRecord(req.IP, req.Host, req.SenderDomain)- res.SPFRecord = v1.DNSRecord{- Type: "TXT",- Host: "@",- Value: spfRecord,++ if spfRecord != "" {+ res.SPFRecord = v1.DNSRecord{+ Type: "TXT",+ Host: "@",+ Value: spfRecord,+ }}- res.SetSuccess(public.LangCtx(ctx, "Relay configuration created successfully"))++ if req.Active == 1 {+ res.SetSuccess(public.LangCtx(ctx, "Relay configuration created and enabled successfully"))+ } else {+ res.SetSuccess(public.LangCtx(ctx, "Relay configuration created successfully but not enabled"))+ }+return res, nil}diff --git a/core/internal/controller/relay/relay_v1_get_unbound_domains.go b/core/internal/controller/relay/relay_v1_get_unbound_domains.gonew file mode 100644index 00000000..940121be--- /dev/null+++ b/core/internal/controller/relay/relay_v1_get_unbound_domains.go@@ -0,0 +1,61 @@+package relay++import (+ "billionmail-core/api/relay/v1"+ "billionmail-core/internal/service/public"+ "context"+ "github.com/gogf/gf/v2/errors/gerror"+ "github.com/gogf/gf/v2/frame/g"+)++type DomainEntity struct {+ Domain string `json:"domain"`+}++func (c *ControllerV1) GetUnboundDomains(ctx context.Context, req *v1.GetUnboundDomainsReq) (res *v1.GetUnboundDomainsRes, err error) {+ res = &v1.GetUnboundDomainsRes{}++ var domainEntities []DomainEntity+ err = g.DB().Model("domain").+ Fields("domain").+ Where("active", 1). // 只查询激活的域名+ Scan(&domainEntities)+ if err != nil {+ res.SetError(gerror.New(public.LangCtx(ctx, "Failed to get domain list: {}", err.Error())))+ return res, nil+ }++ var boundDomainEntities []struct {+ SenderDomain string `json:"sender_domain"`+ }+ err = g.DB().Model("bm_relay").+ Fields("sender_domain").+ Scan(&boundDomainEntities)+ if err != nil {+ res.SetError(gerror.New(public.LangCtx(ctx, "Failed to get the domain name of the bound relay: {}", err.Error())))+ return res, nil+ }++ boundDomainsMap := make(map[string]bool)+ for _, entity := range boundDomainEntities {+ boundDomainsMap[entity.SenderDomain] = true+ }++ domainInfoList := make([]*v1.DomainInfo, 0, len(domainEntities))+ for _, entity := range domainEntities {+ domain := entity.Domain++ isBound := boundDomainsMap[domain]++ domainInfo := &v1.DomainInfo{+ Domain: domain,+ IsBound: isBound,+ }+ domainInfoList = append(domainInfoList, domainInfo)+ }++ res.Data = domainInfoList+ res.SetSuccess(public.LangCtx(ctx, "Get the domain list successfully"))++ return res, nil+}diff --git a/core/internal/controller/relay/relay_v1_list_relay_configs.go b/core/internal/controller/relay/relay_v1_list_relay_configs.goindex 89b8de7e..358f1534 100644--- a/core/internal/controller/relay/relay_v1_list_relay_configs.go+++ b/core/internal/controller/relay/relay_v1_list_relay_configs.go@@ -4,6 +4,7 @@ import ("billionmail-core/api/relay/v1""billionmail-core/internal/model/entity""billionmail-core/internal/service/public"+ relay_service "billionmail-core/internal/service/relay""context""github.com/gogf/gf/v2/errors/gerror""github.com/gogf/gf/v2/frame/g"@@ -14,9 +15,10 @@ func (c *ControllerV1) ListRelayConfigs(ctx context.Context, req *v1.ListRelayComodel := g.DB().Model("bm_relay").Safe()- //if req.Active > 0 {- // model = model.Where("active", req.Active)- //}+ if req.Rtype != "" {+ model = model.Where("rtype", req.Rtype)+ }+// Search functionality (supports searching by remarks, relay server address, sender domain)if req.Keyword != "" {searchKey := "%" + req.Keyword + "%"@@ -26,17 +28,18 @@ func (c *ControllerV1) ListRelayConfigs(ctx context.Context, req *v1.ListRelayCo"relay_host LIKE ?", searchKey,).WhereOr("sender_domain LIKE ?", searchKey,+ ).WhereOr(+ "smtp_name LIKE ?", searchKey,+ ).WhereOr(+ "auth_user LIKE ?", searchKey,+ ).WhereOr(+ "rtype LIKE ?", searchKey,)}- count, err := model.Count()- if err != nil {- res.SetError(gerror.New(public.LangCtx(ctx, "Failed to retrieve relay configuration count: {}", err.Error())))- return res, nil- }-var list []*entity.BmRelay- err = model.Page(req.Page, req.PageSize).Order("create_time DESC").Scan(&list)++ err = model.Order("create_time DESC").Scan(&list)if err != nil {res.SetError(gerror.New(public.LangCtx(ctx, "Failed to retrieve relay configuration list: {}", err.Error())))return res, nil@@ -45,10 +48,12 @@ func (c *ControllerV1) ListRelayConfigs(ctx context.Context, req *v1.ListRelayCoresultList := make([]*v1.BmRelayWithSPF, 0, len(list))for _, item := range list {// Generate SPF record suggestion- spfRecord := GenerateSPFRecord(item.IP, item.Host, item.SenderDomain)+ spfRecord := GenerateSPFRecord(item.Ip, item.Host, item.SenderDomain)bmRelay := toPostfixRelayResponse(ctx, item)+ smtpStatus := relay_service.CheckSmtpConnection(ctx, item.RelayHost, item.RelayPort, item.AuthUser, bmRelay.AuthPassword)+relayWithSPF := &v1.BmRelayWithSPF{BmRelay: bmRelay,SPFRecord: v1.DNSRecord{@@ -56,12 +61,16 @@ func (c *ControllerV1) ListRelayConfigs(ctx context.Context, req *v1.ListRelayCoHost: "@",Value: spfRecord,},+ SmtpStatus: v1.SmtpStatus{+ Status: smtpStatus.Status,+ Msg: smtpStatus.Msg,+ },}resultList = append(resultList, relayWithSPF)}- res.Data.Total = count+ res.Data.Total = len(list)res.Data.List = resultListres.SetSuccess(public.LangCtx(ctx, "Relay configuration list retrieved successfully"))return res, nil@@ -73,18 +82,30 @@ func toPostfixRelayResponse(ctx context.Context, relay *entity.BmRelay) *v1.BmReif password == "" {password = "********"}+return &v1.BmRelay{- Id: relay.Id,- Remark: relay.Remark,- SenderDomain: relay.SenderDomain,- RelayHost: relay.RelayHost,- RelayPort: relay.RelayPort,- AuthUser: relay.AuthUser,- AuthPassword: password,- IP: relay.IP,- Host: relay.Host,- Active: relay.Active,- CreateTime: relay.CreateTime,- UpdateTime: relay.UpdateTime,+ Id: relay.Id,+ Remark: relay.Remark,+ Rtype: relay.Rtype,+ SenderDomain: relay.SenderDomain,+ RelayHost: relay.RelayHost,+ RelayPort: relay.RelayPort,+ AuthUser: relay.AuthUser,+ AuthPassword: password,+ Ip: relay.Ip,+ Host: relay.Host,+ Active: relay.Active,+ CreateTime: relay.CreateTime,+ UpdateTime: relay.UpdateTime,+ AuthMethod: relay.AuthMethod,+ TlsProtocol: relay.TlsProtocol,+ SkipTlsVerify: relay.SkipTlsVerify,+ HeloName: relay.HeloName,+ SmtpName: relay.SmtpName,+ HeaderJson: relay.HeaderJson,+ MaxConcurrency: relay.MaxConcurrency,+ //MaxRetries: relay.MaxRetries,+ //MaxIdleTime: relay.MaxIdleTime,+ //MaxWaitTime: relay.MaxWaitTime,}}diff --git a/core/internal/controller/relay/relay_v1_test_smtp_connection.go b/core/internal/controller/relay/relay_v1_test_smtp_connection.gonew file mode 100644index 00000000..3d098df0--- /dev/null+++ b/core/internal/controller/relay/relay_v1_test_smtp_connection.go@@ -0,0 +1,74 @@+package relay++import (+ "billionmail-core/api/relay/v1"+ "billionmail-core/internal/service/public"+ "billionmail-core/internal/service/relay"+ "context"+ "fmt"+ "github.com/gogf/gf/v2/errors/gerror"+ "net/smtp"+)++// customPlainAuth A custom PLAIN authentication method that allows authentication over unencrypted connections+type customPlainAuth struct {+ identity, username, password string+ host string+}++func (a *customPlainAuth) Start(server *smtp.ServerInfo) (string, []byte, error) {+ //Ignoring connection status and host checks, PLAIN authentication is enforced+ resp := []byte{}+ resp = append(resp, []byte(a.identity)...)+ resp = append(resp, 0)+ resp = append(resp, []byte(a.username)...)+ resp = append(resp, 0)+ resp = append(resp, []byte(a.password)...)++ return "PLAIN", resp, nil+}++func (a *customPlainAuth) Next(fromServer []byte, more bool) ([]byte, error) {+ if more {++ return nil, fmt.Errorf("unexpected server challenge")+ }+ return nil, nil+}++func newCustomPlainAuth(identity, username, password, host string) smtp.Auth {+ return &customPlainAuth{+ identity: identity,+ username: username,+ password: password,+ host: host,+ }+}++// TestSmtpConnection+func (c *ControllerV1) TestSmtpConnection(ctx context.Context, req *v1.TestSmtpConnectionReq) (res *v1.TestSmtpConnectionRes, err error) {+ res = &v1.TestSmtpConnectionRes{}++ result := relay.TestSmtpConnection(+ req.RelayHost,+ req.RelayPort,+ req.AuthUser,+ req.AuthPassword,+ )++ if !result.Success {+ res.SetError(gerror.New(public.LangCtx(ctx, result.Message)))+ return res, nil+ }++ res.Data.ServerInfo = result.ServerInfo+ res.Data.TlsStatus = result.TlsStatus+ res.Data.AuthStatus = result.AuthStatus+ res.Data.ConnectionTime = result.ConnectionTime+ res.Data.SupportedAuth = result.SupportedAuth+ res.Data.RecommendConfig = result.RecommendConfig++ res.SetSuccess(public.LangCtx(ctx, "The SMTP connection test was successful"))++ return res, nil+}diff --git a/core/internal/controller/relay/relay_v1_update_relay_config.go b/core/internal/controller/relay/relay_v1_update_relay_config.goindex 171ae3b1..fa346548 100644--- a/core/internal/controller/relay/relay_v1_update_relay_config.go+++ b/core/internal/controller/relay/relay_v1_update_relay_config.go@@ -1,10 +1,10 @@package relayimport (- "billionmail-core/internal/model/entity""context""billionmail-core/api/relay/v1"+ "billionmail-core/internal/model/entity""billionmail-core/internal/service/public""github.com/gogf/gf/v2/errors/gerror"@@ -14,101 +14,138 @@ import (func (c *ControllerV1) UpdateRelayConfig(ctx context.Context, req *v1.UpdateRelayConfigReq) (res *v1.UpdateRelayConfigRes, err error) {res = &v1.UpdateRelayConfigRes{}+ data := g.Map{}- var relayInfo entity.BmRelay+ var relayInfo *entity.BmRelayerr = g.DB().Model("bm_relay").Where("id", req.ID).Scan(&relayInfo)if err != nil {- res.SetError(gerror.New(public.LangCtx(ctx, "Failed to check relay configuration: {}", err.Error())))+ res.SetError(gerror.New(public.LangCtx(ctx, "Failed to query relay configuration: {}", err.Error())))return res, nil}- if relayInfo.Id == 0 {+ if relayInfo == nil {res.SetError(gerror.New(public.LangCtx(ctx, "Relay configuration does not exist")))return res, nil}- // Domain updates are not allowed- // If the domain is updated, check if the domain is already used by another record- //if req.SenderDomain != "" && req.SenderDomain != relayInfo.SenderDomain {- // count, err := g.DB().Model("bm_relay").- // Where("sender_domain", req.SenderDomain).- // Where("id != ?", req.ID).- // Count()- // if err != nil {- // res.SetError(gerror.New(public.LangCtx(ctx, "Failed to check domain uniqueness: {}", err.Error())))- // return res, nil- // }- // if count > 0 {- // res.SetError(gerror.New(public.LangCtx(ctx, "Relay configuration for this sender domain already exists: {}", req.SenderDomain)))- // return res, nil- // }- //}-- updateData := g.Map{- "update_time": time.Now().Unix(),- }- // Update only the provided fields++ // If we updated the sender domain, check for conflicts with other records+ if req.SenderDomain != "" && req.SenderDomain != relayInfo.SenderDomain {+ count, err := g.DB().Model("bm_relay").Where("sender_domain", req.SenderDomain).Where("id != ?", req.ID).Count()+ if err != nil {+ res.SetError(gerror.New(public.LangCtx(ctx, "Failed to check domain uniqueness: {}", err.Error())))+ return res, nil+ }+ if count > 0 {+ res.SetError(gerror.New(public.LangCtx(ctx, "Sender domain already exists")))+ return res, nil+ }+ data["sender_domain"] = req.SenderDomain+ }++ if req.AuthPassword != "" {+ encryptedPass, err := EncryptPassword(ctx, req.AuthPassword)+ if err != nil {+ res.SetError(err)+ return res, nil+ }+ data["auth_password"] = encryptedPass+ }++ now := time.Now()+ data["update_time"] = int(now.Unix())+ data["active"] = req.Active+if req.Remark != "" {- updateData["remark"] = req.Remark+ data["remark"] = req.Remark+ }+ if req.Rtype != "" {+ data["rtype"] = req.Rtype}- //if req.SenderDomain != "" {- // updateData["sender_domain"] = req.SenderDomain- //}if req.RelayHost != "" {- updateData["relay_host"] = req.RelayHost+ data["relay_host"] = req.RelayHost}if req.RelayPort != "" {- updateData["relay_port"] = req.RelayPort+ data["relay_port"] = req.RelayPort}if req.AuthUser != "" {- updateData["auth_user"] = req.AuthUser- }- // Special handling for password - encrypt and store if a new password is provided- if req.AuthPassword != "" && req.AuthPassword != "********" {- encryptedPass, err := EncryptPassword(ctx, req.AuthPassword)- if err != nil {- res.SetError(err)- return res, nil- }- updateData["auth_password"] = encryptedPass+ data["auth_user"] = req.AuthUser}if req.IP != "" {- updateData["ip"] = req.IP+ data["ip"] = req.IP}if req.Host != "" {- updateData["host"] = req.Host+ data["host"] = req.Host+ }++ if req.AuthMethod != "" {+ data["auth_method"] = req.AuthMethod+ }+ if req.TlsProtocol != "" {+ data["tls_protocol"] = req.TlsProtocol+ }+ if req.SkipTlsVerify != 0 {+ data["skip_tls_verify"] = req.SkipTlsVerify+ }+ if req.HeloName != "" {+ data["helo_name"] = req.HeloName}- // Active can be updated separately to 0 as a disable operation- if req.Active >= 0 {- updateData["active"] = req.Active+ if req.SmtpName != "" {+ data["smtp_name"] = req.SmtpName+ }+ if req.HeaderJson != "" {+ data["header_json"] = req.HeaderJson+ }+ if req.MaxConcurrency != 0 {+ data["max_concurrency"] = req.MaxConcurrency+ }+ if req.MaxRetries != 0 {+ data["max_retries"] = req.MaxRetries+ }+ if req.MaxIdleTime != "" {+ data["max_idle_time"] = req.MaxIdleTime+ }+ if req.MaxWaitTime != "" {+ data["max_wait_time"] = req.MaxWaitTime}- _, err = g.DB().Model("bm_relay").Where("id", req.ID).Update(updateData)+ if len(data) <= 1 {+ res.SetSuccess(public.LangCtx(ctx, "No content needs to be updated"))+ return res, nil+ }++ _, err = g.DB().Model("bm_relay").Where("id", req.ID).Update(data)if err != nil {res.SetError(gerror.New(public.LangCtx(ctx, "Failed to update relay configuration: {}", err.Error())))return res, nil}- // Sync configuration to Postfix- if err := SyncRelayConfigsToPostfix(ctx); err != nil {+ var updatedRelay *entity.BmRelay+ err = g.DB().Model("bm_relay").Where("id", req.ID).Scan(&updatedRelay)+ if err != nil {+ g.Log().Warning(ctx, "The query for the updated record failed: ", err.Error())+ }++ spfRecord := ""+ if updatedRelay != nil {+ spfRecord = GenerateSPFRecord(updatedRelay.Ip, updatedRelay.Host, updatedRelay.SenderDomain)+ }++ if err := SyncRelayConfigsToPostfix(ctx); err != nil {res.SetError(gerror.New(public.LangCtx(ctx, "Updated successfully but failed to sync configuration: {}", err.Error())))return res, nil}- // Retrieve the latest information for generating SPF records- var latestRelayInfo entity.BmRelay- _ = g.DB().Model("bm_relay").Where("id", req.ID).Scan(&latestRelayInfo)- spfRecord := GenerateSPFRecord(latestRelayInfo.IP, latestRelayInfo.Host, latestRelayInfo.SenderDomain)- res.SPFRecord = v1.DNSRecord{- Type: "TXT",- Host: "@",- Value: spfRecord,+ if spfRecord != "" {+ res.SPFRecord = v1.DNSRecord{+ Type: "TXT",+ Host: "@",+ Value: spfRecord,+ }}- if len(updateData) > 2 { // In addition to update_time, other fields have been updated- res.SetSuccess(public.LangCtx(ctx, "Relay configuration updated successfully"))- } else if req.Active == 1 {- res.SetSuccess(public.LangCtx(ctx, "Relay configuration has been enabled"))+ if req.Active == 1 {+ res.SetSuccess(public.LangCtx(ctx, "Relay configuration updated and enabled successfully"))} else if req.Active == 0 {- res.SetSuccess(public.LangCtx(ctx, "Relay configuration has been disabled"))+ res.SetSuccess(public.LangCtx(ctx, "Relay configuration updated and disabled successfully"))} else {res.SetSuccess(public.LangCtx(ctx, "Relay configuration updated successfully"))}diff --git a/core/internal/model/entity/bm_relay.go b/core/internal/model/entity/bm_relay.goindex 580416cf..bdcefa4a 100644--- a/core/internal/model/entity/bm_relay.go+++ b/core/internal/model/entity/bm_relay.go@@ -1,17 +1,32 @@+// =================================================================================+// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.+// =================================================================================+package entity-// BmBcc+// BmRelay is the golang structure for table bm_relay.type BmRelay struct {- Id int `json:"id"`- Remark string `json:"remark"` // Remark, e.g., "AWS SES Japan Region"- SenderDomain string `json:"sender_domain"` // Sender domain, e.g., "example.com" (add "@" when writing to config)- RelayHost string `json:"relay_host"` // Relay server address- RelayPort string `json:"relay_port"` // Relay server port, e.g., "587"- AuthUser string `json:"auth_user"` // SMTP authentication username- AuthPassword string `json:"auth_password"` // SMTP authentication password (consider encrypted storage)- IP string `json:"ip"` // IP for reminding users to update SPF record (optional) +ip4:23.158.104.237- Host string `json:"host"` // Host for reminding users to update SPF record (optional) include:lootk.cn- Active int `json:"active"` // Whether this relay configuration is active: 1-enabled, 0-disabled- CreateTime int `json:"create_time"` // Creation time- UpdateTime int `json:"update_time"` // Update time+ Id int `json:"id" description:""`+ Remark string `json:"remark" description:"Remarks"`+ Rtype string `json:"rtype" description:"Relay type: gmail, sendgrid, custom, aws, mailgun, local"`+ SenderDomain string `json:"sender_domain" description:"Sender domain, e.g., \"@example.com\""`+ RelayHost string `json:"relay_host" description:"Relay server address"`+ RelayPort string `json:"relay_port" description:"Relay server port, e.g., \"587\""`+ AuthUser string `json:"auth_user" description:"SMTP authentication username"`+ AuthPassword string `json:"auth_password" description:"SMTP authentication password (consider encrypted storage)"`+ Ip string `json:"ip" description:"IP used to remind users to update SPF records (optional)"`+ Host string `json:"host" description:"Host used to remind users to update SPF records (optional)"`+ CreateTime int `json:"create_time" description:""`+ UpdateTime int `json:"update_time" description:""`+ Active int `json:"active" description:"Whether this relay configuration is enabled"`+ AuthMethod string `json:"auth_method" description:"Authentication method: LOGIN, PLAIN, CRAM-MD5, NONE"`+ TlsProtocol string `json:"tls_protocol" description:"TLS protocol: STARTTLS, SSL/TLS, NONE"`+ SkipTlsVerify int `json:"skip_tls_verify" description:"Whether to skip TLS verification: 1-skip, 0-do not skip"`+ HeloName string `json:"helo_name" description:"HELO hostname"`+ SmtpName string `json:"smtp_name" description:"Unique name of the SMTP server"`+ HeaderJson string `json:"header_json" description:"Custom email headers in JSON format"`+ MaxConcurrency int `json:"max_concurrency" description:"Maximum concurrent connections"`+ MaxRetries int `json:"max_retries" description:"Maximum retry attempts"`+ MaxIdleTime string `json:"max_idle_time" description:"Maximum idle connection time"`+ MaxWaitTime string `json:"max_wait_time" description:"Maximum wait time"`}diff --git a/core/internal/service/database_initialization/mail_serv.go b/core/internal/service/database_initialization/mail_serv.goindex a15f746c..a843220d 100644--- a/core/internal/service/database_initialization/mail_serv.go+++ b/core/internal/service/database_initialization/mail_serv.go@@ -64,6 +64,7 @@ func init() {CREATE TABLE IF NOT EXISTS bm_relay (id BIGSERIAL PRIMARY KEY,remark varchar(255), -- Remarks+ rtype varchar(30), -- Relay type: gmail , sendgrid, custom, aws, mailgun, localsender_domain varchar(255) NOT NULL, -- Sender domain, e.g., "@example.com"relay_host varchar(255) NOT NULL, -- Relay server address"relay_port varchar(10) NOT NULL, -- Relay server port, e.g., "587"@@ -73,7 +74,17 @@ func init() {host varchar(255), -- Host used to remind users to update SPF records (optional)create_time int NOT NULL default 0,update_time int NOT NULL default 0,- active smallint NOT NULL DEFAULT 1 -- Whether this relay configuration is enabled+ active smallint NOT NULL DEFAULT 1, -- Whether this relay configuration is enabled+ auth_method varchar(20), -- Authentication method: LOGIN, PLAIN, CRAM-MD5, NONE+ tls_protocol varchar(20), -- TLS protocol: STARTTLS, SSL/TLS, NONE+ skip_tls_verify smallint DEFAULT 0, -- Whether to skip TLS verification: 1-skip, 0-do not skip+ helo_name varchar(255), -- HELO hostname+ smtp_name varchar(50), -- Unique name of the SMTP server+ header_json text, -- Custom email headers in JSON format+ max_concurrency int DEFAULT 10, -- Maximum concurrent connections+ max_retries int DEFAULT 2, -- Maximum retry attempts+ max_idle_time varchar(10) DEFAULT '15s', -- Maximum idle connection time+ max_wait_time varchar(10) DEFAULT '5s' -- Maximum wait time)`,`-- alias_domainCREATE TABLE IF NOT EXISTS alias_domain (diff --git a/core/internal/service/relay/smtp_connection_helper.go b/core/internal/service/relay/smtp_connection_helper.gonew file mode 100644index 00000000..75f15a35--- /dev/null+++ b/core/internal/service/relay/smtp_connection_helper.go@@ -0,0 +1,310 @@+package relay++import (+ "billionmail-core/api/relay/v1"+ "billionmail-core/internal/service/public"+ "context"+ "crypto/tls"+ "fmt"+ "github.com/gogf/gf/v2/os/gcache"+ "net"+ "net/smtp"+ "strings"+ "time"+)++// customPlainAuth Custom implementation of PLAIN authentication method, allowing authentication over non-encrypted connections.+type customPlainAuth struct {+ identity, username, password string+ host string+}++func (a *customPlainAuth) Start(server *smtp.ServerInfo) (string, []byte, error) {+ // Ignore connection status and host checks, force PLAIN authentication.+ resp := []byte{}+ resp = append(resp, []byte(a.identity)...)+ resp = append(resp, 0)+ resp = append(resp, []byte(a.username)...)+ resp = append(resp, 0)+ resp = append(resp, []byte(a.password)...)++ return "PLAIN", resp, nil+}++func (a *customPlainAuth) Next(fromServer []byte, more bool) ([]byte, error) {+ if more {+ // Should not be called.+ return nil, fmt.Errorf("unexpected server challenge")+ }+ return nil, nil+}++// NewCustomPlainAuth Creates a custom authentication method.+func NewCustomPlainAuth(identity, username, password, host string) smtp.Auth {+ return &customPlainAuth{+ identity: identity,+ username: username,+ password: password,+ host: host,+ }+}++// Cache instance for storing SMTP connection states.+var smtpStatusCache = gcache.New()++// Cache expiration time (5 minutes).+const smtpStatusCacheExpire = 5 * time.Minute++// SMTP status cache key format.+const smtpStatusCacheKeyFormat = "smtp_status:%s:%s:%s"++// SmtpConnectionStatus Represents the SMTP connection status.+type SmtpConnectionStatus struct {+ Status bool `json:"status"` // Whether the connection was successful.+ Msg string `json:"msg"` // Status description.+ LastTime int64 `json:"lastTime"` // Last test time (Unix timestamp).+}++// SmtpConnectionTestResult Complete SMTP connection test result.+type SmtpConnectionTestResult struct {+ Success bool // Whether the connection test was successful.+ Message string // Connection test result message.+ ServerInfo string // Server information (server welcome message).+ TlsStatus string // TLS status (enabled and type).+ AuthStatus string // Authentication status (success, failure, or unauthenticated).+ ConnectionTime int64 // Time to establish the connection (milliseconds).+ SupportedAuth string // Authentication methods supported by the server.+ RecommendConfig bool // Whether this configuration is recommended.+}++// TestSmtpConnection Complete SMTP connection testing method.+func TestSmtpConnection(host, port, user, password string) *SmtpConnectionTestResult {+ result := &SmtpConnectionTestResult{+ Success: false,+ Message: "",+ ServerInfo: "",+ TlsStatus: "",+ AuthStatus: "",+ ConnectionTime: 0,+ SupportedAuth: "",+ RecommendConfig: false,+ }++ startTime := time.Now()++ // Set default values+ tlsProtocol := "STARTTLS"+ skipTlsVerify := 1++ // Connection timeout setting+ timeout := 10 * time.Second++ // Attempt to connect to the SMTP server+ serverAddr := fmt.Sprintf("%s:%s", host, port)++ // First, try a plain TCP connection+ conn, err := net.DialTimeout("tcp", serverAddr, timeout)+ if err != nil {+ result.Message = fmt.Sprintf("Unable to connect to SMTP server: %v", err)+ return result+ }+ defer conn.Close()++ // Create an SMTP client+ client, err := smtp.NewClient(conn, host)+ if err != nil {+ result.Message = fmt.Sprintf("Failed to create SMTP client: %v", err)+ return result+ }+ defer client.Close()++ // Record server information+ result.ServerInfo = fmt.Sprintf("Connected to %s", serverAddr)++ // Automatically determine whether TLS is needed based on the port+ isTLS := false+ if port == "465" {+ // Port 465 typically requires direct SSL/TLS, but we already established a plain connection, so we just record the state.+ result.TlsStatus = "Port 465 typically requires direct TLS connection."+ } else if port == "587" || strings.ToUpper(tlsProtocol) == "STARTTLS" {+ // Port 587 typically uses STARTTLS+ tlsConfig := &tls.Config{+ ServerName: host,+ InsecureSkipVerify: skipTlsVerify == 1,+ MinVersion: tls.VersionTLS12,+ }++ if err = client.StartTLS(tlsConfig); err != nil {+ result.TlsStatus = fmt.Sprintf("STARTTLS failed: %v", err)+ } else {+ result.TlsStatus = "STARTTLS enabled."+ isTLS = true+ }+ } else {+ // Other ports (e.g., 25) default to plaintext+ result.TlsStatus = "TLS not enabled (plaintext connection)."+ }++ // 发送EHLO命令+ //if err = client.Hello(heloName); err != nil {+ // result.Message = fmt.Sprintf("EHLO命令失败: %v", err)+ // return result+ //}++ // Check if AUTH is supported+ if ok, _ := client.Extension("AUTH"); ok {+ result.SupportedAuth = "Server supports authentication."+ } else {+ result.SupportedAuth = "Server does not support authentication or requires TLS."+ }++ // If authentication information is provided, attempt authentication+ if user != "" && password != "" {+ var auth smtp.Auth++ // Select authentication method based on the port and TLS status+ if port == "25" && !isTLS {+ // Port 25 with no TLS uses custom authentication method+ auth = NewCustomPlainAuth("", user, password, host)+ } else {+ // Other cases use standard authentication method+ auth = smtp.PlainAuth("", user, password, host)+ }++ if err = client.Auth(auth); err != nil {+ result.AuthStatus = fmt.Sprintf("Authentication failed: %v", err)+ result.Message = fmt.Sprintf("SMTP authentication failed: %v", err)+ return result+ }+ result.AuthStatus = "Authentication succeeded."+ } else {+ result.AuthStatus = "No authentication information provided."+ }++ // Calculate connection time+ connectionTime := time.Since(startTime).Milliseconds()+ result.ConnectionTime = connectionTime++ // Set success status+ result.Success = true+ result.Message = "SMTP connection test succeeded."++ // Provide configuration recommendations based on connection time and authentication status+ if connectionTime < 1000 && result.AuthStatus == "Authentication succeeded." {+ result.RecommendConfig = true+ }++ return result+}++// CheckSmtpConnection Checks the SMTP connection status with caching support.+func CheckSmtpConnection(ctx context.Context, host, port, user, password string) *SmtpConnectionStatus {+ // Generate cache key+ cacheKey := fmt.Sprintf(smtpStatusCacheKeyFormat, host, port, user)++ // Try to retrieve status from cache+ if v, err := smtpStatusCache.Get(ctx, cacheKey); err == nil && v != nil {+ var status SmtpConnectionStatus+ if err := v.Scan(&status); err == nil {+ return &status+ }+ }++ // Cache miss, perform actual check+ status := checkSmtpConnectionImpl(host, port, user, password)++ // Store result in cache+ err := smtpStatusCache.Set(ctx, cacheKey, status, smtpStatusCacheExpire)+ if err != nil {+ return nil+ }++ return status+}++// checkSmtpConnectionImpl Actual implementation of SMTP connection checking.+func checkSmtpConnectionImpl(host, port, user, password string) *SmtpConnectionStatus {+ status := &SmtpConnectionStatus{+ Status: false,+ Msg: "Not checked",+ LastTime: time.Now().Unix(),+ }++ // Connection timeout setting (short time for batch checks)+ timeout := 5 * time.Second++ // Attempt TCP connection+ serverAddr := fmt.Sprintf("%s:%s", host, port)+ conn, err := net.DialTimeout("tcp", serverAddr, timeout)+ if err != nil {+ status.Msg = public.Lang("Connection failed: {}", err)+ return status+ }+ defer conn.Close()++ // Create SMTP client+ client, err := smtp.NewClient(conn, host)+ if err != nil {+ status.Msg = public.Lang("Failed to create SMTP client: {}", err)+ return status+ }+ defer client.Close()++ // Determine if TLS is needed based on the port+ if port == "587" {+ // Port 587 typically uses STARTTLS+ tlsConfig := &tls.Config{+ ServerName: host,+ InsecureSkipVerify: true,+ MinVersion: tls.VersionTLS12,+ }++ if err = client.StartTLS(tlsConfig); err != nil {+ status.Msg = public.Lang("STARTTLS failed: {}", err)+ return status+ }+ }++ // If authentication information is provided, attempt authentication+ if user != "" && password != "" {+ var auth smtp.Auth++ // Select authentication method based on the port+ if port == "25" {+ // Port 25 uses custom authentication method+ auth = NewCustomPlainAuth("", user, password, host)+ } else {+ // Other cases use standard authentication method+ auth = smtp.PlainAuth("", user, password, host)+ }++ if err = client.Auth(auth); err != nil {+ status.Msg = public.Lang("Authentication failed: {}", err)+ return status+ }+ }++ // All checks passed+ status.Status = true+ status.Msg = public.Lang("Connection normal")+ return status+}++// ForceRefreshSmtpStatus Forces refresh of the SMTP connection status cache.+func ForceRefreshSmtpStatus(ctx context.Context, relayConfig *v1.BmRelay) *SmtpConnectionStatus {+ // Generate cache key+ cacheKey := fmt.Sprintf(smtpStatusCacheKeyFormat, relayConfig.RelayHost, relayConfig.RelayPort, relayConfig.AuthUser)++ // Perform actual check+ status := checkSmtpConnectionImpl(relayConfig.RelayHost, relayConfig.RelayPort, relayConfig.AuthUser, relayConfig.AuthPassword)++ // Update cache+ smtpStatusCache.Set(ctx, cacheKey, status, smtpStatusCacheExpire)++ return status+}++// ClearSmtpStatusCache Clears the SMTP status cache.+func ClearSmtpStatusCache(ctx context.Context) error {+ return smtpStatusCache.Clear(ctx)+}diff --git a/core/languages/en/server.json b/core/languages/en/server.jsonindex e7caeb3f..4f3ac843 100644--- a/core/languages/en/server.json+++ b/core/languages/en/server.json@@ -1,209 +1,216 @@{- "3b368cc0ed56bf60af8fbd89110c10eb": "Failed to check group name existence {}",- "d9d1b03b410bff357119385c8a02d52f": "The Emails field is required",- "d56e34051c220c47cfa6193f1402cfc2": "Failed to create ACME client: {}",- "d95c970abb94d179a91edb2ca88f3857": "rule already exists",- "3a4b90655ca29980afac50c743e6335f": "Contacts group updated successfully",- "d9cbb6f388e7c09bc9a4390da98466d8": "Unsupported DNS provider: {}",- "86a705200cd5129f27bcaba59e6c7725": "Relay configuration has been enabled",- "36d389a78c8ff7d5cc6a0a7e13c1cbaf": "Relay configuration created successfully",+ "9c9cef3ac01b96aab874ef3f429a2943": "Failed to generate user private key: {}",+ "a9a03bc6b49efffd96c8abfa767fe32b": "Failed to create group {}",+ "45f9b0357d8ca6d777537810ae7b8d37": "Get all contact groups successfully",+ "f9d35e36bd65bc9837a5cab6ef6690b8": "Failed to get the domain name of the bound relay: {}",+ "03ec9ea94e6d19081854251cfc940f9d": "Password cannot be empty",+ "cb0c0c1a5df7c0298ffc0f11f48e507d": "Failed to query logs: {}",+ "77b05f8cfc38335239f0d0979c25219a": "You have been successfully unsubscribed",+ "cfe34541cd652181cace381ff348e305": "The group name already exists",+ "59be0320af3aafd913199f3cc3f6a5f2": "The configuration file was saved successfully",+ "e7182e52401fad085e60d602c27387d7": "Relay configuration updated and disabled successfully",+ "8c446046a50ff4f3a6fa7685b49232b2": "Failed to update task sending speed: {}",+ "5afbbda85af563cc8308c4fc1f9b642b": "DNS automated resolution failed: SecretId or SecretKey is empty in TencentCloud configuration file",+ "c8787cfb723d8ec6fac9c5f32adc552f": "Failed to delete contacts: {}",+ "2fe296d9873ffa1c0e1d5d1ebcd39f3c": "Failed to register user: {}",+ "2f88b2da357f0653c08b7a13a580d4ee": "Failed to save private key file: {}",+ "0e517ad7b113389f5a2a00ee9b231f1d": "forward target address cannot be empty",+ "fd9d98aee954ec7ee34294a75846f283": "Failed to get contacts list: {}",+ "b610ee9cf00fe6a43c67a9c6118f6b8e": "Failed to create temp directory",+ "dc7faa0d285fa8e4b1764e56d1324d05": "Failed to save file: {}",+ "6bdf4d63c418e0edc0f08e63a037c85e": "Relay configuration updated successfully",+ "7f9ace5f7f4cea1db26fa476016706d2": "Password decryption failed","1afe8ae80ac731b8f542a36117cc4f08": "DNS automated resolution failed: ClientID, ClientSecret or TenantID is empty in AzureDNS configuration file",+ "8a4f0046b5b736d633666569cb7a1194": "Language information retrieved successfully",+ "3d9eeac2d497b21d5f2bf03835f96384": "Get contacts list successfully",+ "792c1e0c471e8e6fbf7ba843372bc8bf": "add success but sync config failed: {}",+ "e1c553d83856d3b619fb547ab25ca055": "Cannot resume task because it is {}",+ "88a1eb329e4b7206725070e1edbbbbbb": "Template copied successfully",+ "0e17231f19649ba81ecc17354abb04ad": "Failed to check template name",+ "fb64c55a01adb41b52f8a4e5fd040cbe": "Password format is incorrect",+ "bed2caed845c0b9e30ab80c0c48cece7": "The SMTP connection test was successful",+ "62beee1f0499b7f241f5ff44f4c18957": "Failed to get contact count: {}",+ "899aa5864042c8ae1d5c22916f014536": "delete mail forward success",+ "97d0fba201f387b2d85b38f2b170238a": "Failed to get task list {}",+ "e36fde71b37a68737d6291d215eaba30": "Failed to create zip file",+ "b84beea5f625bfcce74d0cf958f46175": "Get email forwarding list successfully",+ "81b89f038520819c26cf805a78da66a6": "Failed to apply for SSL certificate: {}",+ "47e3853ad296e155ef33586a87607f8c": "Failed to get template list",+ "305ed26d490c1b6933b2f36ec6293019": "Group list retrieved successfully",+ "2c093792e27fb27d44487357a4ccdf79": "Failed to insert relay configuration: {}",+ "8aa8118b50f01b394da86325ff1e5538": "Relay configuration list retrieved successfully",+ "3a4b90655ca29980afac50c743e6335f": "Contacts group updated successfully",+ "1a97a5feee70821182f5121e202becb0": "Get the domain list successfully",+ "b6845a87e3628a62cc3772d065284501": "Failed to set Godaddy DNS verification: {}",+ "16617a517ca6084240cd3a89785d220d": "No valid contacts found in file",+ "afeb46390575bd5b46d609401a612540": "Setup failure: {}",+ "a04e2de385a1897e1f66022b7522ee70": "Failed to import contacts: {}",+ "4b227327ad57a611a51fa884ad2005d5": "Failed to set Tencent Cloud DNS verification: {}",+ "0b5719d31ac40c5b68c38b0ea7a54d79": "The list of exception recipients was successfully obtained",+ "02fb0cdb73a955ea735da1fba8bfedf0": "Task is already running",+ "a2b54c1488156527d3ab5b70dd43b00d": "The exception recipient was removed successfully",+ "f5bb2c8f6b3b0c5b898b6ef77c2c2976": "record not found",+ "d4b29684cc97f87ac032d30bdacb8fdb": "convert data failed: {}",+ "b9a808bdcce1c4dae0078bffe0ca6b4c": "Failed to query relay configurations",+ "31705d0e2838c824b2731305d633791e": "Failed to set HTTP verification: {}",+ "f1b7666b6c24cf96b199c7d6a8e5cc3d": "Failed to set CloudXNS DNS verification: {}",+ "19f273b2d02fe825a259f0dcef0846bb": "No valid contacts found",+ "490e0850addc1c63b98df930dcc35517": "Created successfully but failed to sync configuration: {}",+ "d4e08f609109aa60b2424d4475af67c4": "Failed to delete task {}",+ "7214bbfc19073c87756042a590a92cf2": "check domain failed: {}",+ "f097264a398ec2de937818423796705f": "Relay configuration created and enabled successfully","82e2bfca279fc7ce44f0ee89216e6056": "Group ID is required for importing to existing group",- "80a58714868cd2842d163933c46c25a4": "Failed to delete relay configuration: {}",- "f5fc1416ecf72fdd1b4b69d058f45527": "Get template list successfully",- "e5636c0b2a1bd2e4ea2f3dc33561ed16": "Group {} not found",- "d066eea78be1a06815b3d2ca1618f836": "Task sending speed updated successfully",+ "28f485d9950008807d1bf6acf8f34920": "Failed to set Alibaba Cloud DNS verification: {}",+ "d882b421af4359a3585b71f54226a473": "Relay configuration created successfully but not enabled","7799f39591b3b2b3be24672ae5266f85": "Invalid service type",- "061ce9712e60353babc4f5c4ea90019c": "DNS automated resolution failed: APIKey or Email is empty in Cloudflare configuration file",- "19f273b2d02fe825a259f0dcef0846bb": "No valid contacts found",+ "30833d812240fc76a775e790ac666344": "delete bcc rule failed: {}","099677a0ebec47d3bacd9f4be805540f": "Failed to set Cloudflare DNS verification: {}",- "f895002eb18cfdda7ecd3127ade7f09b": "Deleted successfully but failed to sync configuration: {}",- "e36fde71b37a68737d6291d215eaba30": "Failed to create zip file",+ "50b6488825a184919fe9b3e1bfd07855": "Task created successfully",+ "143eb8fdc28721b31ad47c5d6e70ff79": "Failed to get the exception recipient list: {}",+ "e31410c1d1d17117e4542007de9079ef": "Task mail logs retrieved successfully",+ "5251010ec9e364492c236bf8b9983928": "File not found",+ "2554dfe06c63b7ad7380e3ca6343b248": "delete bcc rule success",+ "947d4784a9179c7ce1762a385681d0eb": "DNS automated resolution failed: APIKey or SecretKey is empty in AliDNS configuration file",+ "b0d0664fd9d61bf48dce28ea39298b43": "Failed to get contacts for group {}: {}",+ "007b93137ac1564e3be820c766e9a79b": "get bcc list failed: {}",+ "75a0f317fe6ca8ddf88f1bd8902bf273": "Content and render data are required for drag type",+ "9b1ea682424405c725df2c5a812785fb": "forward address not found","c5101832f4e144d5304d7964bc9b4c4c": "Failed to save file",- "62beee1f0499b7f241f5ff44f4c18957": "Failed to get contact count: {}",- "0738f755518ec391457e93392300dcbe": "Failed to get group list {}",- "51381a06136eb2439b75a70b805638e3": "Failed to merge contact groups: {}",- "5ca563a6955a312b2962d754d2bca84d": "Successfully imported {} contacts",- "9a7cb2b7b8da34938451cbc8f3235ea7": "Failed to create directory: {}",- "a3979cd9a1162981e23b946abda1cb69": "Failed to resume task: {}",- "5afbbda85af563cc8308c4fc1f9b642b": "DNS automated resolution failed: SecretId or SecretKey is empty in TencentCloud configuration file",- "f1b7666b6c24cf96b199c7d6a8e5cc3d": "Failed to set CloudXNS DNS verification: {}",- "b84beea5f625bfcce74d0cf958f46175": "Get email forwarding list successfully",- "50b8a54c5616806be80bb937bee2887c": "add mail forward failed: {}",- "05ba2d1d0e2c3294177a827a36eab5a9": "modify success but sync config failed: {}",- "13ff8aab2abb2f8f4453a8988855fed5": "Contact groups merged successfully",- "b751a6c674be7921229b5df0f53aadb6": "Task not found: {}",+ "9de8568f450e170e5ea15c3f10ba9aeb": "Failed to retrieve relay configuration list: {}","34c8abb15d595593070bbbd2fe1e3db7": "add mail forward success","3b35d24ed7e70dbf89d75805ca1d1add": "forward address already exists",- "46e9e33b3d713a63718b83e320fe987a": "domain not found in mail server",+ "c9bc74ad1022c491caa33300a6a511ce": "Failed to import recipients for group {}: {}",+ "4f5ed0217989096ab0a0db0c3e92435b": "File content cannot be empty","da97b2bd35bfb2210c6507de8ea7735d": "Failed to remove exception recipient: {}",- "a54d0c56762720e988c301ac8138e313": "Relay configuration does not exist",- "d4e08f609109aa60b2424d4475af67c4": "Failed to delete task {}",- "0f3c3572e54724eaeeb630a17e92a069": "The exception recipient was added successfully",- "5350f35b647b27e2b729940f36ca46f3": "Template not found",- "0e517ad7b113389f5a2a00ee9b231f1d": "forward target address cannot be empty",- "afeb46390575bd5b46d609401a612540": "Setup failure: {}",- "768e0b135446e2b1089b1782225b878d": "Task deleted successfully",- "da3a6cce34026ab87459baff83a10664": "delete success but sync config failed: {}",- "47e3853ad296e155ef33586a87607f8c": "Failed to get template list",- "24219280cb1c0a59c2ef473f8a346036": "Password encryption failed",- "8a4f0046b5b736d633666569cb7a1194": "Language information retrieved successfully",- "5e2d011d2d983f4b02006ea7061f7e84": "Failed to get log count: {}",- "b610ee9cf00fe6a43c67a9c6118f6b8e": "Failed to create temp directory",- "d795f8adb93b895f593f0e18b95cc9b9": "Invalid task ID",- "88a1eb329e4b7206725070e1edbbbbbb": "Template copied successfully",- "30833d812240fc76a775e790ac666344": "delete bcc rule failed: {}",- "a9a03bc6b49efffd96c8abfa767fe32b": "Failed to create group {}",- "38da72f3f5a9654da3f7445c2eaac9c8": "modify bcc rule success",- "5e7ff29f11e2b662f38b3314a5b48fce": "Failed to get statistics data",- "3acc6f9654d4580c639f36bb83346fae": "Failed to calculate domain stats: {}",- "a04e2de385a1897e1f66022b7522ee70": "Failed to import contacts: {}",- "0be15fdaee51425c4965b0977325f13b": "modify mail forward success",+ "3ef0bf2b4aecc9ac0d23fd5fa2f29bd5": "DNS automated resolution failed: APIKey or SecretKey is empty in CloudXNS configuration file",+ "05ba2d1d0e2c3294177a827a36eab5a9": "modify success but sync config failed: {}","e24019f40ca7d2fd21e235a88c5ba2b5": "Invalid language code: {}",- "af428953683baf90fe7e4b25b0a5b0f3": "Threads cannot exceed 100",- "6cb049d37900c8975f399ca24363364d": "Task resumed successfully",- "8c446046a50ff4f3a6fa7685b49232b2": "Failed to update task sending speed: {}",- "51e88a4f80ca6c8fa1ed3ed9ebc1ffba": "Postfix configuration directory does not exist : %s",- "6876412afa6abae5b56243f07ab9d193": "Get task send count successfully",- "8a0359a1a6244c61a1aecfe07d908d57": "Task executor not found",- "2554dfe06c63b7ad7380e3ca6343b248": "delete bcc rule success",- "373d0604b10a577dc44799fa07899af8": "Cannot pause task because it is {}",- "9899282e6520acd304eaaa9421c05848": "No groups were deleted",- "94ed3d61da4e11647f0455b0c75fbbde": "Template created successfully",- "4cb1e6de913601d6f36751d2b91ebbbe": "send email successfully",- "ba9fcf4868f8bd76962df4cb866e2b63": "Task list retrieved successfully",- "26dbf3c3bca78dbb6c9deeeab3d06fe7": "Failed to get email forwarding list: {}",- "49f525390b0217fdcd2695c9f6440625": "Target group not found",- "46e96ff5209a2963f5e73ec939c35191": "No group IDs provided for unsubscribe",- "5251010ec9e364492c236bf8b9983928": "File not found",+ "0a7bfad13e7c5717094cf40cd7cdc4a6": "Failed to update recipient count for task {}: {}",+ "3b368cc0ed56bf60af8fbd89110c10eb": "Failed to check group name existence {}",+ "9d737149a48a2ac96c90b1d013993c23": "Contacts imported to existing group successfully",+ "f4e7ae5b50f52703cc2135e74b61e74c": "No contacts to export",+ "d066eea78be1a06815b3d2ca1618f836": "Task sending speed updated successfully","f7ae213781dd348d9b5e1678c469135e": "failed to get template {}",- "401173e94957419edba26c55489e64d7": "Failed to query language setting: {}",- "5908fb2681164dcbe43b9573503061dc": "Invalid import type",- "9c9cef3ac01b96aab874ef3f429a2943": "Failed to generate user private key: {}",- "fd9d98aee954ec7ee34294a75846f283": "Failed to get contacts list: {}","5116e6768c3b46107db5f91223850a4b": "Failed to update group: {}",- "021a68bd2a4ef3c7204fc26bc164db8d": "Failed to export contacts",- "fdcf72b9d0314c9f9c49c12a1367ded1": "Group IDs cannot be empty",+ "5e7ff29f11e2b662f38b3314a5b48fce": "Failed to get statistics data",+ "2eb08ce237603930ebaed085cd94f075": "Failed to create new template {}",+ "46e96ff5209a2963f5e73ec939c35191": "No group IDs provided for unsubscribe","a612d312ea7a0f52d647838d5863d7ea": "Successfully retrieved contact count",- "4e861c946158b7448812774131e2859c": "check rule failed: {}",- "0a7bfad13e7c5717094cf40cd7cdc4a6": "Failed to update recipient count for task {}: {}",- "03ec9ea94e6d19081854251cfc940f9d": "Password cannot be empty",- "607e1d854783c8229998ac2b5b6923d3": "Invalid token",- "e95112f4ded1fa179f50350ad578cadc": "Failed to set AzureDNS verification: {}",- "c8787cfb723d8ec6fac9c5f32adc552f": "Failed to delete contacts: {}",- "9de8568f450e170e5ea15c3f10ba9aeb": "Failed to retrieve relay configuration list: {}",- "c6c486e5fd9757864fd075c4302e402f": "DNS verification setup failed: {}",- "1b795b470e434f6ddd26b41c1d4c5087": "get bcc total failed: {}",- "75a0f317fe6ca8ddf88f1bd8902bf273": "Content and render data are required for drag type",- "c764c458a9f6bfa136cb44d03547c2b8": "update record failed: {}",- "e3c7f474275f7b2d55973177552bdddd": "Group updated successfully",- "6835df391b8ff2a98e373dac96403cbf": "Group created successfully",- "7b44d08e2db456314994600190fad61d": "Encryption key length is insufficient",- "76c5d5c30370537f061cb37e6acbee74": "Failed to update relay configuration: {}",- "cb0c0c1a5df7c0298ffc0f11f48e507d": "Failed to query logs: {}",- "490e0850addc1c63b98df930dcc35517": "Created successfully but failed to sync configuration: {}",- "e1c553d83856d3b619fb547ab25ca055": "Cannot resume task because it is {}",- "fb64c55a01adb41b52f8a4e5fd040cbe": "Password format is incorrect",- "2f88b2da357f0653c08b7a13a580d4ee": "Failed to save private key file: {}",- "5ce9f365a9d0112c428039a01938f028": "Failed to delete template",- "bd3f332cb31ef5ea53e2090a9c0415f4": "Failed to update template",- "9c911110ac308115fdd49184296cffb1": "create email sender failed: : {}",- "b9a808bdcce1c4dae0078bffe0ca6b4c": "Failed to query relay configurations",- "9872df3b08750d672f630b7a29d8bcb7": "delete mail forward failed: {}",- "f0718aa56bf32b211f394939040d7e4b": "Failed to parse encryption key",- "854bf3ecc6ee7aaddfcbf36f620db6e6": "Relay configuration for this sender domain already exists: {}",- "9c0bc6a01d069452cbd2d5ec63611a47": "Failed to import contacts {}",- "f093312850130aeb979cbf760a472f50": "Get contacts trend successfully",- "f4e7ae5b50f52703cc2135e74b61e74c": "No contacts to export",- "cdf0a7c7b597c03ebe39d1dc9fc7bad4": "get bcc list success",- "45f9b0357d8ca6d777537810ae7b8d37": "Get all contact groups successfully",- "0e17231f19649ba81ecc17354abb04ad": "Failed to check template name",- "f5bb2c8f6b3b0c5b898b6ef77c2c2976": "record not found",- "2bea34c08ffbbd414f8fe174200ae45b": "Failed to connect to Docker service",- "9b1ea682424405c725df2c5a812785fb": "forward address not found",- "cdcc74185e5a5f746796ed54e27084c4": "Contacts content cannot be empty",- "8aa8118b50f01b394da86325ff1e5538": "Relay configuration list retrieved successfully",- "505a83f220c02df2f85c3810cd9ceb38": "Success",- "164b158b63f132f713454894525b47db": "Failed to create relay configuration: {}",- "50b6488825a184919fe9b3e1bfd07855": "Task created successfully",- "7df6bcf6968c51ad2fed293f6ef5e839": "Failed to check domain uniqueness: {}",- "143eb8fdc28721b31ad47c5d6e70ff79": "Failed to get the exception recipient list: {}",- "04cb2179762a27275f26b55fd3986094": "Failed to save certificate file: {}",- "cc297470b261d40099a21548c6ad1103": "Contacts deleted successfully",- "c77f16d899d954bf712cb652a05c3eae": "Template updated successfully",- "b6845a87e3628a62cc3772d065284501": "Failed to set Godaddy DNS verification: {}",- "007b93137ac1564e3be820c766e9a79b": "get bcc list failed: {}",+ "b7d930d5b30da6439a55e75941632077": "The Status must be 0 or 1",+ "0f3c3572e54724eaeeb630a17e92a069": "The exception recipient was added successfully",+ "4cb1e6de913601d6f36751d2b91ebbbe": "send email successfully","c0af73ad7a6d2abc0ecc651659d34f1f": "File data is required for upload type",- "305ed26d490c1b6933b2f36ec6293019": "Group list retrieved successfully",+ "b63fd35f9884da849193b8aadebb0c91": "Failed to get task information: {}",+ "80a58714868cd2842d163933c46c25a4": "Failed to delete relay configuration: {}",+ "5e2d011d2d983f4b02006ea7061f7e84": "Failed to get log count: {}",+ "0fdf6b21eacd19ce746639f1c4613607": "end_time must greater than start_time","d4c627b74eb92ec4981b28076cfc72e1": "Task is already paused",- "756ac7fa200ffde20783bf7cdcd07bba": "Failed to add exception recipient: {}",- "2fe296d9873ffa1c0e1d5d1ebcd39f3c": "Failed to register user: {}",- "e31410c1d1d17117e4542007de9079ef": "Task mail logs retrieved successfully",- "3cca0feaa53c7ad8ac7491ca287a010c": "check address failed: {}",- "792c1e0c471e8e6fbf7ba843372bc8bf": "add success but sync config failed: {}",- "377c5bf0af4f02e9c168065786710081": "Failed to get task info: {}",- "30d816b65457a2f2d7645e20c0d02ad0": "Group created and contacts imported successfully",- "0b5719d31ac40c5b68c38b0ea7a54d79": "The list of exception recipients was successfully obtained",- "31705d0e2838c824b2731305d633791e": "Failed to set HTTP verification: {}",- "97f87b75c36da3aec2a952fa834627ac": "Setup successful",- "7214bbfc19073c87756042a590a92cf2": "check domain failed: {}","d408d0eeaf1c7b55c07ea2480551295a": "send email to %s failed: %v",- "3ef0bf2b4aecc9ac0d23fd5fa2f29bd5": "DNS automated resolution failed: APIKey or SecretKey is empty in CloudXNS configuration file",- "4a2ca0029619c0489e4857fc46f05dae": "Group {} does not exist",- "a1d4a6d74c95129539e81e525874cf42": "Failed to get contacts trend: {}",- "17cd9a6149c0d09c5fcb356bb87097e6": "Failed to create template",- "faf64ba15b1fabb9414647dcf9d02e64": "DNS automated resolution failed: APIKey or APISecret is empty in Godaddy configuration file",- "77b05f8cfc38335239f0d0979c25219a": "You have been successfully unsubscribed",- "598021920c533e1916fdf92a1913c5b4": "Relay configuration deleted successfully",- "4f5ed0217989096ab0a0db0c3e92435b": "File content cannot be empty",+ "377c5bf0af4f02e9c168065786710081": "Failed to get task info: {}",+ "5350f35b647b27e2b729940f36ca46f3": "Template not found","280fa801b8645324e00cc5fe66b64be2": "Groups deleted successfully",- "c85857381feba17eb78fd7c08da874c1": "Failed to get configuration",- "02fb0cdb73a955ea735da1fba8bfedf0": "Task is already running",- "24f397bc47fe4fd5070ed802a258882a": "Failed to pause task: {}",- "4b227327ad57a611a51fa884ad2005d5": "Failed to set Tencent Cloud DNS verification: {}",- "c42c949419cc1135f819733bdd4b2c43": "check record failed: {}",+ "5ec212bc8a33d56501ce9a5ee87e6388": "Failed to get template",+ "3acc6f9654d4580c639f36bb83346fae": "Failed to calculate domain stats: {}",+ "faf64ba15b1fabb9414647dcf9d02e64": "DNS automated resolution failed: APIKey or APISecret is empty in Godaddy configuration file",+ "b751a6c674be7921229b5df0f53aadb6": "Task not found: {}",+ "c6c486e5fd9757864fd075c4302e402f": "DNS verification setup failed: {}",+ "04cb2179762a27275f26b55fd3986094": "Failed to save certificate file: {}",+ "f5fc1416ecf72fdd1b4b69d058f45527": "Get template list successfully",+ "9872df3b08750d672f630b7a29d8bcb7": "delete mail forward failed: {}",+ "e5636c0b2a1bd2e4ea2f3dc33561ed16": "Group {} not found",+ "4e861c946158b7448812774131e2859c": "check rule failed: {}",+ "f895002eb18cfdda7ecd3127ade7f09b": "Deleted successfully but failed to sync configuration: {}",+ "fddd0cc8e075462e22e755930d85e9e2": "No content needs to be updated",+ "c77f16d899d954bf712cb652a05c3eae": "Template updated successfully",+ "26dbf3c3bca78dbb6c9deeeab3d06fe7": "Failed to get email forwarding list: {}","03d42c3d05f049f81f25bd5542605247": "Template deleted successfully",- "f6e6b200886d0123d2cd4b8b99b59a8a": "Failed to retrieve relay configuration count: {}",+ "ba9fcf4868f8bd76962df4cb866e2b63": "Task list retrieved successfully",+ "51e88a4f80ca6c8fa1ed3ed9ebc1ffba": "Postfix configuration directory does not exist : %s",+ "24219280cb1c0a59c2ef473f8a346036": "Password encryption failed",+ "3cca0feaa53c7ad8ac7491ca287a010c": "check address failed: {}","a4b73f8dcd714531725fe80b7804c0b6": "DNS provider initialization failed: {}",- "cfe34541cd652181cace381ff348e305": "The group name already exists",- "060ea008e1c913f2369d56ca1b4e4732": "modify mail forward failed: {}",- "05b263181c41092a2ad1dd9c1e461505": "Contacts exported successfully",- "2a81ce1d69a8c672b13f713fed8efbd7": "Email address is required",- "3d9eeac2d497b21d5f2bf03835f96384": "Get contacts list successfully",- "81b89f038520819c26cf805a78da66a6": "Failed to apply for SSL certificate: {}",- "eb9a5db01e85ddbe92c58f7a7d92e9c1": "Task paused successfully",- "c9bc74ad1022c491caa33300a6a511ce": "Failed to import recipients for group {}: {}",- "59be0320af3aafd913199f3cc3f6a5f2": "The configuration file was saved successfully",- "7f9ace5f7f4cea1db26fa476016706d2": "Password decryption failed",- "28f485d9950008807d1bf6acf8f34920": "Failed to set Alibaba Cloud DNS verification: {}",- "5ec212bc8a33d56501ce9a5ee87e6388": "Failed to get template",- "2eb08ce237603930ebaed085cd94f075": "Failed to create new template {}",- "d4b29684cc97f87ac032d30bdacb8fdb": "convert data failed: {}",- "16617a517ca6084240cd3a89785d220d": "No valid contacts found in file",+ "82640ede823ad6489a41b285153b871e": "Failed to get domain list: {}",+ "d9cbb6f388e7c09bc9a4390da98466d8": "Unsupported DNS provider: {}",+ "cc297470b261d40099a21548c6ad1103": "Contacts deleted successfully",+ "a27451b1f35b49db9c32c479ac305bb3": "Relay configuration updated and enabled successfully",+ "598021920c533e1916fdf92a1913c5b4": "Relay configuration deleted successfully",+ "2bea34c08ffbbd414f8fe174200ae45b": "Failed to connect to Docker service",+ "0738f755518ec391457e93392300dcbe": "Failed to get group list {}",+ "6cb049d37900c8975f399ca24363364d": "Task resumed successfully",+ "a1d4a6d74c95129539e81e525874cf42": "Failed to get contacts trend: {}",+ "a3979cd9a1162981e23b946abda1cb69": "Failed to resume task: {}",+ "401173e94957419edba26c55489e64d7": "Failed to query language setting: {}","2b4ba7c7debcabca2bbc12a5b43216b9": "Threads must be greater than zero",- "899aa5864042c8ae1d5c22916f014536": "delete mail forward success",- "6bdf4d63c418e0edc0f08e63a037c85e": "Relay configuration updated successfully",- "b7d930d5b30da6439a55e75941632077": "The Status must be 0 or 1",- "b63fd35f9884da849193b8aadebb0c91": "Failed to get task information: {}",+ "bd3f332cb31ef5ea53e2090a9c0415f4": "Failed to update template",+ "31a3a0e0984cb426e9c286a297e41936": "Template name already exists",+ "82e8dae5aa169e8ec605d18d4d8f0e52": "Updated successfully but failed to sync configuration: {}",+ "51381a06136eb2439b75a70b805638e3": "Failed to merge contact groups: {}","a534316619beb0acace0fff24e047179": "Failed to retrieve encryption key",- "f72c704764b66bc2b79e7c9ec098cf42": "add bcc rule failed: {}",- "dc7faa0d285fa8e4b1764e56d1324d05": "Failed to save file: {}",- "947d4784a9179c7ce1762a385681d0eb": "DNS automated resolution failed: APIKey or SecretKey is empty in AliDNS configuration file",+ "e95112f4ded1fa179f50350ad578cadc": "Failed to set AzureDNS verification: {}",+ "eb9a5db01e85ddbe92c58f7a7d92e9c1": "Task paused successfully",+ "f093312850130aeb979cbf760a472f50": "Get contacts trend successfully",+ "c42c949419cc1135f819733bdd4b2c43": "check record failed: {}",+ "d9d1b03b410bff357119385c8a02d52f": "The Emails field is required",+ "af428953683baf90fe7e4b25b0a5b0f3": "Threads cannot exceed 100",+ "a54d0c56762720e988c301ac8138e313": "Relay configuration does not exist",+ "c764c458a9f6bfa136cb44d03547c2b8": "update record failed: {}",+ "da3a6cce34026ab87459baff83a10664": "delete success but sync config failed: {}",+ "7b44d08e2db456314994600190fad61d": "Encryption key length is insufficient",+ "17cd9a6149c0d09c5fcb356bb87097e6": "Failed to create template",+ "060ea008e1c913f2369d56ca1b4e4732": "modify mail forward failed: {}",+ "d56e34051c220c47cfa6193f1402cfc2": "Failed to create ACME client: {}",+ "46e9e33b3d713a63718b83e320fe987a": "domain not found in mail server",+ "cdf0a7c7b597c03ebe39d1dc9fc7bad4": "get bcc list success",+ "7df6bcf6968c51ad2fed293f6ef5e839": "Failed to check domain uniqueness: {}",+ "c85857381feba17eb78fd7c08da874c1": "Failed to get configuration",+ "e2f82d17b06214fc9f7349ab65c3fc88": "Failed to query total relay configuration count",+ "505a83f220c02df2f85c3810cd9ceb38": "Success",+ "607e1d854783c8229998ac2b5b6923d3": "Invalid token",+ "9c911110ac308115fdd49184296cffb1": "create email sender failed: : {}",+ "2a81ce1d69a8c672b13f713fed8efbd7": "Email address is required",+ "cdcc74185e5a5f746796ed54e27084c4": "Contacts content cannot be empty",+ "8f56cf515d945adacd33735488bd719c": "Failed to query relay configuration: {}",+ "4a349d2513037fbf4cb56a53eaa95986": "Get template successfully",+ "d795f8adb93b895f593f0e18b95cc9b9": "Invalid task ID","1e1a8ced7fc67f908d9d3b02c3ec8b46": "bcc rule enabled",- "0fdf6b21eacd19ce746639f1c4613607": "end_time must greater than start_time",- "82e8dae5aa169e8ec605d18d4d8f0e52": "Updated successfully but failed to sync configuration: {}",- "4373803a1f957c80713f81faf0c4c59a": "Relay configuration has been disabled",- "97d0fba201f387b2d85b38f2b170238a": "Failed to get task list {}",+ "0be15fdaee51425c4965b0977325f13b": "modify mail forward success",+ "f72c704764b66bc2b79e7c9ec098cf42": "add bcc rule failed: {}",+ "373d0604b10a577dc44799fa07899af8": "Cannot pause task because it is {}",+ "94ed3d61da4e11647f0455b0c75fbbde": "Template created successfully",+ "a003a3bdf60c59af78e03a4d319caa8a": "Failed to update contacts group: {}",+ "fdcf72b9d0314c9f9c49c12a1367ded1": "Group IDs cannot be empty",+ "f0718aa56bf32b211f394939040d7e4b": "Failed to parse encryption key",+ "97f87b75c36da3aec2a952fa834627ac": "Setup successful",+ "76c5d5c30370537f061cb37e6acbee74": "Failed to update relay configuration: {}",+ "96edab89a3b7323ff740513f65714d1f": "Source group {} not found",+ "6876412afa6abae5b56243f07ab9d193": "Get task send count successfully",+ "38da72f3f5a9654da3f7445c2eaac9c8": "modify bcc rule success",+ "8a0359a1a6244c61a1aecfe07d908d57": "Task executor not found",+ "061ce9712e60353babc4f5c4ea90019c": "DNS automated resolution failed: APIKey or Email is empty in Cloudflare configuration file",+ "5ca563a6955a312b2962d754d2bca84d": "Successfully imported {} contacts",+ "24f397bc47fe4fd5070ed802a258882a": "Failed to pause task: {}",+ "768e0b135446e2b1089b1782225b878d": "Task deleted successfully",+ "50b8a54c5616806be80bb937bee2887c": "add mail forward failed: {}",+ "49f525390b0217fdcd2695c9f6440625": "Target group not found",+ "adf02febb0ba95dc4a9ecc646d2e4908": "Sender domain already exists",+ "9c0bc6a01d069452cbd2d5ec63611a47": "Failed to import contacts {}",+ "549fd095df0deacd5eff1b8bb67059f8": "bcc rule disabled",+ "4a2ca0029619c0489e4857fc46f05dae": "Group {} does not exist",+ "30d816b65457a2f2d7645e20c0d02ad0": "Group created and contacts imported successfully",+ "021a68bd2a4ef3c7204fc26bc164db8d": "Failed to export contacts",+ "5ce9f365a9d0112c428039a01938f028": "Failed to delete template",+ "d95c970abb94d179a91edb2ca88f3857": "rule already exists",+ "5908fb2681164dcbe43b9573503061dc": "Invalid import type","c72f95e44d52de76c1d9bfc5846493c8": "Failed to create task {}","3a74e319ad2960cf47669416cfbe25e3": "Failed to check relay configuration: {}",+ "9899282e6520acd304eaaa9421c05848": "No groups were deleted",+ "6835df391b8ff2a98e373dac96403cbf": "Group created successfully",+ "05b263181c41092a2ad1dd9c1e461505": "Contacts exported successfully","ededca9db3d3fab582c0d550891bd655": "Failed to get template {}",- "4a349d2513037fbf4cb56a53eaa95986": "Get template successfully",- "96edab89a3b7323ff740513f65714d1f": "Source group {} not found",- "a2b54c1488156527d3ab5b70dd43b00d": "The exception recipient was removed successfully",- "b0d0664fd9d61bf48dce28ea39298b43": "Failed to get contacts for group {}: {}",- "31a3a0e0984cb426e9c286a297e41936": "Template name already exists",- "549fd095df0deacd5eff1b8bb67059f8": "bcc rule disabled",+ "756ac7fa200ffde20783bf7cdcd07bba": "Failed to add exception recipient: {}","b3ed3ae5b6a18c6c326b07d469908282": "add bcc rule success",- "a003a3bdf60c59af78e03a4d319caa8a": "Failed to update contacts group: {}",- "9d737149a48a2ac96c90b1d013993c23": "Contacts imported to existing group successfully"+ "9a7cb2b7b8da34938451cbc8f3235ea7": "Failed to create directory: {}",+ "1b795b470e434f6ddd26b41c1d4c5087": "get bcc total failed: {}",+ "13ff8aab2abb2f8f4453a8988855fed5": "Contact groups merged successfully",+ "e3c7f474275f7b2d55973177552bdddd": "Group updated successfully"}\ No newline at end of filediff --git a/core/languages/zh/server.json b/core/languages/zh/server.jsonindex 19034dc8..f964acb2 100644--- a/core/languages/zh/server.json+++ b/core/languages/zh/server.json@@ -1,209 +1,216 @@{- "3b368cc0ed56bf60af8fbd89110c10eb": "无法检查组名称存在{}",- "d9d1b03b410bff357119385c8a02d52f": "需要电子邮件字段",- "d56e34051c220c47cfa6193f1402cfc2": "无法创建ACME客户端:{}",- "d95c970abb94d179a91edb2ca88f3857": "规则已经存在",- "3a4b90655ca29980afac50c743e6335f": "联系人组成功更新",- "d9cbb6f388e7c09bc9a4390da98466d8": "不支持的DNS提供商:{}",- "86a705200cd5129f27bcaba59e6c7725": "继电器配置已启用",- "36d389a78c8ff7d5cc6a0a7e13c1cbaf": "继电器配置成功创建了",+ "9c9cef3ac01b96aab874ef3f429a2943": "无法生成用户私钥:{}",+ "a9a03bc6b49efffd96c8abfa767fe32b": "无法创建组{}",+ "45f9b0357d8ca6d777537810ae7b8d37": "成功获得所有联系人组",+ "f9d35e36bd65bc9837a5cab6ef6690b8": "无法获取绑定继电器的域名:{}",+ "03ec9ea94e6d19081854251cfc940f9d": "密码不能为空",+ "cb0c0c1a5df7c0298ffc0f11f48e507d": "无法查询日志:{}",+ "77b05f8cfc38335239f0d0979c25219a": "您已经成功地取消了",+ "cfe34541cd652181cace381ff348e305": "组名称已经存在",+ "59be0320af3aafd913199f3cc3f6a5f2": "配置文件已成功保存",+ "e7182e52401fad085e60d602c27387d7": "继电器配置成功更新和禁用",+ "8c446046a50ff4f3a6fa7685b49232b2": "无法更新任务发送速度:{}",+ "5afbbda85af563cc8308c4fc1f9b642b": "DNS自动分辨率失败:tencentCloud配置文件中的SecretID或SecretKey为空",+ "c8787cfb723d8ec6fac9c5f32adc552f": "无法删除联系人:{}",+ "2fe296d9873ffa1c0e1d5d1ebcd39f3c": "无法注册用户:{}",+ "2f88b2da357f0653c08b7a13a580d4ee": "无法保存私钥文件:{}",+ "0e517ad7b113389f5a2a00ee9b231f1d": "正向目标地址不能为空",+ "fd9d98aee954ec7ee34294a75846f283": "无法获得联系人列表:{}",+ "b610ee9cf00fe6a43c67a9c6118f6b8e": "无法创建临时目录",+ "dc7faa0d285fa8e4b1764e56d1324d05": "无法保存文件:{}",+ "6bdf4d63c418e0edc0f08e63a037c85e": "继电器配置成功更新了",+ "7f9ace5f7f4cea1db26fa476016706d2": "密码解密失败","1afe8ae80ac731b8f542a36117cc4f08": "DNS自动分辨率失败:clientId,clientsecret或tenantid在azuredns配置文件中为空",+ "8a4f0046b5b736d633666569cb7a1194": "语言信息成功检索",+ "3d9eeac2d497b21d5f2bf03835f96384": "成功获取联系人列表",+ "792c1e0c471e8e6fbf7ba843372bc8bf": "添加成功,但同步配置失败:{}",+ "e1c553d83856d3b619fb547ab25ca055": "无法恢复任务,因为它是{}",+ "88a1eb329e4b7206725070e1edbbbbbb": "模板成功复制",+ "0e17231f19649ba81ecc17354abb04ad": "无法检查模板名称",+ "fb64c55a01adb41b52f8a4e5fd040cbe": "密码格式不正确",+ "bed2caed845c0b9e30ab80c0c48cece7": "SMTP连接测试成功了",+ "62beee1f0499b7f241f5ff44f4c18957": "无法获得联系人计数:{}",+ "899aa5864042c8ae1d5c22916f014536": "删除邮件前进成功",+ "97d0fba201f387b2d85b38f2b170238a": "无法获得任务列表{}",+ "e36fde71b37a68737d6291d215eaba30": "无法创建zip文件",+ "b84beea5f625bfcce74d0cf958f46175": "成功获取电子邮件转发列表",+ "81b89f038520819c26cf805a78da66a6": "无法申请SSL证书:{}",+ "47e3853ad296e155ef33586a87607f8c": "无法获取模板列表",+ "305ed26d490c1b6933b2f36ec6293019": "成功检索的小组列表",+ "2c093792e27fb27d44487357a4ccdf79": "无法插入继电器配置:{}",+ "8aa8118b50f01b394da86325ff1e5538": "成功检索的继电器配置列表",+ "3a4b90655ca29980afac50c743e6335f": "联系人组成功更新",+ "1a97a5feee70821182f5121e202becb0": "成功获取域列表",+ "b6845a87e3628a62cc3772d065284501": "未能设置Godaddy DNS验证:{}",+ "16617a517ca6084240cd3a89785d220d": "在文件中找不到有效的联系人",+ "afeb46390575bd5b46d609401a612540": "设置故障:{}",+ "a04e2de385a1897e1f66022b7522ee70": "无法导入联系人:{}",+ "4b227327ad57a611a51fa884ad2005d5": "无法设置Tencent Cloud DNS验证:{}",+ "0b5719d31ac40c5b68c38b0ea7a54d79": "例外收件人列表已成功获得",+ "02fb0cdb73a955ea735da1fba8bfedf0": "任务已经在运行",+ "a2b54c1488156527d3ab5b70dd43b00d": "例外收件人被成功删除",+ "f5bb2c8f6b3b0c5b898b6ef77c2c2976": "记录找不到",+ "d4b29684cc97f87ac032d30bdacb8fdb": "转换数据失败:{}",+ "b9a808bdcce1c4dae0078bffe0ca6b4c": "无法查询继电器配置",+ "31705d0e2838c824b2731305d633791e": "无法设置HTTP验证:{}",+ "f1b7666b6c24cf96b199c7d6a8e5cc3d": "无法设置CloudXns DNS验证:{}",+ "19f273b2d02fe825a259f0dcef0846bb": "找不到有效的联系人",+ "490e0850addc1c63b98df930dcc35517": "成功创建但无法同步配置:{}",+ "d4e08f609109aa60b2424d4475af67c4": "无法删除任务{}",+ "7214bbfc19073c87756042a590a92cf2": "检查域失败:{}",+ "f097264a398ec2de937818423796705f": "继电器配置成功创建和启用了","82e2bfca279fc7ce44f0ee89216e6056": "导入现有组需要组ID",- "80a58714868cd2842d163933c46c25a4": "无法删除继电器配置:{}",- "f5fc1416ecf72fdd1b4b69d058f45527": "成功获取模板列表",- "e5636c0b2a1bd2e4ea2f3dc33561ed16": "{}找不到",- "d066eea78be1a06815b3d2ca1618f836": "任务发送速度已成功更新",+ "28f485d9950008807d1bf6acf8f34920": "无法设置Alibaba Cloud DNS验证:{}",+ "d882b421af4359a3585b71f54226a473": "继电器配置成功创建但未启用","7799f39591b3b2b3be24672ae5266f85": "无效的服务类型",- "061ce9712e60353babc4f5c4ea90019c": "DNS自动分辨率失败:Apikey或电子邮件在CloudFlare配置文件中为空",- "19f273b2d02fe825a259f0dcef0846bb": "找不到有效的联系人",+ "30833d812240fc76a775e790ac666344": "删除BCC规则失败:{}","099677a0ebec47d3bacd9f4be805540f": "无法设置CloudFlare DNS验证:{}",- "f895002eb18cfdda7ecd3127ade7f09b": "成功删除但无法同步配置:{}",- "e36fde71b37a68737d6291d215eaba30": "无法创建zip文件",+ "50b6488825a184919fe9b3e1bfd07855": "成功创建了任务",+ "143eb8fdc28721b31ad47c5d6e70ff79": "无法获得异常收件人列表:{}",+ "e31410c1d1d17117e4542007de9079ef": "成功检索的任务邮件日志",+ "5251010ec9e364492c236bf8b9983928": "找不到文件",+ "2554dfe06c63b7ad7380e3ca6343b248": "删除BCC规则成功",+ "947d4784a9179c7ce1762a385681d0eb": "DNS自动分辨率失败:Apikey或SecretKey在Alidns配置文件中为空",+ "b0d0664fd9d61bf48dce28ea39298b43": "无法获得组的联系人{}:{}",+ "007b93137ac1564e3be820c766e9a79b": "获取BCC列表失败:{}",+ "75a0f317fe6ca8ddf88f1bd8902bf273": "拖动类型需要内容和渲染数据",+ "9b1ea682424405c725df2c5a812785fb": "找不到前向地址","c5101832f4e144d5304d7964bc9b4c4c": "无法保存文件",- "62beee1f0499b7f241f5ff44f4c18957": "无法获得联系人计数:{}",- "0738f755518ec391457e93392300dcbe": "无法获取组列表{}",- "51381a06136eb2439b75a70b805638e3": "无法合并联系人组:{}",- "5ca563a6955a312b2962d754d2bca84d": "成功导入{}联系人",- "9a7cb2b7b8da34938451cbc8f3235ea7": "无法创建目录:{}",- "a3979cd9a1162981e23b946abda1cb69": "无法恢复任务:{}",- "5afbbda85af563cc8308c4fc1f9b642b": "DNS自动分辨率失败:tencentCloud配置文件中的SecretID或SecretKey为空",- "f1b7666b6c24cf96b199c7d6a8e5cc3d": "无法设置CloudXns DNS验证:{}",- "b84beea5f625bfcce74d0cf958f46175": "成功获取电子邮件转发列表",- "50b8a54c5616806be80bb937bee2887c": "向前添加邮件失败:{}",- "05ba2d1d0e2c3294177a827a36eab5a9": "修改成功,但同步配置失败:{}",- "13ff8aab2abb2f8f4453a8988855fed5": "联系小组成功合并",- "b751a6c674be7921229b5df0f53aadb6": "找不到任务:{}",+ "9de8568f450e170e5ea15c3f10ba9aeb": "无法检索继电器配置列表:{}","34c8abb15d595593070bbbd2fe1e3db7": "添加邮件前进成功","3b35d24ed7e70dbf89d75805ca1d1add": "正向地址已经存在",- "46e9e33b3d713a63718b83e320fe987a": "在邮件服务器中找不到域",+ "c9bc74ad1022c491caa33300a6a511ce": "无法导入组{}的收件人:{}",+ "4f5ed0217989096ab0a0db0c3e92435b": "文件内容不能为空","da97b2bd35bfb2210c6507de8ea7735d": "无法删除异常收件人:{}",- "a54d0c56762720e988c301ac8138e313": "中继配置不存在",- "d4e08f609109aa60b2424d4475af67c4": "无法删除任务{}",- "0f3c3572e54724eaeeb630a17e92a069": "例外收件人成功添加了",- "5350f35b647b27e2b729940f36ca46f3": "找不到模板",- "0e517ad7b113389f5a2a00ee9b231f1d": "正向目标地址不能为空",- "afeb46390575bd5b46d609401a612540": "设置故障:{}",- "768e0b135446e2b1089b1782225b878d": "任务成功删除",- "da3a6cce34026ab87459baff83a10664": "删除成功,但同步配置失败:{}",- "47e3853ad296e155ef33586a87607f8c": "无法获取模板列表",- "24219280cb1c0a59c2ef473f8a346036": "密码加密失败",- "8a4f0046b5b736d633666569cb7a1194": "语言信息成功检索",- "5e2d011d2d983f4b02006ea7061f7e84": "无法获得日志计数:{}",- "b610ee9cf00fe6a43c67a9c6118f6b8e": "无法创建临时目录",- "d795f8adb93b895f593f0e18b95cc9b9": "无效的任务ID",- "88a1eb329e4b7206725070e1edbbbbbb": "模板成功复制",- "30833d812240fc76a775e790ac666344": "删除BCC规则失败:{}",- "a9a03bc6b49efffd96c8abfa767fe32b": "无法创建组{}",- "38da72f3f5a9654da3f7445c2eaac9c8": "修改BCC规则成功",- "5e7ff29f11e2b662f38b3314a5b48fce": "无法获取统计数据",- "3acc6f9654d4580c639f36bb83346fae": "无法计算域统计:{}",- "a04e2de385a1897e1f66022b7522ee70": "无法导入联系人:{}",- "0be15fdaee51425c4965b0977325f13b": "修改邮件前进成功",+ "3ef0bf2b4aecc9ac0d23fd5fa2f29bd5": "DNS自动分辨率失败:Apikey或SecretKey在CloudXns配置文件中为空",+ "05ba2d1d0e2c3294177a827a36eab5a9": "修改成功,但同步配置失败:{}","e24019f40ca7d2fd21e235a88c5ba2b5": "无效的语言代码:{}",- "af428953683baf90fe7e4b25b0a5b0f3": "线程不能超过100",- "6cb049d37900c8975f399ca24363364d": "任务成功恢复",- "8c446046a50ff4f3a6fa7685b49232b2": "无法更新任务发送速度:{}",- "51e88a4f80ca6c8fa1ed3ed9ebc1ffba": "后缀配置目录不存在:%s",- "6876412afa6abae5b56243f07ab9d193": "获取任务发送计数成功",- "8a0359a1a6244c61a1aecfe07d908d57": "找不到任务执行人",- "2554dfe06c63b7ad7380e3ca6343b248": "删除BCC规则成功",- "373d0604b10a577dc44799fa07899af8": "无法暂停任务,因为它是{}",- "9899282e6520acd304eaaa9421c05848": "没有删除组",- "94ed3d61da4e11647f0455b0c75fbbde": "模板成功创建了",- "4cb1e6de913601d6f36751d2b91ebbbe": "成功发送电子邮件",- "ba9fcf4868f8bd76962df4cb866e2b63": "成功检索的任务列表",- "26dbf3c3bca78dbb6c9deeeab3d06fe7": "无法获得电子邮件转发列表:{}",- "49f525390b0217fdcd2695c9f6440625": "找不到目标群",- "46e96ff5209a2963f5e73ec939c35191": "没有为退订的组ID提供",- "5251010ec9e364492c236bf8b9983928": "找不到文件",+ "0a7bfad13e7c5717094cf40cd7cdc4a6": "无法更新任务的收件人数{}:{}",+ "3b368cc0ed56bf60af8fbd89110c10eb": "无法检查组名称存在{}",+ "9d737149a48a2ac96c90b1d013993c23": "成功进口到现有组的联系人成功",+ "f4e7ae5b50f52703cc2135e74b61e74c": "没有出口的联系人",+ "d066eea78be1a06815b3d2ca1618f836": "任务发送速度已成功更新","f7ae213781dd348d9b5e1678c469135e": "无法获得模板{}",- "401173e94957419edba26c55489e64d7": "无法查询语言设置:{}",- "5908fb2681164dcbe43b9573503061dc": "无效导入类型",- "9c9cef3ac01b96aab874ef3f429a2943": "无法生成用户私钥:{}",- "fd9d98aee954ec7ee34294a75846f283": "无法获得联系人列表:{}","5116e6768c3b46107db5f91223850a4b": "无法更新组:{}",- "021a68bd2a4ef3c7204fc26bc164db8d": "未能导出联系人",- "fdcf72b9d0314c9f9c49c12a1367ded1": "组ID不能为空",+ "5e7ff29f11e2b662f38b3314a5b48fce": "无法获取统计数据",+ "2eb08ce237603930ebaed085cd94f075": "无法创建新模板{}",+ "46e96ff5209a2963f5e73ec939c35191": "没有为退订的组ID提供","a612d312ea7a0f52d647838d5863d7ea": "成功检索了接触计数",- "4e861c946158b7448812774131e2859c": "检查规则失败:{}",- "0a7bfad13e7c5717094cf40cd7cdc4a6": "无法更新任务的收件人数{}:{}",- "03ec9ea94e6d19081854251cfc940f9d": "密码不能为空",- "607e1d854783c8229998ac2b5b6923d3": "无效的令牌",- "e95112f4ded1fa179f50350ad578cadc": "无法设置Azuredns验证:{}",- "c8787cfb723d8ec6fac9c5f32adc552f": "无法删除联系人:{}",- "9de8568f450e170e5ea15c3f10ba9aeb": "无法检索继电器配置列表:{}",- "c6c486e5fd9757864fd075c4302e402f": "DNS验证设置失败:{}",- "1b795b470e434f6ddd26b41c1d4c5087": "获得BCC总数失败:{}",- "75a0f317fe6ca8ddf88f1bd8902bf273": "拖动类型需要内容和渲染数据",- "c764c458a9f6bfa136cb44d03547c2b8": "更新记录失败:{}",- "e3c7f474275f7b2d55973177552bdddd": "小组成功更新",- "6835df391b8ff2a98e373dac96403cbf": "组成功创建",- "7b44d08e2db456314994600190fad61d": "加密密钥长度不足",- "76c5d5c30370537f061cb37e6acbee74": "无法更新继电器配置:{}",- "cb0c0c1a5df7c0298ffc0f11f48e507d": "无法查询日志:{}",- "490e0850addc1c63b98df930dcc35517": "成功创建但无法同步配置:{}",- "e1c553d83856d3b619fb547ab25ca055": "无法恢复任务,因为它是{}",- "fb64c55a01adb41b52f8a4e5fd040cbe": "密码格式不正确",- "2f88b2da357f0653c08b7a13a580d4ee": "无法保存私钥文件:{}",- "5ce9f365a9d0112c428039a01938f028": "无法删除模板",- "bd3f332cb31ef5ea53e2090a9c0415f4": "无法更新模板",- "9c911110ac308115fdd49184296cffb1": "创建电子邮件发送者失败::{}",- "b9a808bdcce1c4dae0078bffe0ca6b4c": "无法查询继电器配置",- "9872df3b08750d672f630b7a29d8bcb7": "删除邮件前进失败:{}",- "f0718aa56bf32b211f394939040d7e4b": "无法解析加密密钥",- "854bf3ecc6ee7aaddfcbf36f620db6e6": "此发件人域的继电器配置已经存在:{}",- "9c0bc6a01d069452cbd2d5ec63611a47": "未能导入联系人{}",- "f093312850130aeb979cbf760a472f50": "成功获得联系趋势",- "f4e7ae5b50f52703cc2135e74b61e74c": "没有出口的联系人",- "cdf0a7c7b597c03ebe39d1dc9fc7bad4": "获取BCC列表成功",- "45f9b0357d8ca6d777537810ae7b8d37": "成功获得所有联系人组",- "0e17231f19649ba81ecc17354abb04ad": "无法检查模板名称",- "f5bb2c8f6b3b0c5b898b6ef77c2c2976": "记录找不到",- "2bea34c08ffbbd414f8fe174200ae45b": "无法连接到Docker服务",- "9b1ea682424405c725df2c5a812785fb": "找不到前向地址",- "cdcc74185e5a5f746796ed54e27084c4": "联系人内容不能为空",- "8aa8118b50f01b394da86325ff1e5538": "成功检索的继电器配置列表",- "505a83f220c02df2f85c3810cd9ceb38": "成功",- "164b158b63f132f713454894525b47db": "无法创建继电器配置:{}",- "50b6488825a184919fe9b3e1bfd07855": "成功创建了任务",- "7df6bcf6968c51ad2fed293f6ef5e839": "无法检查域唯一性:{}",- "143eb8fdc28721b31ad47c5d6e70ff79": "无法获得异常收件人列表:{}",- "04cb2179762a27275f26b55fd3986094": "无法保存证书文件:{}",- "cc297470b261d40099a21548c6ad1103": "联系人成功删除了",- "c77f16d899d954bf712cb652a05c3eae": "模板成功更新",- "b6845a87e3628a62cc3772d065284501": "未能设置Godaddy DNS验证:{}",- "007b93137ac1564e3be820c766e9a79b": "获取BCC列表失败:{}",+ "b7d930d5b30da6439a55e75941632077": "状态必须为0或1",+ "0f3c3572e54724eaeeb630a17e92a069": "例外收件人成功添加了",+ "4cb1e6de913601d6f36751d2b91ebbbe": "成功发送电子邮件","c0af73ad7a6d2abc0ecc651659d34f1f": "上传类型需要文件数据",- "305ed26d490c1b6933b2f36ec6293019": "成功检索的小组列表",+ "b63fd35f9884da849193b8aadebb0c91": "无法获得任务信息:{}",+ "80a58714868cd2842d163933c46c25a4": "无法删除继电器配置:{}",+ "5e2d011d2d983f4b02006ea7061f7e84": "无法获得日志计数:{}",+ "0fdf6b21eacd19ce746639f1c4613607": "end_time必须大于start_time","d4c627b74eb92ec4981b28076cfc72e1": "任务已经暂停",- "756ac7fa200ffde20783bf7cdcd07bba": "无法添加异常收件人:{}",- "2fe296d9873ffa1c0e1d5d1ebcd39f3c": "无法注册用户:{}",- "e31410c1d1d17117e4542007de9079ef": "成功检索的任务邮件日志",- "3cca0feaa53c7ad8ac7491ca287a010c": "检查地址失败:{}",- "792c1e0c471e8e6fbf7ba843372bc8bf": "添加成功,但同步配置失败:{}",- "377c5bf0af4f02e9c168065786710081": "无法获得任务信息:{}",- "30d816b65457a2f2d7645e20c0d02ad0": "创建的组并成功导入了联系",- "0b5719d31ac40c5b68c38b0ea7a54d79": "例外收件人列表已成功获得",- "31705d0e2838c824b2731305d633791e": "无法设置HTTP验证:{}",- "97f87b75c36da3aec2a952fa834627ac": "设置成功",- "7214bbfc19073c87756042a590a92cf2": "检查域失败:{}","d408d0eeaf1c7b55c07ea2480551295a": "将电子邮件发送到%s失败:%v",- "3ef0bf2b4aecc9ac0d23fd5fa2f29bd5": "DNS自动分辨率失败:Apikey或SecretKey在CloudXns配置文件中为空",- "4a2ca0029619c0489e4857fc46f05dae": "组{}不存在",- "a1d4a6d74c95129539e81e525874cf42": "无法获得联系趋势:{}",- "17cd9a6149c0d09c5fcb356bb87097e6": "无法创建模板",- "faf64ba15b1fabb9414647dcf9d02e64": "DNS自动分辨率失败:apikey或apisecret在GoDaddy配置文件中为空",- "77b05f8cfc38335239f0d0979c25219a": "您已经成功地取消了",- "598021920c533e1916fdf92a1913c5b4": "继电器配置成功删除",- "4f5ed0217989096ab0a0db0c3e92435b": "文件内容不能为空",+ "377c5bf0af4f02e9c168065786710081": "无法获得任务信息:{}",+ "5350f35b647b27e2b729940f36ca46f3": "找不到模板","280fa801b8645324e00cc5fe66b64be2": "小组成功删除了",- "c85857381feba17eb78fd7c08da874c1": "无法获得配置",- "02fb0cdb73a955ea735da1fba8bfedf0": "任务已经在运行",- "24f397bc47fe4fd5070ed802a258882a": "无法暂停任务:{}",- "4b227327ad57a611a51fa884ad2005d5": "无法设置Tencent Cloud DNS验证:{}",- "c42c949419cc1135f819733bdd4b2c43": "检查记录失败:{}",+ "5ec212bc8a33d56501ce9a5ee87e6388": "无法获得模板",+ "3acc6f9654d4580c639f36bb83346fae": "无法计算域统计:{}",+ "faf64ba15b1fabb9414647dcf9d02e64": "DNS自动分辨率失败:apikey或apisecret在GoDaddy配置文件中为空",+ "b751a6c674be7921229b5df0f53aadb6": "找不到任务:{}",+ "c6c486e5fd9757864fd075c4302e402f": "DNS验证设置失败:{}",+ "04cb2179762a27275f26b55fd3986094": "无法保存证书文件:{}",+ "f5fc1416ecf72fdd1b4b69d058f45527": "成功获取模板列表",+ "9872df3b08750d672f630b7a29d8bcb7": "删除邮件前进失败:{}",+ "e5636c0b2a1bd2e4ea2f3dc33561ed16": "{}找不到",+ "4e861c946158b7448812774131e2859c": "检查规则失败:{}",+ "f895002eb18cfdda7ecd3127ade7f09b": "成功删除但无法同步配置:{}",+ "fddd0cc8e075462e22e755930d85e9e2": "无需更新内容",+ "c77f16d899d954bf712cb652a05c3eae": "模板成功更新",+ "26dbf3c3bca78dbb6c9deeeab3d06fe7": "无法获得电子邮件转发列表:{}","03d42c3d05f049f81f25bd5542605247": "模板成功删除",- "f6e6b200886d0123d2cd4b8b99b59a8a": "无法检索继电器配置计数:{}",+ "ba9fcf4868f8bd76962df4cb866e2b63": "成功检索的任务列表",+ "51e88a4f80ca6c8fa1ed3ed9ebc1ffba": "后缀配置目录不存在:%s",+ "24219280cb1c0a59c2ef473f8a346036": "密码加密失败",+ "3cca0feaa53c7ad8ac7491ca287a010c": "检查地址失败:{}","a4b73f8dcd714531725fe80b7804c0b6": "DNS提供商初始化失败:{}",- "cfe34541cd652181cace381ff348e305": "组名称已经存在",- "060ea008e1c913f2369d56ca1b4e4732": "修改邮件前进失败:{}",- "05b263181c41092a2ad1dd9c1e461505": "联系人成功出口",- "2a81ce1d69a8c672b13f713fed8efbd7": "需要电子邮件地址",- "3d9eeac2d497b21d5f2bf03835f96384": "成功获取联系人列表",- "81b89f038520819c26cf805a78da66a6": "无法申请SSL证书:{}",- "eb9a5db01e85ddbe92c58f7a7d92e9c1": "任务成功暂停了",- "c9bc74ad1022c491caa33300a6a511ce": "无法导入组{}的收件人:{}",- "59be0320af3aafd913199f3cc3f6a5f2": "配置文件已成功保存",- "7f9ace5f7f4cea1db26fa476016706d2": "密码解密失败",- "28f485d9950008807d1bf6acf8f34920": "无法设置Alibaba Cloud DNS验证:{}",- "5ec212bc8a33d56501ce9a5ee87e6388": "无法获得模板",- "2eb08ce237603930ebaed085cd94f075": "无法创建新模板{}",- "d4b29684cc97f87ac032d30bdacb8fdb": "转换数据失败:{}",- "16617a517ca6084240cd3a89785d220d": "在文件中找不到有效的联系人",+ "82640ede823ad6489a41b285153b871e": "无法获得域列表:{}",+ "d9cbb6f388e7c09bc9a4390da98466d8": "不支持的DNS提供商:{}",+ "cc297470b261d40099a21548c6ad1103": "联系人成功删除了",+ "a27451b1f35b49db9c32c479ac305bb3": "继电器配置成功更新和启用了",+ "598021920c533e1916fdf92a1913c5b4": "继电器配置成功删除",+ "2bea34c08ffbbd414f8fe174200ae45b": "无法连接到Docker服务",+ "0738f755518ec391457e93392300dcbe": "无法获取组列表{}",+ "6cb049d37900c8975f399ca24363364d": "任务成功恢复",+ "a1d4a6d74c95129539e81e525874cf42": "无法获得联系趋势:{}",+ "a3979cd9a1162981e23b946abda1cb69": "无法恢复任务:{}",+ "401173e94957419edba26c55489e64d7": "无法查询语言设置:{}","2b4ba7c7debcabca2bbc12a5b43216b9": "线程必须大于零",- "899aa5864042c8ae1d5c22916f014536": "删除邮件前进成功",- "6bdf4d63c418e0edc0f08e63a037c85e": "继电器配置成功更新了",- "b7d930d5b30da6439a55e75941632077": "状态必须为0或1",- "b63fd35f9884da849193b8aadebb0c91": "无法获得任务信息:{}",+ "bd3f332cb31ef5ea53e2090a9c0415f4": "无法更新模板",+ "31a3a0e0984cb426e9c286a297e41936": "模板名称已经存在",+ "82e8dae5aa169e8ec605d18d4d8f0e52": "成功更新但无法同步配置:{}",+ "51381a06136eb2439b75a70b805638e3": "无法合并联系人组:{}","a534316619beb0acace0fff24e047179": "无法检索加密密钥",- "f72c704764b66bc2b79e7c9ec098cf42": "添加BCC规则失败:{}",- "dc7faa0d285fa8e4b1764e56d1324d05": "无法保存文件:{}",- "947d4784a9179c7ce1762a385681d0eb": "DNS自动分辨率失败:Apikey或SecretKey在Alidns配置文件中为空",+ "e95112f4ded1fa179f50350ad578cadc": "无法设置Azuredns验证:{}",+ "eb9a5db01e85ddbe92c58f7a7d92e9c1": "任务成功暂停了",+ "f093312850130aeb979cbf760a472f50": "成功获得联系趋势",+ "c42c949419cc1135f819733bdd4b2c43": "检查记录失败:{}",+ "d9d1b03b410bff357119385c8a02d52f": "需要电子邮件字段",+ "af428953683baf90fe7e4b25b0a5b0f3": "线程不能超过100",+ "a54d0c56762720e988c301ac8138e313": "中继配置不存在",+ "c764c458a9f6bfa136cb44d03547c2b8": "更新记录失败:{}",+ "da3a6cce34026ab87459baff83a10664": "删除成功,但同步配置失败:{}",+ "7b44d08e2db456314994600190fad61d": "加密密钥长度不足",+ "17cd9a6149c0d09c5fcb356bb87097e6": "无法创建模板",+ "060ea008e1c913f2369d56ca1b4e4732": "修改邮件前进失败:{}",+ "d56e34051c220c47cfa6193f1402cfc2": "无法创建ACME客户端:{}",+ "46e9e33b3d713a63718b83e320fe987a": "在邮件服务器中找不到域",+ "cdf0a7c7b597c03ebe39d1dc9fc7bad4": "获取BCC列表成功",+ "7df6bcf6968c51ad2fed293f6ef5e839": "无法检查域唯一性:{}",+ "c85857381feba17eb78fd7c08da874c1": "无法获得配置",+ "e2f82d17b06214fc9f7349ab65c3fc88": "无法查询总中继配置计数",+ "505a83f220c02df2f85c3810cd9ceb38": "成功",+ "607e1d854783c8229998ac2b5b6923d3": "无效的令牌",+ "9c911110ac308115fdd49184296cffb1": "创建电子邮件发送者失败::{}",+ "2a81ce1d69a8c672b13f713fed8efbd7": "需要电子邮件地址",+ "cdcc74185e5a5f746796ed54e27084c4": "联系人内容不能为空",+ "8f56cf515d945adacd33735488bd719c": "无法查询继电器配置:{}",+ "4a349d2513037fbf4cb56a53eaa95986": "成功获取模板",+ "d795f8adb93b895f593f0e18b95cc9b9": "无效的任务ID","1e1a8ced7fc67f908d9d3b02c3ec8b46": "BCC规则启用",- "0fdf6b21eacd19ce746639f1c4613607": "end_time必须大于start_time",- "82e8dae5aa169e8ec605d18d4d8f0e52": "成功更新但无法同步配置:{}",- "4373803a1f957c80713f81faf0c4c59a": "继电器配置已被禁用",- "97d0fba201f387b2d85b38f2b170238a": "无法获得任务列表{}",+ "0be15fdaee51425c4965b0977325f13b": "修改邮件前进成功",+ "f72c704764b66bc2b79e7c9ec098cf42": "添加BCC规则失败:{}",+ "373d0604b10a577dc44799fa07899af8": "无法暂停任务,因为它是{}",+ "94ed3d61da4e11647f0455b0c75fbbde": "模板成功创建了",+ "a003a3bdf60c59af78e03a4d319caa8a": "无法更新联系人组:{}",+ "fdcf72b9d0314c9f9c49c12a1367ded1": "组ID不能为空",+ "f0718aa56bf32b211f394939040d7e4b": "无法解析加密密钥",+ "97f87b75c36da3aec2a952fa834627ac": "设置成功",+ "76c5d5c30370537f061cb37e6acbee74": "无法更新继电器配置:{}",+ "96edab89a3b7323ff740513f65714d1f": "源组{}找不到",+ "6876412afa6abae5b56243f07ab9d193": "获取任务发送计数成功",+ "38da72f3f5a9654da3f7445c2eaac9c8": "修改BCC规则成功",+ "8a0359a1a6244c61a1aecfe07d908d57": "找不到任务执行人",+ "061ce9712e60353babc4f5c4ea90019c": "DNS自动分辨率失败:Apikey或电子邮件在CloudFlare配置文件中为空",+ "5ca563a6955a312b2962d754d2bca84d": "成功导入{}联系人",+ "24f397bc47fe4fd5070ed802a258882a": "无法暂停任务:{}",+ "768e0b135446e2b1089b1782225b878d": "任务成功删除",+ "50b8a54c5616806be80bb937bee2887c": "向前添加邮件失败:{}",+ "49f525390b0217fdcd2695c9f6440625": "找不到目标群",+ "adf02febb0ba95dc4a9ecc646d2e4908": "发件人域已经存在",+ "9c0bc6a01d069452cbd2d5ec63611a47": "未能导入联系人{}",+ "549fd095df0deacd5eff1b8bb67059f8": "BCC规则禁用",+ "4a2ca0029619c0489e4857fc46f05dae": "组{}不存在",+ "30d816b65457a2f2d7645e20c0d02ad0": "创建的组并成功导入了联系",+ "021a68bd2a4ef3c7204fc26bc164db8d": "未能导出联系人",+ "5ce9f365a9d0112c428039a01938f028": "无法删除模板",+ "d95c970abb94d179a91edb2ca88f3857": "规则已经存在",+ "5908fb2681164dcbe43b9573503061dc": "无效导入类型","c72f95e44d52de76c1d9bfc5846493c8": "无法创建任务{}","3a74e319ad2960cf47669416cfbe25e3": "无法检查继电器配置:{}",+ "9899282e6520acd304eaaa9421c05848": "没有删除组",+ "6835df391b8ff2a98e373dac96403cbf": "组成功创建",+ "05b263181c41092a2ad1dd9c1e461505": "联系人成功出口","ededca9db3d3fab582c0d550891bd655": "无法获得模板{}",- "4a349d2513037fbf4cb56a53eaa95986": "成功获取模板",- "96edab89a3b7323ff740513f65714d1f": "源组{}找不到",- "a2b54c1488156527d3ab5b70dd43b00d": "例外收件人被成功删除",- "b0d0664fd9d61bf48dce28ea39298b43": "无法获得组的联系人{}:{}",- "31a3a0e0984cb426e9c286a297e41936": "模板名称已经存在",- "549fd095df0deacd5eff1b8bb67059f8": "BCC规则禁用",+ "756ac7fa200ffde20783bf7cdcd07bba": "无法添加异常收件人:{}","b3ed3ae5b6a18c6c326b07d469908282": "添加BCC规则成功",- "a003a3bdf60c59af78e03a4d319caa8a": "无法更新联系人组:{}",- "9d737149a48a2ac96c90b1d013993c23": "成功进口到现有组的联系人成功"+ "9a7cb2b7b8da34938451cbc8f3235ea7": "无法创建目录:{}",+ "1b795b470e434f6ddd26b41c1d4c5087": "获得BCC总数失败:{}",+ "13ff8aab2abb2f8f4453a8988855fed5": "联系小组成功合并",+ "e3c7f474275f7b2d55973177552bdddd": "小组成功更新"}\ No newline at end of file