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:
parent
89ed097817
commit
21b83d8bc4
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue