diff --git a/BusinessMonitor.MailTools/Spf/SpfCheck.cs b/BusinessMonitor.MailTools/Spf/SpfCheck.cs index ce045ba..7059961 100644 --- a/BusinessMonitor.MailTools/Spf/SpfCheck.cs +++ b/BusinessMonitor.MailTools/Spf/SpfCheck.cs @@ -64,13 +64,13 @@ public SpfRecord GetSpfRecord(string domain) _lookups = 0; - return GetRecord(domain); + return GetRecord(domain, false); } - private SpfRecord GetRecord(string domain) + private SpfRecord GetRecord(string domain, bool lookup = true) { var records = _resolver.GetTextRecords(domain); - _lookups++; + if (lookup) _lookups++; // Find the SPF record var record = records.FirstOrDefault(x => x.StartsWith("v=spf1", StringComparison.InvariantCultureIgnoreCase));