Prefer port 587 over 465

This commit is contained in:
M66B 2021-02-23 20:09:53 +01:00
parent 157efba57f
commit cdeb5939a8
1 changed files with 5 additions and 5 deletions

View File

@ -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()) {