Prefer port 587 over 465

pull/194/head
M66B 5 years ago
parent 157efba57f
commit cdeb5939a8

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

Loading…
Cancel
Save