1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-14 16:10:39 +00:00

Fixed MX check

This commit is contained in:
M66B 2024-01-02 19:26:41 +01:00
parent 89ed097817
commit 21b83d8bc4

View file

@ -81,7 +81,9 @@ public class DnsHelper {
String domain = UriHelper.getEmailDomain(email);
if (domain == null)
continue;
lookup(context, domain, "mx", CHECK_TIMEOUT, MAX_FOLLOW, false);
DnsRecord[] records = lookup(context, domain, "mx", CHECK_TIMEOUT, MAX_FOLLOW, false);
if (records.length == 0)
throw new UnknownHostException(domain);
}
}