mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 07:06:18 +02:00
Show default EHLO
This commit is contained in:
@@ -582,11 +582,8 @@ public class EmailService implements AutoCloseable {
|
||||
}
|
||||
|
||||
} else if ("smtp".equals(protocol) || "smtps".equals(protocol)) {
|
||||
String[] c = BuildConfig.APPLICATION_ID.split("\\.");
|
||||
Collections.reverse(Arrays.asList(c));
|
||||
String hdomain = TextUtils.join(".", c);
|
||||
|
||||
// https://tools.ietf.org/html/rfc5321#section-4.1.3
|
||||
String hdomain = getDefaultEhlo();
|
||||
String haddr = (address instanceof Inet4Address ? "[127.0.0.1]" : "[IPv6:::1]");
|
||||
|
||||
properties.put("mail." + protocol + ".localhost",
|
||||
@@ -614,6 +611,12 @@ public class EmailService implements AutoCloseable {
|
||||
throw new NoSuchProviderException(protocol);
|
||||
}
|
||||
|
||||
static String getDefaultEhlo() {
|
||||
String[] c = BuildConfig.APPLICATION_ID.split("\\.");
|
||||
Collections.reverse(Arrays.asList(c));
|
||||
return TextUtils.join(".", c);
|
||||
}
|
||||
|
||||
private static class ErrorHolder {
|
||||
AuthorizationException error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user