端末を使用してポップメールアカウントを確認する

端末を使用してポップメールアカウントを確認する

端末を使用してpop3アカウントを確認するコマンドはUnixにありますか?つまり、pop3アカウントのサーバー/ユーザー名/パスワードを入力し、ユーザー名/パスワードが正しいことを確認してください。

ベストアンサー1

telnetメールサーバーに接続して電話をかけるときに使用できます。POP3資格情報を確認してください。

$ telnet pop.gmx.net 110
Trying 212.227.17.185...
Connected to pop.gmx.net.
Escape character is '^]'.
+OK POP server ready H migmx028 0MAbjW-1YwF4D0ml8-00BiVl
USER [email protected]
+OK password required for user "[email protected]"
PASS typeyourpassword
-ERR Error retrieving your GMX emails. Your connection is not encrypted. Enable SSL in your mail program. Instructions: https://ssl.gmx.net
Connection closed by foreign host.

まあ、ほとんどのメールサーバーが必要なので、これは失敗します。SSL/TLS暗号化セッション今。したがって、telnet以下を使用できますsocat

$ socat - OPENSSL:pop.gmx.net:995
+OK POP server ready H migmx113 0MC062-1Yzese0KO7-00AVNE
USER [email protected]
+OK password required for user "[email protected]"
PASS typeyourpassword
+OK mailbox "[email protected]" has 13518 messages (191718918 octets) H migmx113

無効なパスワードを入力すると、サーバーに次の内容が表示されることがあります。

-ERR authentication failed

またはアイドル状態にsocatすることもできますopenssl

$ openssl s_client -quiet -connect pop.gmx.net:995
depth=2 C = DE, O = Deutsche Telekom AG, OU = T-TeleSec Trust Center, CN = Deutsche Telekom Root CA 2
verify error:num=19:self signed certificate in certificate chain
verify return:0
+OK POP server ready H migmx108 0MWpjO-1YiwnK3ZfP-00XoK

おすすめ記事