From cf1b396c8906705b9706a05d715163cc38f41ec8 Mon Sep 17 00:00:00 2001 From: Matt Brown <113338429+mattbr0wn@users.noreply.github.com> Date: Thu, 5 Sep 2024 13:54:09 +0100 Subject: [PATCH] retry error handling (#61) --- mailvalidate/validation.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mailvalidate/validation.go b/mailvalidate/validation.go index 4543203..820b8f7 100644 --- a/mailvalidate/validation.go +++ b/mailvalidate/validation.go @@ -424,6 +424,11 @@ func handleSmtpResponses(req *EmailValidationRequest, resp *EmailValidation) { resp.SmtpResponse.TLSRequired = true resp.RetryValidation = true } + + if strings.Contains(resp.SmtpResponse.Description, "try again") { + resp.RetryValidation = true + resp.IsDeliverable = "unknown" + } } }