LOGIN
$ telnet imaphost 143 Trying 18.67.13.317... Connected to imaphost. Escape character is "^]". * OK 01 LOGIN username password 01 OK Logged in.
AUTHENTICATE PLAIN
$ perl -MMIME::Base64 -e 'print encode_base64("\000username\000password");' AHVzZXJuYW1lAHBhc3N3b3Jk $ telnet imaphost 143 Trying 18.67.13.317... Connected to imaphost . Escape character is '^]'. * OK 01 AUTHENTICATE PLAIN + AHVzZXJuYW1lAHBhc3N3b3Jk 01 OK Logged in.