取消SMTP中继旧配置自动兼容

中继仅由enabled开关控制,不再根据旧字段自动启用或沿用旧开关状态。
This commit is contained in:
xuans committed 2026-10-06 00:27:48 +08:00
1 parent d0890758a0
commit bbad2bcc6b
5 files changed
+3 -50

No files matched your search

-1
View File
@@ -288,7 +288,6 @@ func CurrentSMTPRuntimeSettings() (SMTPRuntimeSettings, error) {
return SMTPRuntimeSettings{}, fmt.Errorf("runtime configuration is unavailable")
}
settings.Relay = SMTPConfig{
RelayEnabled: cfg.SMTPHost != "" || cfg.SMTPPort != 0 || cfg.SMTPUsername != "" || cfg.SMTPFrom != "" || cfg.SMTPPassword != "",
RelayHost: cfg.SMTPHost,
RelayPort: cfg.SMTPPort,
Username: cfg.SMTPUsername,