mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 11:25:13 +01:00
Prefer port 587 over 465
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user