Android Question SMTP Client via IPv6

Blueforcer

Well-Known Member
Licensed User
Longtime User
Im using a android 7 device and the network SMTP lib to send emails with a public email server.
But there is a problem with when the client sends from an IPv6 adress:

025-10-01 09:48:22.480 rejected EHLO from [2001:a62:4f8:xxXX:8038:e2d5:9dfc:xxXX]: syntactically invalid argument(s): 2001:a62:4f8:xxXX:8038:e2d5:9dfc:xxXX

The problem is apparently that the mail client is sending an invalid SMTP EHLO command.
When using an IPv6 address instead of a hostname in the EHLO, it must be prefixed with "IPv6:" (see RFC 2821, section 4.1.3 Address Literals).
 
Top