In case of POP3 it is possible to connect via telnet using sockets over port 110, But how to do it , if SPOP3 is implemented. With normal telnet it can be done quite easily with
Socket pop3Socket = new Socket(host.com, 110);
FYI: For connecting to SPOP3 we use in linux/unix
openssl s_client -connect servername.com:995