mirror of https://github.com/M66B/FairEmail.git
Prefer port 587 over 465
This commit is contained in:
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…
Reference in New Issue