mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 11:28:41 +01:00
EHLO local host address
This commit is contained in:
@@ -604,12 +604,13 @@ public class FragmentIdentity extends FragmentBase {
|
||||
else
|
||||
props.put("mail.smtps.localhost", host);
|
||||
} else {
|
||||
String haddr = (ip instanceof Inet6Address ? "IPv6:" : "") + ip.getHostAddress();
|
||||
InetAddress localhost = InetAddress.getLocalHost();
|
||||
String haddr = "[" + (localhost instanceof Inet6Address ? "IPv6:" : "") + localhost.getHostAddress() + "]";
|
||||
Log.i("Check local address=" + haddr);
|
||||
if (starttls)
|
||||
props.put("mail.smtp.localaddress", haddr);
|
||||
props.put("mail.smtp.localhost", haddr);
|
||||
else
|
||||
props.put("mail.smtps.localaddress", haddr);
|
||||
props.put("mail.smtps.localhost", haddr);
|
||||
}
|
||||
|
||||
// Create session
|
||||
|
||||
Reference in New Issue
Block a user