|
|
@ -571,15 +571,15 @@ public class EmailProvider {
|
|
|
|
if (discover == Discover.ALL || discover == Discover.IMAP) {
|
|
|
|
if (discover == Discover.ALL || discover == Discover.IMAP) {
|
|
|
|
List<Server> imaps = new ArrayList<>();
|
|
|
|
List<Server> imaps = new ArrayList<>();
|
|
|
|
// SSL
|
|
|
|
// SSL
|
|
|
|
imaps.add(new Server(domain, null, 993));
|
|
|
|
|
|
|
|
imaps.add(new Server(domain, "imap", 993));
|
|
|
|
imaps.add(new Server(domain, "imap", 993));
|
|
|
|
imaps.add(new Server(domain, "mail", 993));
|
|
|
|
imaps.add(new Server(domain, "mail", 993));
|
|
|
|
imaps.add(new Server(domain, "mx", 993));
|
|
|
|
imaps.add(new Server(domain, "mx", 993));
|
|
|
|
|
|
|
|
imaps.add(new Server(domain, null, 993));
|
|
|
|
// STARTTLS
|
|
|
|
// STARTTLS
|
|
|
|
imaps.add(new Server(domain, null, 143));
|
|
|
|
|
|
|
|
imaps.add(new Server(domain, "imap", 143));
|
|
|
|
imaps.add(new Server(domain, "imap", 143));
|
|
|
|
imaps.add(new Server(domain, "mail", 143));
|
|
|
|
imaps.add(new Server(domain, "mail", 143));
|
|
|
|
imaps.add(new Server(domain, "mx", 143));
|
|
|
|
imaps.add(new Server(domain, "mx", 143));
|
|
|
|
|
|
|
|
imaps.add(new Server(domain, null, 143));
|
|
|
|
|
|
|
|
|
|
|
|
for (Server server : imaps)
|
|
|
|
for (Server server : imaps)
|
|
|
|
if (server.reachable.get()) {
|
|
|
|
if (server.reachable.get()) {
|
|
|
@ -594,15 +594,15 @@ public class EmailProvider {
|
|
|
|
if (discover == Discover.ALL || discover == Discover.SMTP) {
|
|
|
|
if (discover == Discover.ALL || discover == Discover.SMTP) {
|
|
|
|
List<Server> smtps = new ArrayList<>();
|
|
|
|
List<Server> smtps = new ArrayList<>();
|
|
|
|
// SSL
|
|
|
|
// SSL
|
|
|
|
smtps.add(new Server(domain, null, 465));
|
|
|
|
|
|
|
|
smtps.add(new Server(domain, "smtp", 465));
|
|
|
|
smtps.add(new Server(domain, "smtp", 465));
|
|
|
|
smtps.add(new Server(domain, "mail", 465));
|
|
|
|
smtps.add(new Server(domain, "mail", 465));
|
|
|
|
smtps.add(new Server(domain, "mx", 465));
|
|
|
|
smtps.add(new Server(domain, "mx", 465));
|
|
|
|
|
|
|
|
smtps.add(new Server(domain, null, 465));
|
|
|
|
// STARTTLS
|
|
|
|
// STARTTLS
|
|
|
|
smtps.add(new Server(domain, null, 587));
|
|
|
|
|
|
|
|
smtps.add(new Server(domain, "smtp", 587));
|
|
|
|
smtps.add(new Server(domain, "smtp", 587));
|
|
|
|
smtps.add(new Server(domain, "mail", 587));
|
|
|
|
smtps.add(new Server(domain, "mail", 587));
|
|
|
|
smtps.add(new Server(domain, "mx", 587));
|
|
|
|
smtps.add(new Server(domain, "mx", 587));
|
|
|
|
|
|
|
|
smtps.add(new Server(domain, null, 587));
|
|
|
|
|
|
|
|
|
|
|
|
for (Server server : smtps)
|
|
|
|
for (Server server : smtps)
|
|
|
|
if (server.reachable.get()) {
|
|
|
|
if (server.reachable.get()) {
|
|
|
|