Skip to content

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

Reduce the retry and waiting time for MX record checks

lotkbe325f717166
diff --git a/core/internal/controller/abnormal_recipient/abnormal_recipient_v1_check_group.go b/core/internal/controller/abnormal_recipient/abnormal_recipient_v1_check_group.go
index edefbbd6..456c3809 100644
--- a/core/internal/controller/abnormal_recipient/abnormal_recipient_v1_check_group.go
+++ b/core/internal/controller/abnormal_recipient/abnormal_recipient_v1_check_group.go
@@ -156,8 +156,8 @@ func ValidateMXRecord(record DNSRecord, domain string, aRecordHosts ...string) b
if err == nil {
break
}
- if i < 2 { // 非最后一次,等待后再试
- time.Sleep(500 * time.Millisecond)
+ if i < 1 { // 不到2次,重试
+ time.Sleep(200 * time.Millisecond)
}
}